Monday, December 20, 2010
Use USER-COMMAND addition to PARAMETERS statement.

REPORT ztest_notepad.
 
PARAMETERS p_check AS CHECKBOX USER-COMMAND uc1.
 
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
PARAMETERS p_1 TYPE char10 MODIF ID mod.
SELECTION-SCREEN END OF BLOCK b1.
 
AT SELECTION-SCREEN OUTPUT.
 
  IF p_check NE 'X'.
    LOOP AT SCREEN.
      IF screen-group1 = 'MOD'.
        screen-active = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSE.
    LOOP AT SCREEN.
      IF screen-group1 = 'MOD'.
        screen-active = '1'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.

  • Selection Screen 


1 comment:

Your useful comments, suggestions are appreciated.Your comments are moderated.

Followers

Contact Form

Name

Email *

Message *

Web Dynpro ABAP Book

An SAP Consultant

Follow US


Want to Contribute ?

If you are interested in writing about the new stuff you learn everyday while working, please write to the.sap.consultants@gmail.com.

Click on Contribution for more details.