‎2006 Mar 12 4:34 PM
Guys,
In a moment of pure genious I've created a work-of-art with column-trees. The report works great - except for one little problem....
I can't seem to get back to the selection-screen without loosing the original selection-screen values.
I've tried heaps of things without luck:
set screen 0, leave screen
call selection screen 1000
call transaction ....
leave program
leave program to screen 0
Any better ideas?
‎2006 Mar 12 9:34 PM
Hi.
Have you tried to use memory id in your parameters?
Or instead above, you can do a little trick. Export value to memory during first run and after BACK recieve them in event at selection screen output.
It sounds very strange, but it should work
MB.
‎2006 Mar 12 9:34 PM
Hi.
Have you tried to use memory id in your parameters?
Or instead above, you can do a little trick. Export value to memory during first run and after BACK recieve them in event at selection screen output.
It sounds very strange, but it should work
MB.
‎2006 Mar 13 8:53 AM
MB
Thnaks for the quick reply. I like the export/import option.
Is there an easy way to export all the selection-screen values to memory?
‎2006 Mar 13 10:07 AM
you can use FM RS_SELECTIONSCREEN_READ to read the current sel screen field values and export the return tab to memeoy and then you can use RS_SELECTIONSCREEN_UPDATE to set the value to the selscreen after importing from memeory
Regards
Raja
‎2006 Mar 13 10:10 AM
That's depend to the method you use to call the screen.
CALL SCREEN '0100'.
you back with the LEAVE TO SCREEN 0.
Rgd
Frédéric
‎2006 Mar 13 10:20 AM
Frédéric,
Thanks, that did the trick.
I was using:
I changed it to:
call screen '0100'.
leave to screen 0.
PeteA
‎2006 Mar 13 10:28 AM
From the SAP documentation :
>>
Ends current processing and starts the (new) transaction tcod. All previous internal sessions are deleted from the stack and one new internal session is opened for the program of the transaction that was called. When this session has finished, the system returns to the next higher area menu.
<<
If you close the session, you will loose all the memory, so all the parameters that is not in the memory with a SET PARAMETER ID ...
Fred
‎2006 Mar 13 11:28 AM
What are you talking about: Report or module pool (Transaction).
If report: have you ever tried
LEAVE LIST-PROCESSING
EXIT.