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

Getting the field name dynamically?

Former Member
0 Likes
521

Hi experts ,

I want know how to get the field name in a field symbol.I have a requirement wherein i get the table name dynamically in a fieldsymbol and select from the table and put it into a field symbol.

I have to validate if the fieldname in the fieldsymbol is equal to 'VBELN' . For example i have to check if the field with name VBELN is ther in the field symbol <fs_itab> where i get the structure of <fs_itab> dynamically.

Is ther any way to get the name of the fieldname in a field symbol?

Kindly help.

regards

ashwin.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
480

Hi Ashwin,

Use the function module 'GET_COMPONENT_LIST' with a little bit of logic to get the field name.

<b>Reward points if this helps,</b>

Kiran

Hi experts ,

I want know how to get the field name in a field symbol.I have a requirement wherein i get the table name dynamically in a fieldsymbol and select from the table and put it into a field symbol.

I have to validate if the fieldname in the fieldsymbol is equal to 'VBELN' . For example i have to check if the field with name VBELN is ther in the field symbol <fs_itab> where i get the structure of <fs_itab> dynamically.

Is ther any way to get the name of the fieldname in a field symbol?

Kindly help.

regards

ashwin.

2 REPLIES 2
Read only

Former Member
0 Likes
481

Hi Ashwin,

Use the function module 'GET_COMPONENT_LIST' with a little bit of logic to get the field name.

<b>Reward points if this helps,</b>

Kiran

Read only

0 Likes
480

Thanks for the help. If you have any sample code it will be code.

regards,

Ashwin