Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

delete row in table using table control

Former Member
0 Likes
338

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
317

Hi,

Refer to the program : RSDEMO_TABLE_CONTROL

Regards,

Renjith Michael.

2 REPLIES 2
Read only

Former Member
0 Likes
318

Hi,

Refer to the program : RSDEMO_TABLE_CONTROL

Regards,

Renjith Michael.

Read only

venkat_o
Active Contributor
0 Likes
317

VipulKumar Darji, Try to use like this .

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.
regards, Venkat.O