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

How to Catch BAPI Application Errors?

Is there a way to catch BAPI execution errors and display a custom message?

Currently it seems that if the RETURN table from a bapi contains a record with a type of 'E' then an "Application Message" pops up with text similar to "An error was returned from the back end system..." How can you customize/suppress what gets displayed instead?

If there were a way to validate the data before executing the bapi via a guard condition then I would, but in this case that just can't be done.

Thanks.

VC 9

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2006 at 07:56 AM

    Hello,

    I haven't a solution, but I suggest, that you try it with a RFC function module, which calls the BAPI, then you do your validation and exception handling in the RFC function module.

    Best Regards,

    Marcel

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Marcel,

      I ran into this problem as well when trying to use VC as front end for Travel Mgt. I solved this issue using custom RFC and renaming the RETURN parameter to RETURN2. After doing this, VC no longer intercepted with the Application Message popup. This allowed me to handle errors and messages within the VC application in a more user friendly manner.

      Hopefully this will help others with this issue prior to any fixes by VC developers.

      John

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2006 at 08:53 AM

    I guess you can find this info in the Portal logs.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2007 at 02:59 AM

    hmm, I seem to be having the same issue, when i do a single test in any of the systems(back end or the dataservice test in EP), I dont get the error message.

    and there doesnt seem to be a way of supressing this by creating a wrapper too

    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.