Sample Program On AT SELECTION-SCREEN OUTPUT - 2.



REPORT ztest.

TABLES: pa0000, pa0001.

PARAMETERS: p_chk1 AS CHECKBOX USER-COMMAND rusr,
p_chk2 AS CHECKBOX USER-COMMAND rusr.

SELECTION-SCREEN: BEGIN OF BLOCK blk1 WITH FRAME.
SELECT-OPTIONS: s_pernr FOR pa0000-pernr MODIF ID a,
s_stat2 FOR pa0000-stat2 MODIF ID d.

SELECTION-SCREEN: END OF BLOCK blk1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

   IF screen-group1 = 'A'.
      IF p_chk1 = 'X'.
          screen-active = 1.
      ELSE.
          screen-active = 0.
      ENDIF.
    MODIFY SCREEN.
   ENDIF.

   IF screen-group1 = 'D'.
       IF p_chk2 = 'X'.
           screen-active = 1.
       ELSE.
           screen-active = 0.
       ENDIF.
    MODIFY SCREEN.
   ENDIF.

ENDLOOP.


OUTPUT:



On Checking the Checkbox – Personal Number, the selection screen looks like:



On Checking the Checkbox – Employment Status, the selection screen looks like:



On selecting both the checkbox, the selection screen looks like:



ALSO READ:

- ABAP EVENTS During Runtime Of A Report Program.

- INITIALIZATION Event - Introduction With A Sample Code.

- AT SELECTION-SCREEN Event - Introduction With A Sample Code.

- AT SELECTION-SCREEN OUTPUT Event - Introduction With A Sample Code.

- AT SELECTION-SCREEN ON VALUE REQUEST- Introduction With A Sample Code.

- AT SELECTION-SCREEN ON HELP REQUEST- Introduction With A Sample Code.

- AT SELECTION-SCREEN ON - Introduction With A Sample Code.


- Sample Program On AT SELECTION-SCREEN OUTPUT - 1.

- Sample Program On AT SELECTION-SCREEN OUTPUT - 2.

- Sample Program On AT SELECTION-SCREEN OUTPUT - 3.

- Sample Program On AT SELECTION-SCREEN OUTPUT - 4.

- Sample Program On AT SELECTION-SCREEN ON VALUE REQUEST FOR field - 1.

- Sample Program On AT SELECTION-SCREEN ON VALUE REQUEST FOR field - 2.

- Sample Program On AT SELECTION-SCREEN ON HELP REQUEST FOR field- 1.


Your suggestions and comments are welcome in this section.

Please mail all your contributions to administrator@abapmadeeasy.com We request you to mention your Name, Designation, Experience & Organization you are working for. Your posts will be verified and posted in this site with your name.