ā2014 Apr 22 10:55 AM
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.
ā2014 Apr 22 11:30 AM
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.
ā2014 Apr 22 11:43 AM
I tried using the screen field in the same manner but its not showing the values.
That field is of structur CALP - field endpa.
ā2014 Apr 22 11:44 AM
In the debugging mode, I am able to read the other field values such as net sales prices , but not endpa field.
ā2014 Apr 22 12:00 PM
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.
ā2014 Apr 22 12:21 PM
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