01-21-2008 3:53 PM
Hi ,
i have a custom button in my alv grid display
and a check box
if the user checks multiple records and then he will click
custom button
now here my problem is
in the user _command the table is not getting updated
ie
it is not going into this loop..
can anyone help me in this regard
loop at itab where check = 'X'.
endloop.
01-21-2008 4:02 PM
Hi ,
Try this .
form build_layout.
gd_layout-box_fieldname = 'SELECT'.
gd_layout-box_tabname = 'ITAB_DISPLAY'.
endform. " BUILD_LAYOUT
Form user_command using r_ucomm like sy-ucomm
rs_selfield type slis_selfield.
case r_ucomm.
when '&BUTTON'.
loop at itab_display where select = 'X'.
Regards,
Mohan.
01-21-2008 4:11 PM
hI,
I AM sorry to say that it is not working for me
for your understanding
DATA: BEGIN OF itab OCCURS 0,
mara TYPE matnr,
check TYPE c,
selected type c,
END OF itab.
g_layout-box_fieldname = 'SELECTED'.
g_layout-zebra = 'X'.
g_layout-colwidth_optimize = 'X'.
g_layout-no_hline = 'X'.
g_layout-edit = 'X'.
g_layout-box_tabname = 'ITAB'.
case sy-ucomm.
when 'DELE'
LOOP AT itab WHERE SELECTED EQ 'X'.
IF ITAB-CHECK = 'X'.
ENDIF.
ENDLOOP.
endcase.
Please kindly help me