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

selector field in table control

Former Member
0 Likes
450

Hi,

Using selector field how can i delete a perticular row from the table control. Only selected rows should be deleted.

please help me.

Shyja

Hi,

Using selector field how can i delete a perticular row from the table control. Only selected rows should be deleted.

please help me.

Shyja

2 REPLIES 2
Read only

Former Member
0 Likes
420

Hi,

Check this demo program.

demo_dynpro_tabcont_loop_at

Regards,

Pankaj

Read only

Former Member
0 Likes
420

Dear Shyja,

Please try the sample code given below:

Case sy-ucomm.

when 'DELETE'.

READ TABLE it_emp INTO wa_emp WITH KEY sel = 'X'.

DELETE it_emp WHERE sel = 'X'.

APPEND wa_emp to it_undo.

endcase.

Here it_emp is the internal table from which the table control is populated. It is always good that you keep a copy of the deleted entries for some time, for that is the internal table it_undo.

Please contact if you don't get the solution with your code.

Regards,

Renjith Michael.