The individual nodes of a collection are processed from top to bottom, in the same way as for an application form. The attributes and conditions assigned to the nodes are evaluated. You can use the following ABAP macros to control the process flow of a collection dynamically in user exits.
You can use the following macros:
Macro |
Function |
Note |
MAC_DEACTIVATE <NAME> <IDENTIFIKATION> |
Suppresses the output of the node <NAME> |
If the node is an application form, the identification in the collection differentiates between the different uses. If the identification is empty or the node is a different type, enter SPACE for this macro parameter. |
MAC_ACTIVATE <NAME> <IDENTIFIKATION> |
Reactivates a node <NAME> |
The node must be actively defined in the collection, which means that using the macro is only recommended if an active node was deactivated via user exit. The parameter <IDENTIFIKATION> acts in the same way as in the macro MAC_DEACTIVATE. |
MAC_CANCEL <MSGTY> <MSGNO> <MSGID> <MSGV1> … <MSGV4> |
Terminates the print transaction with an error message (to be specified) |
|
MAC_CANCEL_SY_REPEAT <MSGTY> |
Terminates the print transaction by returning the last error message, for example, when calling a module. |
|
MAC_LEAVE |
Terminates the processing of the collection |
No error message is triggered. |
MAC_EXIT |
Triggers exit of the current context (for example, composition) |
|