Posts

Showing posts with the label CHECKBOX

SAP ABAP: Capturing CHECK BOX event in FM REUSE_ALV_GRID_DISPLAY / Cell Editing

Image
Requirement: Show total number of rows selected as message whenever a user     click on a check box column in REUSE_ALV_GRID_DISPLAY. To accomplish this, we have to use EVENTS in REUSE_ALV_GRID_DISPLAY to capture changes made by the user. In data declaration: Data: gt_events  TYPE slis_t_event,         wa_events  TYPE slis_alv_event. */------------------------------------------------------------------------  FORM display_alv_report. */------------------------------------------------------------------------ gd_repid = sy-repid. Refresh: gt_events. wa_events-name = 'CALLER_EXIT'. wa_events-form = 'CALLER_EXIT'. APPEND wa_events TO gt_events. wa_events-name = 'DATA_CHANGED'. wa_events-form = 'DATA_CHANGED'. APPEND wa_events TO gt_events. CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'      EXPORTING           i_callback_program   ...

SAP ABAP: How to capture Check box event on Table Control in Dialog Programming?

Image
Capturing checkbox event on table control quite tricky as I've found numerous inquiries on the web. And here's my solution; Step 1. Add a screen and create Table Control. Upon selecting the internal table, insert the Check Box on the table control you've just created. Step 2. Double click the check box and on the check box attributes, put 'CHK' on the function code. This will trigger event on the PAI whenever user SEL/UNSELECT the check box column on the Table Control. Step 3. On the PAI Module, */---------------------------- ------------------------------ --   MODULE pai_0100 INPUT. */---------------------------- ------------------------------ --   CASE SY-UCOMM.     WHEN 'CHK'.          ""your logic goes here..   ENDCASE. ENDMODULE.               " End of PAI_0100  INPUT */============================ ======== Ho...