Skip to Content
0
Jan 17, 2020 at 08:13 AM

MODIFY COMPONENT of a Structure (of type any)

2118 Views

Hi Friends,

I have two structures: <l_s_data> & <l_s_data2>.

Both are of type "ANY" I would like to modify a particular field's value in the structure: <l_s_data2> based on the keys from another structure: <l_s_data> .

In this example I would like to update the Field: RCOOP value from 9.00 to 8.00

Can anyone please help me achieve this ?

Is there a statement similar to ASSIGN COMPONENT where I would ideally like to write something like this:

MODIFY COMPONENT 'RCOOP' OF STRUCTURE <l_s_data2> to <fs1>

I can get <fs1> value using the statement: ASSIGN COMPONENT 'RCOOP' OF STRUCTURE <l_s_data> to <fs1>.

Please see the screenshot.

Attachments

sap-question.jpg (181.6 kB)