‎2010 Apr 23 8:38 AM
Hello,,
I am working on an Interactive report(Using OOPS). On selection screen selection ALV report is genrated on screen 100(Call screen 100). On double click event at any row a new alv is shown on another screen 200(Call screen 200).
From last screen when I click 'BACK' it comes back to screen 100 on single click. But its not coming back to selection screen on single click of 'BACK' button.
I have to click it twice to go back to selection screen.
Please suggest!!
‎2010 Apr 23 8:44 AM
In screen 100 atrributes set NEXT SCREEN to 0.
When you go back from screen 200 and be back in 100, the next screen to show will be 0, which means all the screen processing will terminate and you will be in selection screen itself.
Regards
Marcin
‎2010 Apr 23 9:58 AM
Hi Marcin,
I have tried as you suggested but it isn't working.
Logic used: In screen 100 -> Double click event->Call screen 200.
In debugging while clicking on back button for first time, I found that after 'Leave to screen 0' statement debugger goes to double click event of screen 100 and start processing from a statment written immediately after 'Call screen 200' statement.
‎2010 Apr 23 10:03 AM
In debugging while clicking on back button for first time, I found that after 'Leave to screen 0' statement debugger goes to double click event of screen 100 and start processing from a statment written immediately after 'Call screen 200' statement.
Yes, that's right. The processing will be continued from next stamtement after CALL SCREEN 200. But after the PAI will finish it shoud go to NEXT SCREEN which is 0.
If that doens't work you can try leaving the screen 100 explicitly as well.
CALL SCREEN 200.
LEAVE TO SCREEN 0. "the processing will terminate screen 100 as well
Try it out.
Regards
Marcin
‎2010 Apr 23 3:19 PM
It worked.. Thanks.. I am going to introduce one more layer of alv in this report. I will let you guys know..