We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
CONVERT KEY OF bdef
FROM $[TEMPORARY$] pre_key
This statement is only possible between COMMIT ENTITIES BEGIN, END.
|CONVERT KEY OF bdef.||Specifies the RAP BO bdef for which the keys should be converted. In contrast to other EML statements, the CONVERT KEY OF statement does not operate on mass data, i. e. internal tables, but on single values (pre_key, final_key). The CONVERT KEY statement is only possible in this context.|
|FROM [TEMPORARY] pre_key||Specifies the value of the preliminary key pre_key. The type of pre_key must be compatible with %pid or %pre in case of using the addition TEMPORARY. \lbr \lbr The addition TEMPORARY is only relevant in late numbering scenarios in which %key is used to contain the preliminary keys during the RAP interaction phase - instead of %pid. \lbr \lbr For more information on the use of %pid, %pre and %key in the context of late numbering scenarios, see the topic Use of Keys and RAP BO Instance Identifiers in a Nutshell.|
|TO final_key.||final_key specifies the final key value. The type of final_key must be compatible with the primary key's type.|
The following source code section taken from DEMO_RAP_EML_COMMIT_3 demonstrates the COMMIT ENTITIES BEGIN ... END variant and CONVERT KEY OF.
The following source code section taken from DEMO_RAP_DERIVED_TYPES_LATENU2 demonstrates the COMMIT ENTITIES BEGIN ... END variant and CONVERT KEY OF with the addition TEMPORARY.
COMMIT ENTITIES BEGIN RESPONSES FAILED DATA(failed_late)
LOOP AT mapped_early-demo_umanaged_root_late_num3
CONVERT KEY OF demo_umanaged_root_late_num3
FROM TEMPORARY VALUE #( %pid = <mapped_early>-%pid
%tmp = <mapped_early>-%key )
COMMIT ENTITIES END.