Ansicht
Dokumentation

ABAPEMLCOMMIT_ENTITIES_LATE - EMLCOMMIT ENTITIES LATE

ABAPEMLCOMMIT_ENTITIES_LATE - EMLCOMMIT ENTITIES LATE

BAL Application Log Documentation   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

COMMIT ENTITIES BEGIN, END

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.


Additions

1. ... IN SIMULATION MODE

2. ... RESPONSES response_param.

3. ... RESPONSE OF ... response_param.

4. ... RESPONSES OF ... response_param.

Effect

Triggers the RAP save sequence and finishes the RAP LUW. 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.

The context of this COMMIT ENTITIES statement is the adjust numbers phase that is triggered as part of the save sequence. For 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 with a successful save. If, for example, the keys of newly created instances are to be transferred to http responses, it must be the final keys and not the preliminary ones from the modify operations.

For this purpose, this COMMIT ENTITIES variant defines a scope in which the EML statement CONVERT KEY OF can be used to retrieve the final keys from preliminary keys.

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.

Note

Addition 1

... IN SIMULATION MODE

Effect

Addition 2

... RESPONSES response_param.

Effect

Used for retrieving response information. Response parameters must specified (response_param), either both FAILED and REPORTED or just one of them.

Addition 3

... RESPONSE OF ... response_param.

Effect

Used for retrieving response information. In this case, it is the long form. Response parameters must specified (response_param), either both FAILED and REPORTED or just one of them.

Addition 4

... RESPONSES OF ... response_param.

Effect

Used for retrieving response information. In this case, it is the dynamic form. Response parameters must be specified (response_param), either both FAILED and REPORTED or just one of them.

The example COMMIT ENTITIES BEGIN, END with CONVERT KEY OF demonstrates the use of this COMMIT ENTITIES statement including CONVERT KEY OF.






CPI1466 during Backup   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 5929 Date: 20240328 Time: 092907     sap01-206 ( 75 ms )