Get Example source ABAP code based on a different SAP table
ABAP_EML in Use: Unmanaged RAP BO with External Numbering This example demonstrates various RAP BO standard operations> and non-standard operations > using ABAP_EML in the context of an unmanaged RAP business object> with RAP external numbering>. Data model> The CDS data model consists of the root entity DEMO_CS_RAP_RO_U> and its child entity DEMO_CS_RAP_CH_U>. Root entity: DDLS DEMO_CS_RAP_RO_U Child entity: DDLS DEMO_CS_RAP_CH_U Behavior definition> The RAP behavior definition> DEMO_CS_RAP_RO_U>> is defined in RAP BDL> as follows: BDEF DEMO_CS_RAP_RO_U Behavior implementation> For the above RAP behavior definition, one ABP> is created. The global class of the behavior pool is BP_DEMO_CS_RAP_RO_U>>. The actual behavior implementation takes place in local classes that are defined and implemented in the BP_DEMO_CS_RAP_RO_U===========CCIMP>> of the behavior pool. See comments in the code for more information on the implementation.
ABAP_SOURCE_CODE DEMO CL_DEMO_CS_RAP_EXT_NUM_U
ABAP_DESCRIPTION Access with ABAP using EML> The above source code uses EML> to access the RAP business object from an ABAP class. The class demonstrates various RAP BO operations and aspects:
Create
Update
Delete
Executing actions
Instance and global feature control
Instance authorization
Create-by-association (parent to child)
Read
Read-by-association (parent to child)
Read (child entity)
Read-by-association (child to parent)
Excursion: Dynamic EML statement See comments in the code for more information.