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

ALV OOPs back button on Interactive report

Former Member
0 Likes
825

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!!

4 REPLIES 4
Read only

MarcinPciak
Active Contributor
0 Likes
707

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

Read only

0 Likes
707

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.

Read only

0 Likes
707

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

Read only

0 Likes
707

It worked.. Thanks.. I am going to introduce one more layer of alv in this report. I will let you guys know..