on ‎2025 Jan 29 7:38 AM
Hello Community,
Is it possible to change the child entity with an action from the parent entity? Creating a new child entity works, but changing an existing one causes me problems.
Here is my EML:
MODIFY ENTITIES OF c_parent_entity IN LOCAL MODE
ENTITY child_entity
UPDATE FIELDS ( status )
WITH VALUE #( FOR key IN keys
( %tky = key-%tky
status = task_status-closed ) )
MAPPED mapped
FAILED failed
REPORTED reported.It doesn't seem to work that way.
regards,
Lars
Request clarification before answering.
The key-%tky is the parent key. First, you need to retrieve the child entities associated with the parent and update them using their respective keys.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to set the control field as well like below and it should work:MODIFY ENTITIES OF c_parent_entity IN LOCAL MODE
ENTITY child_entity
UPDATE FIELDS ( status )
WITH VALUE #( FOR key IN keys
( %tky = key-%tky
status = task_status-closed
%control = VALUE #( status = if_abap_behv=>mk-on) ) )
MAPPED mapped
FAILED failed
REPORTED reported.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.