Application Development and Automation 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: 
Read only

How to Display fields on screen based on selected parameter?

Former Member
0 Likes
339

Hi ,

I have a requirement of displaying those field values that is being given in import parameter in the API.

I have an import parameter that can hold the parameter name and based on some criteria I have an internal table with few records.

Now I want to display only that value from record that is entered in import parameter.

Field symbols can be used for dynamic tables but for dynamic fields ,what is to be done?

Regards,

Debesh.

1 REPLY 1
Read only

franois_henrotte
Active Contributor
0 Likes
313

easy one

FIELD-SYMBOLS: <struc> TYPE ANY, <field> TYPE ANY.

LOOP AT in_table ASSIGNING <struc>.
  ASSIGN COMPONENT fieldname OF STRUCTURE <struc> TO <field>.
  WRITE: / <field>.
ENDLOOP.