‎2007 Jun 26 3:45 PM
Hi.
In my program i have got a selection screen and then a call screen, how i can return to the selection screen from the dynpro.
Thanks.
‎2007 Jun 26 3:56 PM
Hi,
You can use leave to screen 0 stmt to return to the previous screen which in your case is selection screen.
Eg:
case ok_9000.
when 'BACK'.
Leave to screen 0.
Endcase.
‎2007 Jun 26 3:50 PM
Hi,
In a program, you can use one of the two following ABAP statements to leave a screen:
LEAVE SCREEN.
or
LEAVE TO SCREEN <next screen>.
The LEAVE SCREEN statement ends the current screen and calls the subsequent screen.
The LEAVE TO SCREEN statement exits the current screen and calls the dynamic next screen, which you specify as part of the statement.
Regards,
Ranjit Thakur.
<b>Please Mark The Helpful Answer.</b>
‎2007 Jun 26 3:50 PM
Hi
In ur code use below code.
insert the code wherever u want to come back to selection screen.
if Sy-subrc <> 0.
here if u want use if condtion. Else use Submit only.
Submit ( SY-CPROG ) Via selection-screen.
pass ur program name of wanted selection-screen.
Endif.
If not slove please send ur code, i will modify it.
Reward me if its helpful.
Regards
Ravi.
‎2007 Jun 26 3:56 PM
Hi,
You can use leave to screen 0 stmt to return to the previous screen which in your case is selection screen.
Eg:
case ok_9000.
when 'BACK'.
Leave to screen 0.
Endcase.