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: 

About Material Deletion

Former Member
0 Kudos

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

2 REPLIES 2

former_member181962
Active Contributor
0 Kudos

You can use the FM: BAPI_MATERIAL_DELETE

Regards,

Ravi

Former Member
0 Kudos

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