‎2007 Nov 27 12:44 PM
Hi Experts,
I have four data's in my internal table.
Now I want to delete the fourth row of Internal Table.
Im new to Abap. help me on this issue.
Thanks in Advance.
Points assured.
‎2007 Nov 27 12:47 PM
Hi,
Use refresh itab. And if the table has header use also clear itab.
Regards.
Use delete itab index 4. Sorry I thought you needed to delete the whole internal table.
‎2007 Nov 27 12:47 PM
Hi,
Use refresh itab. And if the table has header use also clear itab.
Regards.
Use delete itab index 4. Sorry I thought you needed to delete the whole internal table.
‎2007 Nov 27 12:48 PM
‎2007 Nov 27 12:48 PM
Hi,
Do like this
DELETE itab INDEX 4.
Regards,
Prashant
Message was edited by:
Prashant Patil
‎2007 Nov 27 12:49 PM
Hello Jasmine,
delete <name of your internal table> index 4.
Regards,
John.
‎2007 Nov 27 12:50 PM
Hi
try like this..
DATA : idx LIKE sy-tabix.
idx = 4.
DELETE itab INDEX idx.
‎2007 Nov 27 12:50 PM
Hi,
loop at itab into wa_itab where sy-tabix = '4'.
delete itab from wa_itab.
endloop.
OR you can sort the table descending by some field and the 4th record will be first record, which you can delete it.
Regards,
Vani.
‎2007 Nov 27 12:51 PM
Hi Jasmine,
Inorder to Delete a row from the internal table you need to specify the condition, which will identity this 4 th row in internal table
Syntax: DELETE itab <condition>
DATA idx TYPE I value 4
Ex: DELETE itab INDEX idx
Thanks
Ravi
Message was edited by:
Ravikanth Alapati
‎2007 Nov 27 12:53 PM
‎2007 Nov 27 1:29 PM
Hi
Delete <itab> index 4<4th row>.
goto code <b>abapdocu</b>
find Delete statement.
U can learn it..
Regards,
S.Suresh.
reward if useful..