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

Dynpro - screen fields not displaying values

former_member192818
Active Participant
0 Likes
4,133

I have developed a traditional Dynpro program where the user enters a Purchase Order number, and then I retrieve the details of the purchase order and I display the values to the user.

During testing, when the user enters PO and hits enter, the values are set in the right structures/variables, I get the values in the PAI method, and I retrieve the details of the PO and set the values in the corresponding variables of the program that are associated with the screen field. These fields do not show up on the screen though. Would you guys know what might be the issue.

I understand that the screen painter allows us to enter any value for the "field name". Even if the field entered here does not exist, the screen painter will still generate the screen. I have made sure the actual program variable name and the variable name in the screen painter are the same. In the debugger I can see that the values of the variables, and they are correctly set.

Are there any hints or suggestions you guys have that can help me.

Thanks in advance for your help.

1 ACCEPTED SOLUTION
Read only

SureshRa
Active Participant
0 Likes
2,052

Hi Sumit,

I guess the names of the screen fields are same as the names of the variables. For example BSART for Document type. But you might have missed the structure name. The full name of the screen field could be EKKO-BSART. In this case you have to declare a global work-area for the the dictionary structure EKKO with TABLES statement.


TABLES EKKO.

In the screen all the field names should be with reference to the above global dictionary structure work area like EKKO-BSART, EKKO-EBELN. etc.

If you follow above, there would be no issues. Thanks.

Regards

Suresh

3 REPLIES 3
Read only

Kiran_Valluru
Active Contributor
0 Likes
2,052

Hi.,

Make sure once again the screen field name and variable name in program is same.. Also check whether you are clearing the structure in PBO or some where else.,

if not post your code here..,

hope this helps u.,

Thanks & Regards,

Kiran

Read only

SureshRa
Active Participant
0 Likes
2,053

Hi Sumit,

I guess the names of the screen fields are same as the names of the variables. For example BSART for Document type. But you might have missed the structure name. The full name of the screen field could be EKKO-BSART. In this case you have to declare a global work-area for the the dictionary structure EKKO with TABLES statement.


TABLES EKKO.

In the screen all the field names should be with reference to the above global dictionary structure work area like EKKO-BSART, EKKO-EBELN. etc.

If you follow above, there would be no issues. Thanks.

Regards

Suresh

Read only

Former Member
0 Likes
2,052

Hi,

Same problem occured for me.

i have added ekko-stceg field in screen painter using dictionary option.

Added Tables Ekko statement.

but now only empty field is displaying without value.

Can you please suggest me me where i went wrong.

Thanks & Regards,

NarsiReddy