Ansicht
Dokumentation

ABAPDERIVED_TYPES_FEATURES - DERIVED TYPES FEATURES

ABAPDERIVED_TYPES_FEATURES - DERIVED TYPES FEATURES

ABAP Short Reference   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

%features

%features is a component group in BDEF derived types.

It is used to return feature control information by marking the components. The components of %features are those elements for which feature control is specified in the BDEF. For accessing the components with %features, the syntax can, for example, be as follows: %features-%update, %features-%delete, %features-%action-action_name, or %features-%field-field_name.

Type

The components of the %features structure are typed with ABP_BEHV_FLAG.

  • [INSTANCE$|GLOBAL] FEATURES RESULT

Example

The following source code section taken from the BP_DEMO_MANAGED_ROOT_PERM=====CCIMP of the global class of the behavior pool BP_DEMO_MANAGED_ROOT_PERM demonstrates the component %features in the context of a get_instance_features method that returns information on whether certain fields are read-only or can be modified based on certain conditions. Furthermore, information is returned if the creation of instances for an associated entity is enabled or disabled. See the executable program for this example further down.

The example BDEF derived type components in the context of requesting permissions demonstrates the use of various BDEF derived type components including %features with a managed RAP BO.






Vendor Master (General Section)   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 2203 Date: 20240425 Time: 160254     sap01-206 ( 46 ms )