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

FM exception in BW system

Dear colleagues,

It seems a function module (developed in a BW system) cannot raise an exception when called from an external system through a middleware.

Any hint? Thanks.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 09, 2007 at 04:04 PM

    What seems to you is correct.

    Unfortunately you need to be more specific than that to get any help with this. This is a general message. Likely there would be a dump (in txn ST22 in the BW system) which may tell what the problem was.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      You can't trap ABAP exceptions when calling from an external system. This is because there isn't an abap context which called the function call which would receive the function module's exceptions up the program callstack and make use of them. In other words you can only use those exceptions when you are calling the FM from ABAP.

      There's an alternative approach utilised with many BAPIs which are RFM enabled FMs intended for SAP and third party system use.

      They have as TABLES parameter an object called a return table. This table contains messages in a standard format which you can receive into your third party system (or SAP system if RFC) and then handle from there. Search for BAPI* in SE37 to find examples, click the TABLES tab.

      Hope that helps.


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.