2007 Apr 18 5:53 PM
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
2007 Apr 18 5:58 PM
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
2007 Apr 18 5:56 PM
2007 Apr 18 5:57 PM
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...
2007 Apr 18 5:58 PM
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...
2007 Apr 18 5:58 PM
ya
If
ITAB-IND EQ "PUT THE CONDITION WHAT EVER U WANT"
THEN CLEAR THE VALUE IN THAT FIELD
CLEAR ITAB-NO.
ENDIF.
~~GUDURI
2007 Apr 18 5:59 PM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |