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

problem with two selection screens

Former Member
0 Likes
467

i have a two selection screens 1000 & 2000 in single report , which needs to be executed one after the other ,

the problem is when i execute second selection screen(2000) , the cursor is going back to at-selection-screen once again.

but i need to trigger start-of-selection directly after executing second selection screen,

the first selection screen 1000 will be executed with the help of select options..

the sample code is below .

at-selection-screen.

perform validations.

call selection screen 2000.

at selection screen on value request p_adm

start-of-selection.

main logic

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
423

Hi

Why are you calling the second selection-screen in the AT SELECTION-SCREEN event?

You can call the second selection-screen in the START-OF-SELECTION event

You need to consider the event AT SELECTION-SCREEN will be triggered for every selection-screen, so you can risk a recursive call, that means an infinitive cycle.

If you need to call the second screen in that event you should check which the current screen is:

AT SELECTION-SCREEN.
  CASE SY-DYNNR.
    WHEN '2000'. MESSAGE I368(00) WITH 'Screen ' '200'.
    WHEN '1000'.
      CALL SELECTION-SCREEN 200.
  ENDCASE.

Max

Edited by: max bianchi on Jul 21, 2011 4:13 PM

2 REPLIES 2
Read only

Former Member
0 Likes
424

Hi

Why are you calling the second selection-screen in the AT SELECTION-SCREEN event?

You can call the second selection-screen in the START-OF-SELECTION event

You need to consider the event AT SELECTION-SCREEN will be triggered for every selection-screen, so you can risk a recursive call, that means an infinitive cycle.

If you need to call the second screen in that event you should check which the current screen is:

AT SELECTION-SCREEN.
  CASE SY-DYNNR.
    WHEN '2000'. MESSAGE I368(00) WITH 'Screen ' '200'.
    WHEN '1000'.
      CALL SELECTION-SCREEN 200.
  ENDCASE.

Max

Edited by: max bianchi on Jul 21, 2011 4:13 PM

Read only

Shahid
Product and Topic Expert
Product and Topic Expert
0 Likes
423

Have you defined the function keys for the screen 2000?

i believe you need to click on f8 when you are at the screen 2000