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

DISPLAYING VALUES ON SCREEN

Former Member
0 Likes
811

HOW TO WRITE BACK THE VALUES IN THE SCREEN WHEN WE ARE IN MODULE POOL,LIKE IF AFTER EXECTUING SOME FUNCTION AND I WANT TO DISPLAY THE VALUE FROM THAT FUNCTION ON THE SCREEN BACK WHAT SHOULD BE DONE.

3 REPLIES 3
Read only

Former Member
0 Likes
681

Hi Nandan,

Please explain your question properly.

As i understood your question, I think you want to display value returned by any function module in any textbox on the screen.

Is it right???

You can set value of that screen field value in one PBO module. Also define the variable with the same name as the name of the screen field in the TOP include.

I hope it works.

Please reward this and close this thread it it solves your problem.

Regards,

Bhavik

Read only

Former Member
0 Likes
681

Hi Nandhan,

To write back the values in the screen follow these steps.

1) Declare the variable in which u r going to get the value rerurned by the function.

2)In the screen have the text field with the same name as of that variable.(Do this by using 'Get from Dictionary/Program Fields' option.)

This will do.

Regards

Immanuel

Read only

Former Member
0 Likes
681

What the other posters are trying to tell you is that SAP automatically provides the transport from your program to the screen and from the screen back to your program, as long as the field names match. Transport from the program to the screen occurs at the end of PBO, and transport from the screen to the program happens at the beginning of PAI.

Of course as with most features of SAP, there are some exceptions like processing events from an ALV Grid, but these are the basics. You can also alter the transport sequence from the screen back to the program via the FIELD command in the PAI logic.

Is this the information you were looking for?