‎2007 Mar 28 6:23 AM
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
‎2007 Apr 11 3:21 AM
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