‎2008 May 17 1:38 PM
can any body help me..when I run the program, my first screen(selection-screen) is open where I give the input and go to the main screen which is module pool screen 101 and I have a button where clicking on that button we got another screen 102.now using back i come back in my first screen 101. Now I post that screen using bdc and want to come in first input field screen(selectio screen). for that I use 'leave to screen 0' but I come back in 102 screen.But I want to come in input screen.pls help me.
rakesh
‎2008 May 17 2:22 PM
‎2008 May 17 2:22 PM
‎2008 May 17 4:26 PM
Hi Rakesh,
Two things to try and it will work for sure.
You want to get back on your selection screen say 1000.
Use this: CALL SCREEN '1000'
LEAVE SCREEN.
2nd solution is straight but it will loose data on selection screen.
On Back button fcode call the transaction code for program.
LEAVE TO TRANSACTION 'Zxxx'.
reward if helpful
Thnx,
Ags.
‎2008 May 17 8:30 PM
Hi,
" Leave to screen 0 " will work when u want to come back from to the screens to have already gone through. For moving to a particular screen it is always better to use " Leave to screen <number>" rather than " Call screen <number> ". Call screen statement will create a internal loop and if that exceeds 50 the program will go short dump.
Thank you
Sumanth.
‎2008 May 18 3:21 AM
HI,
LEAVE TO SCRFEEN 0. will take you to the previous screen which called the current screen, In your case it was 102 which called 101.So u are going back to 101.
If you want to go back to 1000(your first screen), you can write
LEAVE TO SCREEN 1000.
Assign points if helpful.