ABAP Command Pattern

Summary: in this tutorial, you will learn how to implement the command design pattern in ABAP with a code sample.

Problems

In some programming contexts, you need to issue a request to an object without having knowledge of the operation being requested or the actual object that performs the request.

Intent

  • Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.

Discussion

  • Command design pattern allows you to decouple the object that invoke the operations from the object that actually performs the operations.