SAP BDL EXTEND BEH PROJ



Get Example source ABAP code based on a different SAP table
  


• EXTEND BEHAVIOR FOR ABAP_BDL_PROJ_EXT
• AUTHORIZATION GLOBAL ABAP_BDL_PROJ_EXT
• AUTHORIZATION INSTANCE ABAP_BDL_PROJ_EXT
• AUTHORIZATION NONE ABAP_BDL_PROJ_EXT
• AUTHORIZATION UPDATE ABAP_BDL_PROJ_EXT
• AUTHORIZATION GLOBAL INSTANCE ABAP_BDL_PROJ_EXT

ABAP_RAP - Entity Projection Extension

ABAP_SYNTAX
extend behavior for ProjectionEntity
BEGIN_SECTION VERSION 5 OUT
$[implementation in class ClassName unique$]
$[authorization$]
END_SECTION VERSION 5 OUT
{
projection_extension_body
}
...

What does it do?
An entity projection extension extends a projection BDEF ProjectionEntity. As a prerequisite, extensions must be explicitly enabling as described in topic TITLE .
Syntax additions and components:
BEGIN_SECTION VERSION 5 OUT
implementation in class ClassName unique: specifies an ABAP behavior pool for the extension behavior of the particular entity. Optional and only required if the entity in question defines new actions or functions. The rules for extension ABPs apply, see topic TITLE .
authorization:
Defines authorization control for actions that were added in the projection layer via a BDEF projection extension.
Optional and only useful in combination with new actions.
Works in the same way as for projection BDEFs, see topic RAP BDL - authorization , Projection BDEF.
END_SECTION VERSION 5 OUT
projection_extension_body: extends the entity behavior body of a projection BDEF.
BEGIN_SECTION VERSION 5 OUT

ABAP_EXAMPLE_VX
The BDEF projection extension DEMO_RAP_PROJ_BDEF_EXT extends the RAP projection behavior definition DEMO_RAP_PROJ_EXT_FIELD.
It adds field attributes to extension fields.
BDEF DEMO_RAP_PROJ_BDEF_EXT
ABAP_EXAMPLE_END

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