‎2012 Jan 16 7:55 AM
Hi Experts,
I am using the BAPI BAPI_REPMANCONF1_CREATE_MTS for the posting MFBF.
But for some user this BAPI returning error message ' user doesnt have authorization to post MFBF'.
This BAPI is calling function module RM_CHECK_AUTH_BACKFL to check the Authorization.
i checked the BAPI , BAPI has called this function module 4 times with different parameter.
i want to call the function module RM_CHECK_AUTH_BACKFL before calling the BAPI BAPI_REPMANCONF1_CREATE_MTS
and capture the error. if user have authorization than only it has to post.
i am not able to check which parameter checking user authorization for function module and i dont have the debug authorization also for the user id which dont have authorization for MFBF.
Can any one tell which and all paramter i have to pass to function module RM_CHECK_AUTH_B to check user authorization.
Regds,
udupi
‎2012 Jan 16 8:04 AM
CALL FUNCTION 'RM_CHECK_AUTH_BACKFL'
EXPORTING
werk = l_bflushdata-werks "==>plant
lagort = l_bflushdata-alort "==>receiving storage location
check_post = c_auth_post "==>this depends upon what you are doing = 1 for final post
check_type = c_auth_bfl_b "===> b for the first check..
EXCEPTIONS
no_auth = 1
userdata_incomplete = 2
wrong_call = 3
miss_storage = 4
OTHERS = 5.or you can also just do a check on plant only by passing no_lagort = 'X'
‎2012 Jan 16 9:28 AM
Hi Sowmya,
Thanks for your reply. I passed the same parameter still it is not capturing error.
Regards,
Udupi