Get Example source ABAP code based on a different SAP table
• %tky ABAP_BDEF_DER_TYP_COMP
%tky>
ABAP_USE %tky> is a component group> in BDEF derived types> and specifies the transactional key. A RAP BO instance> must always be uniquely identifiable by its transactional key for internal processing during the RAP interaction phase>. %tky> contains %key>> and the draft indicator %is_draft> > as components which makes it particularly suitable for draft> scenarios. Since %tky> includes %key>, %tky> can also be used in non-draft scenarios for referring to the primary keys. Its use in non-draft scenarios is even recommended as a preparation for a possible later switch to a draft scenario. In doing so, lots of adaptations to the code regarding the keys and the inclusion of %is_draft>> can be avoided. ABAP_NOTE Moving %tky> between two distinct types (for example, ...-%tky = ...-%tky>) must be avoided to prevent errors. Instead, an expression with the component operator CORRESPONDING>> should be used, for example, ...-%tky = CORRESPONDING #(...-%tky>).
ABAP_FURTHER_INFO Using Keys and Identifying RAP BO Instances in a Nutshell>