‎2011 Sep 13 9:53 AM
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.
‎2011 Sep 21 3:52 PM
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.