Ansicht
Dokumentation
ABENEML_SET_FLAGS_ABEXA - EML SET FLAGS ABEXA
BAL Application Log Documentation PERFORM Short ReferenceThis documentation is copyright by SAP AG.
- Variants of SET FLAGS
This example demonstrates the variants of the SET FLAGS statement.
Data model
The CDS data model consists of the root entity DEMO_MANAGED_ROOT_MAP
and its child entity DEMO_MANAGED_CHILD_MAP.
Root entity:
Child entity:
Behavior definition
The CDS behavior definition
DEMO_MANAGED_ROOT_MAP is defined in CDS BDL as follows:
Behavior implementation
For the above CDS behavior definition, one ABP (BP_DEMO_MANAGED_ROOT_MAP) is created. It is not relevant for the example.
Source Code
Description
Access with ABAP using EML
The above source code uses EML to access the RAP business object from an ABAP program.
For all variants of the SET FLAGS statement, variables are declared for the field list typed with ABP_FIELD_NAME_TAB and for the flags typed with a BDEF derived type that includes the %control structure. The field list gets filled, purposely excluding certain field names. Thus, for all fields contained in the field list, the value for the respective component in the %control structure is 01. The value for the ones that are not contained in the field list is 00.
As a result of all the SET NAMES statement variants, the %control structures are displayed in an output window. The first variant comprises examples for both %control and %element.
Addresses (Business Address Services) rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 2410 Date: 20240419 Time: 221639 sap01-206 ( 41 ms )