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

Is it possible to show R3/CRM order errors in e-Commerce JSP's?

Hi all,

can e-Commerce Java application show backend order errors in JPS's when simulating or creating a new order from the shop? If it is possible, how can it be done?

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 15, 2008 at 05:23 PM

    In addition, SAP gives you a class to import the results from the RETURN table of your BAPI and set any error message in the User object (or another object you declare, like posd). you can then handle the error any way you want in the action class to show the JSP. This is relatively simple.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Ignacio,

      Your application should never crass after calling a BAPI if you handle the error message correctly (in a try, catch block).

      You can use the method addAllMessagesToBusinessObject to handle the RETURN table. this method takes your RETURN table and a business object as inputs.

  • Posted on May 13, 2008 at 02:23 PM

    Hi Ignacio,

    The requirement can be achieved, if you can get the error msg parameter in the BAPI in backend implementation class through JCO.

    It might require explicit programming, but definitely it can be achieved.

    If the BAPI's have the error code or error msg as a retrieval parameter, then you can get it in the backend class and then add it to the request context which can be retrieval display easily at the JSP.

    Hope it clears the doubt.

    Regards,

    Prashil

    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.