Sunday, December 26, 2010
REPORT ztest_notepad. TYPE-POOLS:icon. DATA: BEGIN OF it_mara OCCURS 0, check TYPE char4, matnr TYPE mara-matnr, ersda TYPE mara-ersda, END OF it_mara. DATA:str TYPE string. START-OF-SELECTION. SELECT * FROM mara INTO CORRESPONDING FIELDS OF TABLE it_mara UP TO 100 ROWS. LOOP AT it_mara. it_mara-check = '@T9@'. "code for empty checkbox WRITE:/ it_mara-check HOTSPOT ON, it_mara-matnr, it_mara-ersda. HIDE:it_mara-check, it_mara-matnr, it_mara-ersda. ENDLOOP. AT LINE-SELECTION. it_mara-check = '@R7@'."Code for checked checkbox. MODIFY LINE sy-lilli FIELD VALUE it_mara-check. READ TABLE it_mara INDEX sy-lilli. IF sy-subrc EQ 0. str = sy-lilli. CONCATENATE 'Row no' str 'selected' INTO str SEPARATED BY space. MESSAGE str TYPE 'I'. ENDIF.
Followers
Popular Posts
- ABAP - ALV Report example with steps
- ABAP - Step by step tutorial on Smart Forms - Template Node
- ABAP - Sending email with pdf attachment
- SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program
- SAP ABAP - CL_ABAP_CHAR_UTILITIES class usage
- ABAP - Multiple value selection from F4 help for SELECT-OPTIONS
- Execute ABAP Report using SUBMIT statement
- ABAP - Select all or Deselect all in ALV or Check box handling in ALV
- Web Dynpro ABAP ALV - ON_CLICK event
- ABAP - Dynamic WHERE clause
Exactly what i wanted ! Thank's to you !!!
ReplyDeleteExactly what i wanted ! Thank's to you !!!
ReplyDelete