08-19-2009 6:34 AM
Hello,
In my OVS I have a dynamic input structure and based on the the input all the values should get displayed. currently all my data that needs to be displayed is in field symbol table.
Also, I have the table of components that holds all the components of search parameter
e.g
lt_new_comp TYPE cl_abap_structdescr=>component_table, " Contains allthe components of input structure.
FIELD-SYMBOLS: <l_table> TYPE ANY TABLE. " contains the table data that needs to be displayed.
Could you please help me out?
Thanks and Regards,
Sanjay
08-19-2009 7:36 AM
08-19-2009 10:04 AM
Hello Sanjay,
Try this way:
Start reading dynamic table row wise into dynamic work area <wa>
Depeding on the dynamic selection you can get field from <wa>
Use ASSIGN COMPONENT <field_name> FROM STRUCTURE <wa> TO <field>.
Now once you have <field> you can get it's value for e.g.
variable = <field>
Now you can display variable.
This you can repeat for all the fields according to dynamic selection.
Check if this can help!
Thanks,
Augustin.