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 Field Value from Int Table

Former Member
0 Likes
1,431

HI all,

I need to delete field value from itab.

ie. itab is a internal table, it has 3 fields like NO, Name, Ind.

delete only No values from itab based on Ind.

Dont delete name values from the list.

thanks in advance.

Subbu

1 ACCEPTED SOLUTION
Read only

aabhas_wilmar
Contributor
0 Likes
954

Following code will solve the problem

loop at itab where Ind = <some value>.

clear No.

modify itab index sy-tabix.

endloop.

regards,

Aabhas

Reward if helpful...

HI all,

I need to delete field value from itab.

ie. itab is a internal table, it has 3 fields like NO, Name, Ind.

delete only No values from itab based on Ind.

Dont delete name values from the list.

thanks in advance.

Subbu

5 REPLIES 5
Read only

suresh_datti
Active Contributor
0 Likes
954

if itab-ind eq "something.

clear itab-NO.

endif.

~Suresh

Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
954

Hi,

U can do one thing,

Based on value of 'Ind' u can initialize the value of 'No' to initial by clearing its value....

Do it manually...

Cheers,

Simha.

Reward all the helpful answers...

Read only

aabhas_wilmar
Contributor
0 Likes
955

Following code will solve the problem

loop at itab where Ind = <some value>.

clear No.

modify itab index sy-tabix.

endloop.

regards,

Aabhas

Reward if helpful...

Read only

Former Member
0 Likes
954

ya

If

ITAB-IND EQ "PUT THE CONDITION WHAT EVER U WANT"

THEN CLEAR THE VALUE IN THAT FIELD

CLEAR ITAB-NO.

ENDIF.

~~GUDURI

Read only

Former Member
0 Likes
954

hi Subramanyam,

Please check the following logic.


loop at itab into wa_itab.
    if wa_itab-ind = '20'.
         clear wa_itab-no.   
         modify itab from wa_itab .   
    endif.
endloop.

hope this helps,

Sajan Joseph.