Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamic selection screens

Hi,

How to call the dynamic selection screen in the program and also some of the i/ps in the screen should be the values which i have fetched.How to code?

Tags:
replied

Hi,

You need to write the code in AT SELECTION SCREEN OUTPUT.

For your understanding, I am giving some sample code

LOOP AT SCREEN.

    IF p_rad1 EQ 'X'.
      IF screen-name EQ 'P_AFILE'.
        CLEAR p_pfile.
        screen-input = '1'.
        MODIFY SCREEN.
      ENDIF.                           " IF screen-name EQ 'P_AFILE'.
      IF screen-name EQ 'P_PFILE'.
        screen-input = '0'.
        MODIFY SCREEN.
      ENDIF.                           " IF screen-name EQ 'P_PFILE'.
    ELSEIF p_rad2 EQ 'X'.
      IF screen-name EQ 'P_PFILE'.
        CLEAR p_afile.
        screen-input = '1'.
        MODIFY SCREEN.
      ENDIF.                           " IF screen-name EQ 'P_PFILE'.
      IF screen-name EQ 'P_AFILE'.
        screen-input = '0'.
        MODIFY SCREEN.
      ENDIF.                           " IF screen-name EQ 'P_AFILE'.
    ENDIF.                             " IF p_rad1 EQ w_flag.

  ENDLOOP.                             " LOOP AT SCREEN.

Thanks,

Phani Diwakar.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question