cancel
Showing results for 
Search instead for 
Did you mean: 

Finding the structure & field name of screen fields declared with local variables

Harsh_Jain2512
Participant
0 Kudos

Hi,

There are some screen fields in ABAP Dynpros(Module Pools) which refer to fields declared locally in the Module Pool program and I have the requirement to find the structure name and field to which they are referring to.

Like for eg in tcode PA30 the employee name refers to some local field like "$..ENAME" which in turn originally refers to field ENAME of structure PA0001. I want 'PA0001-ENAME ' this field for processing. Any help would be greatly acknowledged.

Regards

matt
Active Contributor
0 Kudos

How to find the underlying database tables used in a transaction is a FAQ. It's also a vital technique to learn. Since it's a FAQ, it's easy to search for examples. You should do this.

Harsh_Jain2512
Participant
0 Kudos

Hi Matthew,

As Satya mentioned in the screenshot using F1, I need structure name and fieldname like PA0001-ENAME in my program. Is there any way by which I can find this...? because what I am getting it is the local name $...ENAME in the program.

matt
Active Contributor
0 Kudos
OK -you want the structure name. Many of the same techniques apply. Try debugging.
Harsh_Jain2512
Participant
0 Kudos

Thanks for the comment Matthew, I got an FM 'RS_SCRP_GET_SCREEN_INFOS' which gives all the fields in the dynpro.

Regards,

Harsh.


Accepted Solutions (0)

Answers (1)

Answers (1)

sathyags
Active Participant
0 Kudos

Did you try checking the technical information of the field on the actual transaction?

in your example, t-code pa30

Harsh_Jain2512
Participant
0 Kudos

Hi,

Yeah technically we can take help of F1 but it requires USER's interaction I need to find it out how to do it in program. Is there any FM or class which can serves this requirement, I know its very specific one.

Regards,