Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to search dynamic values in the Field symbol table in OVS

0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

hi

I ve come accross a similar problem in the forum.

see the below link

hope it helps

regards

Nishant Malhotra

former_member218674
Contributor
0 Kudos

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.