cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thanks for your comments Jolly but...

SAP gives you a class to import the results from the RETURN table of your BAPI

which class are you talking about?

and...

you can then handle the error any way you want in the action class to show the JSP. This is relatively simple.

what about if the application crashes after calling the bapi?

Any help would be really appreciated.

Thanks.

Former Member
0 Kudos

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.

Answers (1)

Answers (1)

prashil
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

Thanks Prashil,

I guess we definitely have to create all message handling.

Regards.