Get Example source ABAP code based on a different SAP table
• CONVERT KEY COMMIT ENTITIES BEGIN • BEGIN COMMIT ENTITIES BEGIN • END COMMIT ENTITIES BEGIN • FROM COMMIT ENTITIES BEGIN • TO COMMIT ENTITIES BEGIN • TEMPORARY COMMIT ENTITIES BEGIN
COMMIT ENTITIES BEGIN>, END>
ABAP_SYNTAX COMMIT ENTITIES BEGIN $[IN SIMULATION MODE$] $[${RESPONSES response_param>>$} $| ${RESPONSE OF ... response_param>>$} $| ${RESPONSES OF ... response_param>>$}$]. ... $[CONVERT KEY OF bdef> FROM $[TEMPORARY$] pre_key> TO final_key.>$] ... COMMIT ENTITIES END.>
ABAP Addition 1 ... IN SIMULATION MODE> 2 ... RESPONSES response_param.> 3 ... RESPONSE OF ... response_param.> 4 ... RESPONSES OF ... response_param.>
What does it do? Triggers the RAP save sequence and finishes the RAP transaction>. This variant is relevant for RAP modify operations> on entities for which late numbering>> has been enabled. It is used to get the final keys from the preliminary keys. For RAP modify operations> on entities for which late numbering> has been enabled, only preliminary identifiers have been assigned, for example %pid>> or temporary keys. Those preliminary identifiers are converted to final keys when calling the adjust_numbers>> RAP saver method> as part of the RAP save sequence >. If your use case is to retrieve the final keys of the new instances, this COMMIT ENTITIES> variant defines a scope in which the EML statement CONVERT KEY OF>> can be used to retrieve the final keys from the preliminary keys. For general hints on using the statement see the topic COMMIT ENTITIES>>. Syntax Part>Details> COMMIT ENTITIES BEGIN ...>Opens the commit scope. COMMIT ENTITIES END.>Closes the commit scope. With the closing, all information on keys that are relevant for operations performed beforehand are lost.