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 line in internal table

Former Member
0 Likes
942

hi guys,

i want to delete a line in the internal table with condition.

how am i going to code delete the line? the brief code is as below. can any please help me to fill up? thanks


    IF wa_ekbe NE ' '.

   ???? where index sy-tabix.

    ENDIF.

hi guys,

i want to delete a line in the internal table with condition.

how am i going to code delete the line? the brief code is as below. can any please help me to fill up? thanks


    IF wa_ekbe NE ' '.

   ???? where index sy-tabix.

    ENDIF.

4 REPLIES 4
Read only

Former Member
0 Likes
629

Hi Ben,

You can use the following code to delete data from internal table.

DELETE itab WHERE <Condition>.

Hope this helps you.

Thanks,

Arun

Read only

Former Member
0 Likes
629

Hi Ben

You can code it this way:

IF wa_ekbe NE ' '.

DELETE table tb_ekbe from wa_ekbe.

ENDIF.

Thanks

Shivika

Read only

Former Member
0 Likes
629

Hi,

use DELETE <ITAB> WHERE <COND.>.

Reward if helpful.

Thanks.

Read only

former_member156446
Active Contributor
0 Likes
629

if you want to delete some row in internal table where some field where some <field> has value.. do this..


delete it_ekbe where <field> NE ' '.