Get Example source ABAP code based on a different SAP table
ABAP_RAP - Abstract Behavior Definitions RAP abstract behavior definitions> are created using the behavior definition language RAP BDL> in BDL source code>. A RAP abstract behavior definition> mainly serves as typing mechanism for deep action> or function> parameters. Only a limited range of syntax elements is available, such as associations and type mapping. It is not possible to define any transactional behavior in an abstract behavior definition.
Related Information
How to use an abstract BDEF as input parameter> for a RAP action> or a RAP function> in a managed or unmanaged RAP BO is described in topic RAP BDL - InputParameter>>.
How to use an abstract BDEF as output parameter> for a RAP action or a RAP function in a managed or unmanaged RAP BO is described in topic RAP BDL - OutputParameter> >.
ABAP_EXAMPLE_VX5 The following example shows an abstract BDEF with three nodes that is constructed as hierarchy. BDEF DEMO_CDS_ABSTRACT_ROOT The managed BDEF DEMO_CDS_DEEP_PARAMETER> uses the abstract BDEF as action parameter in three actions. BDEF DEMO_CDS_DEEP_PARAMETER The abstract BDEF is used as flat parameter, as structure, or as table, depending on the keywords used.
Usage as flat parameter in action a2_from_flat> IMAGE ABDOC_ABSTRACT_FLAT.jpg 417 74
Usage as structure in action a2_from_deep> IMAGE ABDOC_ABSTRACT_STRUCTURE.jpg 434 203
Usage as table in action a2_from_deep_table> IMAGE ABDOC_ABSTRACT_TABLE.jpg 479 199 ABAP_EXAMPLE_END