04-24-2007 10:27 AM
Hello freinds,
If we want to delete some material from material master data which are uploaded twice than how can we delete that using BAPI.
My mail id is:- "talele.rahul@gmail.com"
thanx & regards,
Rahul Talele
04-24-2007 10:29 AM
04-24-2007 10:31 AM
Hi
U can use the bapi BAPI_MATERIAL_SAVEDATA, but u can set flag to delete the material logically only.
BAPI_MARA-DEL_FLAG = 'X'
The bapi BAPI_MATERIAL_DELETE call the trx MM06, this trx is to set the flag for the logical cancellation, so it's better to use BAPI_MATERIAL_SAVEDATA.
Remember the material will be deleted from database only when the data are archived
Max