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 screen field values during runtime

sivaganesh_krishnan
Contributor
0 Likes
4,394

Hi everyone,

In debugger for dynamically getting the screen field values we will be using  (SAPLMGMW)CALP-ENDPA this format to get the value of the field CALP-ENDPA.

But this will give only for fields.My question is that how to get the screen field labels values in debugger.

Take a look at following picture.

5 REPLIES 5
Read only

Former Member
0 Likes
1,980

the label field is also from a variable / structure, either mapped to the DDIC or from global variable of the program. Press F1 in the text field and find it's corresponding variable. You can use it in the same manner as you did with other (input) screen fields.

Read only

0 Likes
1,980

I tried using the screen field in the same manner but its not showing the values.

That field is of structur CALP - field endpa.

Read only

0 Likes
1,980

In the debugging mode, I am able to read the other field values such as net sales prices , but not endpa field.

Read only

0 Likes
1,980

I believe the reason you do not see the value is that the value is simply just not (yet) there. When do you access the code - in PAI / PBO of the screen? You may try using DYNP_VALUES_READ exporting the name of the program and the dynpro. But I believe the absolutely best solution here would be reading the text values independently of the value shown in the transaction by your code.

Read only

Former Member
0 Likes
1,980

Hi,

Try putting a watch point on the screen field name and see where it is changing.

If your need is before that it won't be possible to get it as it is a processed value.

Also if it is updating on screen but still you are not getting that means the value is not transported from the Screen to the program in that case use the FM DYNP_VALUES_READ to get the values the documentation has the usage else there are lot of blogs just search it.

Regards