‎2008 Apr 07 8:01 AM
HI,
i want to delete a selected row using table control.
my table control name is " TC_INCl_COVER"
in the property of w/ lineselection i was mentioned name in_sel.
that i will give me facility to select one or more row in table control
at runtime.
now i want to delete a selected row. is there any solution.
my internal table name is IT_IN_COV.
my database table name is ZINRISINC.
and i was used
LOOP AT IT_IN_COV WHERE IT_IN_COV-SELFIELD = 'X'.
ENDLOOP.
which gives me an error.
i made table control using dictionary/programs fields windows F6.
and its name is also zinrisinc.
please help me .
thanks
‎2008 Apr 07 8:13 AM
Hi,
Refer to the program : RSDEMO_TABLE_CONTROL
Regards,
Renjith Michael.
‎2008 Apr 07 8:13 AM
Hi,
Refer to the program : RSDEMO_TABLE_CONTROL
Regards,
Renjith Michael.
‎2008 Apr 07 8:28 AM
VipulKumar Darji,
Try to use like this .
regards,
Venkat.O
LOOP AT IT_IN_COV WHERE SELFIELD = 'X'.
"Use the below statement if ur internal table and Database tables are different in structures.
"Change according to ur requirement.
DELETE FROM sflight
WHERE carrid = p_carrid AND
fldate = sy-datum AND
seatsocc = 0.
"If your internal table ( that has been displayed on table control) is the same as ur database table.
Delete SFLIGHT from IT_IN_COV.
"above statement are examples
ENDLOOP.