SAP EMLCOMMIT ENTITIES DYN ABAP Statements



Get Example source ABAP code based on a different SAP table
  



COMMIT ENTITIES RESPONSES, Dynamic Form

ABAP_SYNTAX
COMMIT ENTITIES $[IN SIMULATION MODE$] RESPONSES OF dyn_tab response_param.

ABAP Addition
... IN SIMULATION MODE

What does it do?
Triggers the RAP save sequence and finishes the RAP transaction. All RAP BO instances that have been changed within the RAP transaction and that are present in the transactional buffer are persisted to the database.
The dynamic form of the COMMIT ENTITIES statement allows the root entities for which the commit should be executed to be specified dynamically using the addition OF dyn_tab. dyn_tab must be of type ABP_ENTITY_NAME_TAB. The components are the names of the root entities. They must be typed with ABP_ROOT_ENTITY_NAME.
This syntax form of the COMMIT ENTITIES statement includes the retrieval of information returned by RAP saver methods . FAILED and REPORTED responses can be retrieved for one or more RAP BOs that have been modified beforehand. The parameters following FAILED and REPORTED must be internal tables typed with ABP_BEHV_RESPONSE_TAB. For more information on response_param, see here.
For general hints on using the statement see the topic COMMIT ENTITIES.

ABAP_EXAMPLE_VX5
The following source code section taken from CL_DEMO_RAP_EML_COMMIT_2 demonstrates the dynamic form of the COMMIT ENTITIES statement.
ABEXA 01546
ABAP_EXAMPLE_END



Latest notes: