Application Development and Automation 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: 
Read only

BAPI_MATERIAL_DELETE

Former Member
0 Likes
1,466

Hi All ,

I am trying to delete a material ,am using the FM BAPI_MATERIAL_DELETE ,,its giving me a pop up ,taking me to MM06 ...how can i avoid it ?? i mean how can i set all this in background ??

Is there any other function that can delete a material ..

Pls suggest

Regards ,

Hemanth.

5 REPLIES 5
Read only

former_member156446
Active Contributor
0 Likes
867

Read only

Former Member
0 Likes
867

Hi .

I have gone through the previous posts .My question is whether we can avoid the pop up of MM06 transaction while using the bapi .

It should happen in the background .Can we have any method to do it ??

One more question ,I manually flagged a material for deletion in MM06 ,but when am trying to create material wid the same material ,its still allowing ..why is it so ??

A material which is flagged for deletion should not allow us to create it again?? or how do we check whether a material is flagged for deletion.

Warm regards

Hemanth.

Read only

0 Likes
867

Hemanth,

I was looking into the BAPI. I think it will not be possible to call it in background. In the call transaction there is no display parameter has been given. So, I think it will be always in display more. i.e. some manual intervention is always required.

Kuntal

Read only

Former Member
0 Likes
867

HI Kuntal ,

Yeah ,manual intervention is needed .But my requirement is ,i have excel which has 1000's of records ,i have to mark all of them for deletion .

Whats the alternative solution for this ??

Regards

Hemanth

Read only

0 Likes
867

Try using; BAPI_MATERIAL_SAVEDATA

Set CLIENTDATA-DEL_FLAG = X and CLIENTDATAX-DEL_FALG = X