2006 Aug 29 9:00 AM
Hi
is it possible to delete a record in a table control then how to write a code for deleted recodr and refreshing the data again
thanks,
kiran
2006 Aug 29 9:04 AM
Hi
is it possible to delete a record in a table control then how to write a code for deleted recodr and refreshing the data again
thanks,
kiran
2006 Aug 29 9:04 AM
2006 Aug 29 9:09 AM
hi,
MODULE modify INPUT.
IF v_check = 'X'.
it_knbk-chk = 'X'.
MODIFY it_knbk index tc1-current_line.
ELSE.
CLEAR it_knbk-chk .
ENDIF.
ENDMODULE.
MODULE user_command_ INPUT.
v_ucomm = sy-ucomm.
CASE v_ucomm.
WHEN 'DELE'.
DELETE it_knbk where chk eq 'X'.
DESCRIBE TABLE it_knbk LINES tc1-lines.
endcase.
ENDMODULE. " USER_COMMAND_ INPUT
hope this helps,
do reward if it helps,
priya.
2006 Aug 29 9:19 AM
Hi,
Check the Demo Programs...
<b>DEMO_DYNPRO_TABCONT_LOOP_AT
RSDEMO_TABLE_CONTROL</b>
Regards
vijay
2006 Aug 29 9:20 AM
Hi,
You only need to delete record from your Internal table.
Here the code:
LOOP AT IT_CONTROL.
IF IT_CONTROL-ZCHECK = 'X'.
DELETE IT_CONTROL.
ENDIF.
ENDLOOP.
Notes:
IT_CONTROL your Internal Table for Table Control.
ZCHECK = Line Selection in your Table Control.
Regards,