SAP SHEET RAP EXT NUM M ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_EML in Use: Managed RAP BO with External Numbering
This example demonstrates various RAP BO standard operations and non-standard operations using ABAP_EML in the context of a managed RAP business object with RAP external numbering.
Data model
The CDS data model consists of the root entity DEMO_CS_RAP_RO_M and its child entity DEMO_CS_RAP_CH_M.
Root entity:
DDLS DEMO_CS_RAP_RO_M
Child entity:
DDLS DEMO_CS_RAP_CH_M
Behavior definition
The RAP behavior definition DEMO_CS_RAP_RO_M is defined in RAP BDL as follows:
BDEF DEMO_CS_RAP_RO_M
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_M. The actual behavior implementation takes place in local classes that are defined and implemented in the BP_DEMO_CS_RAP_RO_M===========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_M

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 (including a determination on save)
Update
Delete
Executing an action
Validation
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.