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

Former Member
0 Likes
1,147

People,

I would like to use BAPI_MATERIAL_SAVEDATA to simulate MM01 and MM02 in my Z program.

My question is:

The users that will run my program have authorization for only some Plants and Material Types. If they try to create a material with a Material Type that it is not allowed, it receives an error message.

Using my Z program, this BAPI will get the same error messages?

Thanks!

1 ACCEPTED SOLUTION
Read only

0 Likes
910

yes, 'cause the BAPI should do the same check as the transactions.

6 REPLIES 6
Read only

0 Likes
911

yes, 'cause the BAPI should do the same check as the transactions.

Read only

Former Member
0 Likes
910

If you have RFC from other system then some common userID will be used & authorization of that user ID will be used.

Read only

Former Member
0 Likes
910

You can create an Authorization object for Plant and material type and call the ABAP statement

AUTHORITY-CHECK in your program to check the authorization. now if the user has the authorization then you can alow him/her to create the material.

Edited by: Arindam Ganguly on Nov 28, 2008 6:00 AM

Read only

0 Likes
910

Do you know if BAPI_MATERIAL_SAVEDATA calls the exit EXIT_SAPLMGMU_001 ?

Thanks!

Read only

0 Likes
910

Yes, it works! Thanks!

Read only

Former Member
0 Likes
910

It Works!