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 updating Profit center in storage view of Material Master

Former Member
0 Kudos

Hi All,

I have a requirement to update Profit Center in storage view of Material Master. So for updating Profit Center I used ‘BAPI_MATERIAL_SAVEDATA’. In this BAPI we will pass Material number, Plant and New Profit center. When I used this it is successfully updating the MM view and in the return message it’s showing no authorization for this transaction. For my ID I have authorization for General Plant Data / Storage, Costing and Plant/Storage Location Stock views in Material Master Change (MM02).

I want to know why it is giving error message. Do I need to have authorization for all views in MM02 if I want to update the profit center through this BAPI?

Pointers to any other BAPI which can be used for updating Profit center in storage view in such a way that I need to have authorization for any specific view in MM02 will be helpful.

1 REPLY 1

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please try this FM perhaps they may help.

KE_PRCTR_MARC_UPDATE

KE_PRCTR_MARD_UPDATE

Regards,

Ferry Lianto