‎2008 Feb 24 2:21 PM
Hi All,
I deleted a record from the internal table which is it_scarr, this worked fine and sy-subrc = 0. Now I want to delete the record from table scarr from internal table and checked sy-subrc. Record is not deleted from the table and the value of sy-subrc = 4.
my code is:
delete it_scarr index 3.
if sy-subrc = 0.
endif.
delete scarr from it_scarr.
if sy-subrc = 0.
endif.
Please help me on this.
Thanks
‎2008 Feb 24 2:23 PM
After you DELETE from DB table.....
Delete scarr from table it_scarr.
if sy-subrc = 0.
commit work.
else.
rollback work.
endif.
Thanks,
Deepak.
‎2008 Feb 24 2:30 PM
Hi, Thank you. Here, I am first deleting the record from the internal table which worked fine. Later deleting the table record, which is not working and sy-subrc = 4. in the econd case.
‎2008 Feb 24 2:32 PM
If you INSERT or DELETE records from DB table you have to COMMIT IT as I have gave you a piece of code.
Thanks,
Deepak.
‎2008 Feb 24 2:33 PM
Hi,
what is scarr ?
is it a field in internal table it_scarr?.
Regards
‎2008 Feb 24 3:03 PM
‎2008 Feb 27 7:43 PM