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 find Screen element names in a program programatically

venkat_raman
Associate
Associate
0 Likes
1,260

Hi Experts,

I have to find out all the table control names in a program. I am able to find all the screen numbers for a program from the table D020S. Is there any functionality to find out the table controls in a program or atleast screen elements in a program?

Thanks and regards,

venkat.

2 REPLIES 2
Read only

Former Member
0 Likes
619

Hi,

Check out this table D021T . You will get screen field but not sure of table control name . Just check it.

Regards,

Madhukar Shetty

Read only

Former Member
0 Likes
619

Hello

You can get the information by calling the below two FM's. First call the FM IAC_GET_DYNPRO_INFO by passing the program name and screen number. This will return an internal table with all the screen elements of structure D021S.

Next loop through this internal table and pass the structure to FM RS_SCRP_GET_FIELD_TYPE_TEXT to know what kind of screen element it is.

Also, if the FILL parameter of the first FM is 'T', then it is a table control.

Regards

Ranganath