Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Deletion of master data

Former Member
0 Kudos

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.

6 REPLIES 6

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

0 Kudos

Hi ,

Just go into following enhancements and check which one suits for you.

MGA00001

MGA00002

MGA00003

Regards

Ashutosh

Reward points if helpful