‎2008 Nov 25 7:52 PM
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!
‎2008 Nov 25 8:43 PM
yes, 'cause the BAPI should do the same check as the transactions.
‎2008 Nov 25 8:43 PM
yes, 'cause the BAPI should do the same check as the transactions.
‎2008 Nov 28 4:39 AM
If you have RFC from other system then some common userID will be used & authorization of that user ID will be used.
‎2008 Nov 28 5:00 AM
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
‎2008 Dec 01 1:33 PM
Do you know if BAPI_MATERIAL_SAVEDATA calls the exit EXIT_SAPLMGMU_001 ?
Thanks!
‎2008 Dec 12 2:57 PM
‎2008 Dec 12 2:57 PM