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_SAVEDATA and Authorization Object

Former Member
0 Likes
740

We are currently using BAPI_MATERIAL_SAVEDATA to perform ad-hoc updates to the Accounting and Costing 2 views for Future price and planned prices 1, 2, and 3.

When attempting to lock it down and just give the transaction to the business roles, it is failing unless we unlock all maintenance views of the material master (change mode) even though I specifically only send in the accounting view and costing view under the valuation tables.

Has anyone else found this problem and if so, is there a solution for it?

Thanks in advance for your time,

Mark Fulton

1 REPLY 1
Read only

Former Member
0 Likes
433

I have found the solution to this problem. When calling BAPI_MATERIAL_SAVEDATA, we needed to check the table RETURNMESSAGES. The 'first' message was an authorization failure, but that was only when the BAPI was attempting to 'create' the view. The actual change worked successfully. The return that we checked (From the 'exceptions') was simply the 'first' error message - which in this case was very misleading.

Hope this helps someone else out as this took us quite a bit to figure out.

Thanks,

Mark Fulton