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

module pool program

Former Member
0 Likes
626

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

1 ACCEPTED SOLUTION
Read only

vinod_vemuru2
Active Contributor
0 Likes
603

Hi Rakesh,

Instead try LEAVE TO SCREEN 1000.

Thanks,

Vinod.

4 REPLIES 4
Read only

vinod_vemuru2
Active Contributor
0 Likes
604

Hi Rakesh,

Instead try LEAVE TO SCREEN 1000.

Thanks,

Vinod.

Read only

Former Member
0 Likes
603

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.

Read only

Former Member
0 Likes
603

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.

Read only

Former Member
0 Likes
603

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.