‎2008 Jan 25 2:51 AM
Hi Experts,
ITAB.
OBJNR STAT
10076532 DLFL
10076532 NOCO
I WANT TO DELETE ALL ENTRIES WHICH ARE HAVING STATUS DLFL.bUT MY PROBLEM IS THAT I WANT TO DELETE BOTH OBJNR BECAUSE THESE ARE SAME.
PLEASE TELL ME THE RIGHT SOLUTION.I DONT WANT TO
DELETE DUPLICATE ENTRIS.
‎2008 Jan 25 2:55 AM
Hi Garima
check this updated code...
read table itab with key stat = 'DLFL'.
if sy-subrc eq 0.
delete itab where objnr = itab-objnr.
endif.
this will delete all the objnr which have a DLFL status..
Edited by: Jackandjay on Jan 24, 2008 10:04 PM
‎2008 Jan 25 2:55 AM
Hi Garima
check this updated code...
read table itab with key stat = 'DLFL'.
if sy-subrc eq 0.
delete itab where objnr = itab-objnr.
endif.
this will delete all the objnr which have a DLFL status..
Edited by: Jackandjay on Jan 24, 2008 10:04 PM
‎2008 Jan 25 3:01 AM
i WANT TO DELETE SAME OBJNR BECAUSE I M HAVING OTHER ENTRIES OF STAT NOCO.
mY PROBLEM IS THAT WHEN THE STAT IS DLFL IT CREATE AN ENTRY OF STAT NOCO SO I WANT TO DELETE BOTH OBJNR.
‎2008 Jan 25 4:12 AM
‎2008 Jan 25 3:06 AM
Hi Garima, then in that case go to the DB table entries and manually delete the duplicate records which u dont need. This u can do by going to se11, table entries, check the entries which are to be deleted and on the menu bar u have table entries tab, under which delete entries option is available.
hope this helps.
cheers,
Hema.