Skip to Content
author's profile photo Former Member
Former Member

User Authorization problem in BAPI BAPI_REPMANCONF1_CREATE_MTS

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2012 at 08: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'

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2012 at 09:28 AM

    Hi Sowmya,

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

    Regards,

    Udupi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.