‎2008 Nov 04 11:26 AM
Hi All,
After executing a report, output list is generated .Now upon clicking on the 'Back' button the selection screen is reached with blank values.... May i know if there is any way we can retain the selection screen values which we submitted to the program before executing.
No "defalut" values are allowed as any variant can be selected.
Kindly Advice.
Regards
‎2008 Nov 04 11:29 AM
Hi
check out if there is any event in reporting .. like after processing ...
if yes u can go ahead and write ur logic there..
Deepak
‎2008 Nov 04 11:33 AM
‎2008 Nov 04 11:34 AM
Hi R.p.
There is no need of any code to hold the values in the seelctuon screen when you come back, have you tested your code.
Usually when we give the values in the selection screen and execute the program and click back the values are holded in the parameters or select options names workarea.
If you can show your code then we can find the bug.
Cheers!1
VEnk@
‎2008 Nov 04 11:37 AM
Hi,
Not sure if anything supported by SAP to persist values of selection-screen.
But I think this can be acheived using IMPORT/EXPORT statement.
In INITIALIZATION event use IMPORT to retrieve values from memory
and in START-OF-SELECTION event use EXPORT to write values to memory.
Regards,
Vishal
‎2008 Nov 04 11:40 AM
Hello,
You can use MEMORY-ID to store the values of selection screen. Selection screen values will always be lost because it hits the INITIALIZATION event when you press back button.
Thanks,
Jayant.
‎2008 Nov 04 11:45 AM
Hi Jayanth,
I've checked few programs which are retaining the sel-screen values but i didnt find any usage of Memory Id concepts.
Just wondering if this is any GUI related and session independent.
Kindly Advise.
Regards.
‎2008 Nov 04 11:52 AM
Hello,
You can just use "EXPORT TO MEMORY-ID ..." just after your START-OF-SELECTION event to store the selection screen vaules in a memory ID and in the INITIALIZATION event use 'EXPORT FROM MEMORY-ID .." to get the value from memory id and again assign it to the selection screen parameter defined.
Give it a try. Has worked for me.
Thanks,
Jayant.
‎2008 Nov 27 12:52 PM
Hi,
do this on leaving:
DATA: g_sel_tab TYPE TABLE OF rsparams.
...
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = sy-repid
TABLES
selection_table = g_sel_tab
EXCEPTIONS
not_found = 1
no_report = 2
OTHERS = 3
.
IF sy-subrc is INITIAL.
SUBMIT (sy-repid) WITH SELECTION-TABLE g_sel_tab VIA SELECTION-SCREEN.
ENDIF.
Regards
Walter Habich