‎2011 Jul 21 3:01 PM
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
‎2011 Jul 21 3:10 PM
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
‎2011 Jul 21 3:10 PM
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
‎2011 Jul 21 3:17 PM
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