‎2010 Jan 05 3:55 PM
Hi All,
I have generated a dynamic structure. The field names of the structure are related to the values I have generated from a table which can also be dynamic.
I was wondering if there was a way to move a value to a work area of this dynamic table using the field name?
thanks.
JB
‎2010 Jan 05 4:01 PM
Hi. You should be able to do it easily using field symbols and assign. There are lots of posts on here about this, but something simple like:
FIELD-SYMBOLS:
<fs_data> TYPE (structure name),
<fs_field> TYPE ANY.
ASSIGN (structure name) to <fs_data>.
ASSIGN COMPONENT (component name) OF STRUCTURE <fs_data> TO <fs_field>.
Just replace the data in brackets with your structure and field names. (component name) can be any variable you have selected in from anywhere. <fs_field> will contain your data from your structure.
Regards,
Dave.
‎2010 Jan 05 4:01 PM
Hi. You should be able to do it easily using field symbols and assign. There are lots of posts on here about this, but something simple like:
FIELD-SYMBOLS:
<fs_data> TYPE (structure name),
<fs_field> TYPE ANY.
ASSIGN (structure name) to <fs_data>.
ASSIGN COMPONENT (component name) OF STRUCTURE <fs_data> TO <fs_field>.
Just replace the data in brackets with your structure and field names. (component name) can be any variable you have selected in from anywhere. <fs_field> will contain your data from your structure.
Regards,
Dave.
‎2010 Jan 05 4:56 PM
Hi Jamie ,
you can achieve this by using field symbols.
Please check the link for details.
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3860358411d1829f0000e829fbfe/content.htm
Press F1 on Field-symbols and assigning.
You can search SDN , there are many related threads.
Hope this helps you.