Application Development 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: 

Need to retain the screen input after user clicks BACK

Former Member
0 Kudos
421

Hi,

I have a report program in HR, using LDB "PNP" and Report category : PSSPCDOC.

After the program is executed and the report is displayed on screen, if the user clicks the BACK button (F3), the selection screen is displayed with initial values. The input values provided by the user previously get lost.

I debugged and it seems that the memory gets cleared everytime the BACK button is clicked.

But i want to retain the user inputs on the selection screen if the user clicks the BACK button because the user wants to change some selection inputs not all.

I am new to HR module, please let me know how to solve this issue.

5 REPLIES 5

Former Member
0 Kudos
195

Hi,

In your screen in the application bar,the right most button is a coloured monitor kind of icon, next to the Help icon (which is a white question mark in a yellow circle) ,click on this monitor icon ,then under the Local Data tab there is a History Block, select radio button History ON.

I hope it helps.

Regards,

Shraddha

Former Member
0 Kudos
195

Hi,

Try a thing,that is you write the SQL query part under START-OF-SELECTION Event and the data to be displayed into list under END-OF-SELCTION event.and then check whether it is working or not.

regards,

Suvajit

0 Kudos
195

Hi Suvajit,

The GET PERNR is already in the START-OF-SELECTION event and the report is being displayed from the END-OF-SELECTION.

But whenever the BACK button is clicked, the memory is completely refreshed. This is causing the problem..

0 Kudos
195

Load selection screen data in SAP memory in the AT-SELECTION-SCREEN event and in the AT-SELECTION-SCREEN OUTPUT put a check against that memory area. If memery is not initial, show that data in the selection filed.

If SAP/ABAP memeory is completely being refreshed, use shared memory by creating a shared memory object and use that in the same event blocks. Hope this will help

Former Member
0 Kudos
195

Hello

I tried using the same report category and all the values entered seem to be available as entered upon clicking back button. Can you please confirm these points,

1) Is the BACK button is coming by the std. way. You are not setting a separate GUI status separately in your program?

2) If you are setting one, how are you handling the BACK button.

Regards

Ranganath