Skip to Content
avatar image
Former Member

Re:Function

Hi,

AT SELECTION-SCREEN.

CASE sscrfields-ucomm.

WHEN'FC01'.

CALL SELECTION-SCREEN 123 STARTING AT 20 5.

WHEN 'CRET'.------1)

CALL SELECTION-SCREEN 132 STARTING AT 19 10 ending at 100 10.

WHEN 'CRET'. -


2)

perform get_data.

ENDCASE.

The problem is when i click screen 132 execute it is always going to screen123 ,means only first CRET function is working but it is not going to second CRET, how to do this?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 22, 2007 at 07:01 AM

    Hi,

    AT SELECTION-SCREEN.

    CASE sscrfields-ucomm.

    WHEN'FC01'.

    CALL SELECTION-SCREEN 123 STARTING AT 20 5.

    WHEN 'CRET'.------1)

    CALL SELECTION-SCREEN 132 STARTING AT 19 10 ending at 100 10.

    perform get_data.

    ENDCASE.

    Use appropriate condionalising (using IF statements, flags) to meet your requirement.

    Regards,

    Sandeep.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      check the value of <b>sy-dynnr</b> to know which selection-screen has triggered the AT SELECTION SCREEN event

      AT SELECTION-SCREEN

      IF sy-dynnr EQ '0132'.

      CASE sy-ucomm.

      WHEN 'CRET'.

      perform get_data.

      ENDCASE.

      ELSEIF sy-dynnr EQ '0123'.

      CASE sy-ucomm.

      WHEN 'CRET'.

      CALL SELECTION-SCREEN 123....

      ENDCASE.

      ENDIF.