01-10-2007 4:31 AM
Hi guys,
I have come to crucial point.
I need to delete all those materials from the master tables
which no PO ,Material Document and no STOCK is there and some
other criteria.
Kindly somebody give me some light for this query.
If its not advisable how to approch for it and what
will be strategy?
Thanks a million.
01-10-2007 4:35 AM
Hi,
For deleting the material use the BAPI BAPI_MATERIAL_SAVEDATA...
In the parameter HEADDATA-MATERIAL pass the material number.
In the parameter CLIENTDATA-DEL_FLAG = 'X'
In the parameter CLIENTDATAX-DEL_FLAG = 'X'.
Then give COMMIT WORK..
Thanks,
Naren
01-10-2007 5:05 AM
HI NAREN,
Thanks !!
But this bapi is used for creating and changing the materials.
Not for DELETION.
If you are having any solution to delete the materials kindly suggest me.
Create and Change Material Master Data
BAPI_MATERIAL_SAVEDATA
I ll be really thankful to your solution.
Jyoti
01-10-2007 5:08 AM
Hi,
The BAPI will work for deletion also..
Deleting means not physically deleting from the database tables..
The field MARA-LVORM will be set to 'X'.
Please check my previous for details..
Thanks,
Naren
01-10-2007 5:14 AM
Jyothi,
we should not delete any data once its created in SAP, we should set the deletion flag on, so that, it will be considered as deleted entry. the other way is archiving.
Sujatha.
01-10-2007 5:37 AM
Hi ,
My objective not to display those material in MM03 (Transaction )
whose material deletion flag is checked thru the transacion MM06.
Any solution please suggest me.
01-10-2007 5:45 AM
Hi ,
Just go into following enhancements and check which one suits for you.
MGA00001
MGA00002
MGA00003
Regards
Ashutosh
Reward points if helpful