SAP MODIFY ENTITY ENTITIES OP ABAP Statements



Get Example source ABAP code based on a different SAP table
  


• CREATE MODIFY ENTITY
• CREATE MODIFY ENTITIES
• CREATE BY MODIFY ENTITY
• CREATE BY MODIFY ENTITIES
• UPDATE MODIFY ENTITY
• UPDATE MODIFY ENTITIES
• DELETE MODIFY ENTITY
• DELETE MODIFY ENTITIES
• EXECUTE MODIFY ENTITY
• EXECUTE MODIFY ENTITIES
• REQUEST MODIFY ENTITY
• REQUEST MODIFY ENTITIES

MODIFY ENTITY, ENTITIES, operations

ABAP_SYNTAX
... $[CREATE field_spec$]
$[CREATE BY _assoc field _spec$]
$[UPDATE field_spec$]
$[DELETE field_spec$]
$[EXECUTE action field _spec $[REQUEST request$] $[RESULT result_tab$]$] ...

ABAP_VARIANTS:
1 ... CREATE field_spec
2 ... CREATE BY _assoc field_spec
3 ... UPDATE field_spec
4 ... DELETE field_spec
5 ... EXECUTE action field_spec

What does it do?
The EML MODIFY statement supports the following operations:
CREATE: Create new RAP BO node instances for root or child entities.
CREATE BY: Create target instances for associated entities for which create must be enabled in the BDEF. The creation is not restricted to compositions.
UPDATE: Update existing RAP BO node instances.
DELETE: Delete existing RAP BO node instances. Note that the deletion also affects node instances along the composition.
EXECUTE actions: Carry out user-defined modify operations.
In both, managed and unmanaged implementations, all modify operations must be specified in the RAP behavior definition. See more details in the BDL documentation: Define Behavior, Standard Operations. All nonstandard operations (actions) must be user-implemented in the ABP.
Each modify operation requires an internal table (field_spec) of instances as input parameters after the respective keyword to specify the fields that should be modified.



Latest notes:

After the keyword BY for create-by-association operations, a backslash ( ) must be inserted in front of the associations are displayed via the code completion.
Updating and deleting instances via associations is not possible.
In draft scenarios, draft instances are created if the draft indicator %is_draft is set to true. If it is set to false, active instances are created.
NON_V5_HINTS
ABAP_HINT_END