2013 Jan 22 8:51 AM
Hi All,
I am using the statement:
DELETE FROM marc WHERE matnr IN lt_matnr_range.
My range table LT_MATNR_RANGE has around 40 entries.
If I get SY-SUBRC = 4, then, is there any way to know which entries of MATNR have not got deleted?
Many thanks in advance,
Best Regards,
Anu
2013 Jan 24 12:58 PM
Hi Anu,
in the example above none of the entries get deleted because it's a database table (partial delete works only with internal tables).
Just check sy-dbcnt, because this field would contain the count of the deleted entries.
Regards
Nicola
2013 Jan 24 5:54 PM
Hi Anu,
You shouldn't directly modify standard database tables. Doing so violates your company's service contract with SAP since changes you make to one table aren't propagated to related tables. Try to find a function module or BAPI or use BDC to make the necessary changes.
Cheers,
Amy