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: 

BAPI For Material Delete issue

Former Member

Hi,

I am using BAPI_MATERIAL_DELETE for deleting a material, but when I pass a material number to bapi in a program, it opens MM06 transaction , I do not want the screen to popup, the material should be marked in background. Please suggest how to do the above

thanks

bobby

1 ACCEPTED SOLUTION

Former Member
0 Kudos

BAPI_MATERIAL_DELETE

It does a call transaction from within a BAPI.

Try MATERIAL_UPDATE_LVORM

To delete materials permanently from Material master

Use transaction MM70 -

Material Master->Other->Reorganization->Material->Choose.

Build variant with selection range of material master records to be selected for deletion and maintain run parameters. Execute.

Use transaction MM71 -

Material Master-> other->Reorganization->Material

->Reorganization

Build a second variant

Maintain run parameters and execute.

It is also important to remove the records manually from info record, POs, PRs, reservation etc for successful deletion of the material.

Hope this helps.

Thanks,

Balaji

2 REPLIES 2

Former Member
0 Kudos

BAPI_MATERIAL_DELETE

It does a call transaction from within a BAPI.

Try MATERIAL_UPDATE_LVORM

To delete materials permanently from Material master

Use transaction MM70 -

Material Master->Other->Reorganization->Material->Choose.

Build variant with selection range of material master records to be selected for deletion and maintain run parameters. Execute.

Use transaction MM71 -

Material Master-> other->Reorganization->Material

->Reorganization

Build a second variant

Maintain run parameters and execute.

It is also important to remove the records manually from info record, POs, PRs, reservation etc for successful deletion of the material.

Hope this helps.

Thanks,

Balaji

Former Member
0 Kudos

got the solution