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

RFC Receiver - Authorization failure

When I call a BAPI directly from XI and if the user doesn't have authorization for executing the function group, is it possible to trap a fault message?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Jun 16, 2006 at 03:01 PM

    Hi,

    if you call a bapi without a wrapper

    you'll get the error in the RETURN structure of

    your bapi I believe

    Regards,

    michal

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2006 at 03:13 PM

    Hi SSG,

    <i>possible to trap a fault message?</i>

    Although I haven't tried this out yet, the documentation regarding fault message types in help.sap.com does give hope-specially (rather, only) for synchronous scenarios!

    Here are the links to the documetation:-

    1.http://help.sap.com/saphelp_nw04/helpdata/en/dd/b7623c6369f454e10000000a114084/frameset.htm

    2.http://help.sap.com/saphelp_nw04/helpdata/en/dd/b7623c6369f454e10000000a114084/frameset.htm

    3.http://help.sap.com/saphelp_nw04/helpdata/en/dd/b7623c6369f454e10000000a114084/frameset.htm

    Regards,

    Sushumna

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2006 at 03:22 PM

    Hi again..

    Basically, you can design fault type messages in order to see application errors that happen on the receiver(inbound) side during synchronous communications.

    You can design these only to be viewed on the sender side.

    To generate these messages you need to meddle with the <i>ExchangeFaultData</i> and <i>ExchangeLogData</i> that are by default seen under data types

    Hope this helps!

    -Sushumna

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 16, 2006 at 03:25 PM

    Hi SSG,

    As Michal told, I think, RFC will give an exception in the Response structcure..

    I remember, we have changed the Roles to the RFC user while creating some invoice after getting an exception.

    Regards,

    Moorthy

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Actually when I call the BAPI with a user which doesn't have access to the execute that function group, I get Authorization error in my payload (and not as return structure).

      <i>

      <rfc:BAPI_PO_CREATE1.Exception xmlns:rfc="urn:sap-com:document:sap:rfc:functions"><Name>RFC_ERROR_SYSTEM_FAILURE</Name><Text>User XIAPPLUSER has no RFC authorization for function group 2012 .</Text></rfc:BAPI_PO_CREATE1.Exception></i>

      But then there is no exception message type in my BAPI (when I check in IR). So how do I map this error message?

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.