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

User Authorization problem in BAPI BAPI_REPMANCONF1_CREATE_MTS

Former Member
0 Likes
723

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

2 REPLIES 2
Read only

Former Member
0 Likes
597
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'

Read only

Former Member
0 Likes
597

Hi Sowmya,

Thanks for your reply. I passed the same parameter still it is not capturing error.

Regards,

Udupi