Get Example source ABAP code based on a different SAP table
• %key ABAP_BDEF_DER_TYP_COMP
%key>
ABAP_USE %key> is a component group> in BDEF derived types>. The component group contains the primary key fields of a RAP BO instance>. Thus, it serves as an identifier for persisted instances. Wherever %key> can be specified within ABAP_EML statements during the RAP interaction phase>, %tky>> can be specified, too. Since the component group %tky > includes %key>, it is recommended that %tky> is specified instead of %key> also in non- draft> scenarios. %tky> also contains the draft indicator %is_draft>>. When using %tky> in non-draft scenarios, you are prepared for a later switch to a draft scenario and you can avoid lots of adaptations in the code. Type> The key fields in %key> have their original line type. In case of the use within %control >>, the type of the key fields is ABP_BEHV_FLAG >>.