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

BAPI

Hi all,

I have a doubt regarding BAPI.. Can't we use Exceptions to throw error in BAPI like normal function modules?

Thanks

Kelly

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 15, 2005 at 08:05 AM

    Hello Kelly,

    I'm sure that you know exceptions are a way of handling errors. This linkhttp://help.sap.com/saphelp_webas620/helpdata/en/a5/3ec9f74ac011d1894e0000e829fbbd/content.htm">link> in the SAP Documentation explains the Error Handling mechanism for the BAPIs.

    I hope you will be able to see why you should not have exceptions in the BAPI interface.

    Regards,

    Anand Mandalika.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 14, 2005 at 08:24 PM

    BAPIs usually handle exceptions thru the RETURN parameter usually found under the EXPORTING or TABLES parameters.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 14, 2005 at 08:39 PM

    By design, BAPIs are supposed to be used by external application that may or may not be able to handle exceptions raised in the calls. That is the reason why all the errors are collected into the messages table and then the calling application can decide how to handle the errors based on its capabilities and limitations.

    Hope this helps,

    Srinivas

    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.