- Business One
- EIM Solutions
- Enterprise Portal
- Industry Solutions
- SAP Db And OS
- SAP Tools And Tech
- Solution Manager
How to fill Dynamic work area or field symbol?
I have created dynamic work area(field symbol) by using following code. Now I want to fill the work area with values which are there in other internal table.
* Create dynamic internal table/structure call method cl_alv_ta
ble_create=>create_dynamic_table exporting it_fieldcatalog = it_fieldcat importing ep_table = dyn_table. assign dyn_table->* to <fs_table>. * Create dynamic work area and assign to Field Symbol create data dyn_line like line of <fs_table>. assign dyn_line->* to <fs_wa>.
My <FS_WA> contains:
ROW4 as fields in it without having any data.
I have other internal table.. where I have FIELDS and Data like following:
FIELD1 FIELD2 FIELD3
ID1 ROW1 A1
ID1 ROW3 A3
ID1 ROW4 A4
ID2 ROW1 B1
ID2 ROW2 B2
ID2 ROW3 B3
ID3 ROW1 C4
Important thing that I have to share with you is… Source table of my Internal table and Source structure to create my dynamic table are same.
This dynamic table has fields… with “FIELD2″ values.
ABAP Consultant, needs help regarding “How to fill Dynamic work area or field symbol? “
Browse more questions like this in module: Uncategorized