2007 Jul 20 6:47 AM
Hi all,
How to modify the internal table.
ex
matnr werks maktx
0001 0008 khga
0002 0098
1111 mkhh
in this i want to delete a record which has an empty value in maktx.
kishi.
2007 Jul 20 6:54 AM
Use this code.
DELETE it_mat WHERE maktx IS INITIAL.
It_mat is the internal table name.
2007 Jul 20 6:56 AM
hey
Use this.
DELETE it_mat[] WHERE maktx IS space.
It_mat[] is the internal table name.
reward if help ful.
Regards
Azad,
2007 Jul 20 6:55 AM
loop at itab.
delete itab where itab-matkx = ' '.
endloop.
Regards,
Pavan
2007 Jul 20 6:56 AM
LOOP AT ITAB.
IF ITAB-MAKTX is initial.
DELETE ITAB.
ENDIF.
ENDLOOP.
2007 Jul 20 6:56 AM
You can use the below format for delete
DELETE itab WHERE cond.
Delete itab where maktx is initial.
delete itab where maktx = ' '.
Regards
Gopi