SAP BDL PROJ EXT ENTITY



Get Example source ABAP code based on a different SAP table
  


• DEFINE BEHAVIOR FOR ABAP_BDL_PROJ_EXT
• ALIAS ABAP_BDL_PROJ_EXT

ABAP_RAP - Projection Extension Entity

ABAP_SYNTAX
... define behavior for ProjectionEntity ...

ABAP_PREREQUISITES
As a prerequisite, the underlying RAP projection behavior definition must explicitly allow BDEF extensions as described in topic TITLE .
The extension node must be added to the RAP data model via RAP data model extension.
ABAP_PREREQ_END

What does it do?
A projection extension entity defines the behavior for an extension node in a BDEF projection extension using the statement define behavior for .
BEGIN_SECTION VERSION 5 OUT
The projection behavior for this extension node is defined similar to projection BDEFs, see section RAP BDL - Entity Behavior Definition , Projection BDEF. Note the following restrictions:
The operation augment is currently not supported in BDEF extensions.
If an ABAP behavior pool is specified, the rules for extension ABPs apply. See topic TITLE .
END_SECTION VERSION 5 OUT
BEGIN_SECTION VERSION 5 ONLY
The projection behavior for this extension node is defined in a similar way as for projection BDEFs. However, there are some restrictions.
Supported in a BDEF projection extension:
Field attributes readonly, readonly:update, suppress .
Reuse of RAP BO standard operations, actions, functions, and associations.
Extend an existing RAP type mapping.
No behavior requiring implementation must be added. As a consequence, the following is not supported:
No ABAP behavior pool must be specified, The statement implementation in class unique is forbidden.
No authorization control must be specified. The keyword authorization in the entity behavior characteristics is forbidden.
New actions and functions must not be specified in the entity behavior body.
A RAP foreign entity must not be specified.
Adding a new RAP authorization context for disable is not possible. Extending a full authorization context is not supported either.
Adding a RAP type mapping is not supported. However, extending an existing RAP type mapping with extension fields is supported.
Enabling BDEF privileged mode with privileged mode is not supported.
END_SECTION VERSION 5 ONLY
BEGIN_SECTION VERSION 5 OUT

ABAP_EXAMPLE_VX
The BDEF projection extension DEMO_RAP_PROJ_EXT_BEH_1 extends the RAP projection behavior definition DEMO_RAP_PROJ_EXT_BEH. It behavior-enables an extension node using the syntax define behavior for, reusing operations from the projected BDEF and specifying field attributes.
BDEF DEMO_RAP_PROJ_EXT_BEH_1
ABAP_EXAMPLE_END

ABAP_EXAMPLE_ABEXA
The executable example BDEF Projection Extension, Node Extension explains the example above in detail.
ABAP_EXAMPLE_END
END_SECTION VERSION 5 OUT