on 07-09-2007 6:01 PM
Hi @,
I am working on a scenarion file to proxy where i need to throw exception in xi monitor which can be viewed thru sxmb_moni ,how to do this thru abap cod ein proxy I dont know .
Please suggest any possible solution to do tht .
thx in advance
Regards
If you are using a bapi you can always use the standard fault message which is in return structure....or
You can create a fault message types along with data types and fill them on ABAP side and return back to XI..
Those are my views
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
They won't be returned to the sender, since it is an async scenario.
But it will appear as an application error in the SXMB_MONI log.
Make sure you define a fault message type and insert it in the inbound interface you use to create inbound proxy.
Then in proxy generation, an exception will be automatically created.
You have to create the code to explicitely thrown this exception by some defined criteria (for example, if the input data fails some validation).
When the exception is thrown, the fault message is sent back to XI and the application error is logged in moni.
Regards,
Henrique.
The followings links might help you
http://help.sap.com/saphelp_nw04/helpdata/en/5d/a45c3cff8ca92be10000000a114084/frameset.htm
/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
/people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client
See, the fault message type will come back in the same message pipeline, and the message will have error status.
Of course, you can execute one FM from your inbound proxy that will trigger an XI outbound interface (IDoc, RFC, client proxy, whatever), but then your previous message will have successfull status in the monitor.
Regards,
Henrique.
You wish to return the error from R/3?
It maybe better to do it via a bapi (which can return error codes).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.