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

Authorization issue in BAPI_MATERIAL_SAVEDATA

Former Member
0 Likes
1,352

Hi Experts,

We have a program which uses the BAPI_MATERIAL_SAVEDATA which will update the MINLOTSIZE in the MRP view

The BAPI is checking for 2 Authorization objects M_MATE_STA (Authorization to change the MRP View) and M_MATE_MAR (Authorization to change the Material Type) for Activity = 1 ( Create ). The User have the authorization for the first one and not for the second (bt the user have the authorization for the Activity = 2 ) which raises the exception in the program resulting in the failure of the update.

I think the BAPI works in this way first it will check for 01 activity and then checks for 02 activity. but while checking for 01 activity it raises an exception its coming out and doesn't check for 02. I feel like its the bug in the program.

when the user updates the field using the transaction MM02 it works perfectly.

Can anyone help me on how to solve this issue.

Thanks,

Prem.

2 REPLIES 2
Read only

Former Member
0 Likes
759

Hi,

You can try using transaction SU53 after you run the BAPI and check if the user needs any extra authorization.

If not, you should look for an OSS NOT and post a customer message to SAP if you don't find anything.

Regards,

Gilberto Li

Read only

Former Member
0 Likes
759

As gilbert suggested,

take a screenshot of SU53 after you run the BAPI and send it to basis. Basis will understand what roles need to be added to the user.

Thanks

Kiran