on 04-30-2021 2:24 PM
Hello,
Im currenty trying to develop a unmanged RAP Service.
When implenting the change i want to extract only the changed fields from the imported entities
METHODS update FOR MODIFY
IMPORTING entities FOR UPDATE signal.
Im creating my data with the current version from the database:
DATA(ls_signal) = <signal>-signal->get_full( ).
Now i want to move the changed fields using the MAPPING FROM ENTITY USING CONTROL command.
LOOP AT entities ASSIGNING FIELD-SYMBOL(<entity>).
...
DATA(ls_signal) = <signal>-signal->get_full( ).
ls_signal = CORRESPONDING #( <entity> MAPPING FROM ENTITY USING CONTROL ).
Now ONLY the changed fields are in LS_SIGNAL.
Is this the correct bahavior?
Does CORRESPONING initilize the variable before transfering the fields?
You could have used the BASE addition of the CORRESPONDING statement.
ls_signal = CORRESPONDING #( BASE ( ls_signal ) <entity> MAPPING FROM ENTITY USING CONTROL ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.