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

How can I execute multiple selection options before output?

Former Member
0 Likes
568

Hello,

I am having trouble using multiple selection options.

When I click on the arrow, it automatically goes to the next screen. Then, when I come back, the multiple selection dialog pops up.

Here's what I have:

SELECTION-SCREEN BEGIN OF BLOCK b1
                  WITH FRAME TITLE TEXT-001.
         SELECT-OPTIONS aux0 FOR aux2.
         SELECT-OPTIONS aux1 FOR aux2.
SELECTION-SCREEN END OF BLOCK b1.

AT SELECTION-SCREEN.
   CALL SCREEN 101.

MODULE STATUS_0101 OUTPUT.
   SET PF-STATUS 'STATUS'.
   SET TITLEBAR 'TITLE'.

   "more code ...


ENDMODULE.

MODULE USER_COMMAND_0101 INPUT.
   IF sy-ucomm = 'BACK'.
       LEAVE TO SCREEN 0.
   ENDIF.

   IF sy-ucomm = 'EXIT' OR sy-ucomm = 'CANCEL'.
     LEAVE PROGRAM.
   ENDIF.
ENDMODULE.

I believe my error is in 'AT SELETION-SCREEN', but I can't find a way to fix it.

Thank you very much in advance.

Hello,

I am having trouble using multiple selection options.

When I click on the arrow, it automatically goes to the next screen. Then, when I come back, the multiple selection dialog pops up.

Here's what I have:

SELECTION-SCREEN BEGIN OF BLOCK b1
                  WITH FRAME TITLE TEXT-001.
         SELECT-OPTIONS aux0 FOR aux2.
         SELECT-OPTIONS aux1 FOR aux2.
SELECTION-SCREEN END OF BLOCK b1.

AT SELECTION-SCREEN.
   CALL SCREEN 101.

MODULE STATUS_0101 OUTPUT.
   SET PF-STATUS 'STATUS'.
   SET TITLEBAR 'TITLE'.

   "more code ...


ENDMODULE.

MODULE USER_COMMAND_0101 INPUT.
   IF sy-ucomm = 'BACK'.
       LEAVE TO SCREEN 0.
   ENDIF.

   IF sy-ucomm = 'EXIT' OR sy-ucomm = 'CANCEL'.
     LEAVE PROGRAM.
   ENDIF.
ENDMODULE.

I believe my error is in 'AT SELETION-SCREEN', but I can't find a way to fix it.

Thank you very much in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
434

Oh, never mind.

I got it!
Instead of using 'AT SELECTION-SCREEN', I used:

     START-OF-SELECTION'.

          CALL SCREEN 101.

     END-OF-SELECTION.

Thanks anyway!

Read only

Former Member
0 Likes
434

Hi,

U have to use   CALL SCREEN 101 in start of selection event.Try doing this ..