on 02-14-2007 10:17 PM
Hi
My question might be stupid, but I need you help.
I would like to know how can I update the message status what we see while using trasaction SXMB_MONI . The Scenrio is, I have a Custom Interface program build on the Abap Proxy interface method called EXECUTE_ASYNCHRONOUS.
If I am not wrong, transaction SXMB_MONI is on the XI system and also on the SAP Application system. ( But I am not sure in what way the same transaction differ in two systems )
My issue is, when I receive the xml data into a structure in abap proxy, I am doing some validation on the received message data. If I found some error in the data , then I need to update the Message status of the SXMB_MONI to ERROR flag. How to implement this ? I have not done one before. And I am not sure, if any exception like error message is raised, will it stop the proxy from processing further and update the Message Status and this can be viewed using SXMP_MONI in the SAP application system to be ERROR flag?
Or is there a BAPI or function module to handle this ?
Appreciate your help
David
Hi David,
first define an fault msg type for your interface and regerate the proxy. You can raise a exception then like:
DATA:
wl_standard_data TYPE z<pre><code>_exchange_fault_data,
wl_additional_data TYPE z<pre><code>_<myPreferredMsgType>,
RAISE EXCEPTION TYPE z<pre><code>_cx_exchange_fault_data
EXPORTING
standard = wl_standard_data
addition = wl_additional_data.
You can use the help "pattern" button.
If you want to raise later, just switch a variable and raise later. Put the raising in a local method (easier). Of course the method stops in the moment you raise the exception.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I am not sure If I had understood you reply. But Would need your help to have a bit more insight to your answer. I am not completely into XI , but I am from ABAP side.
At the R/3 side , Abap Proxy object geneted has the INTERFACE and its associated METHOD, in which I am building my own abap code to do any validation on incomming data. But If I want to Raise a Exception, I understand that this Expection has to be first defined .
But do I have to define a new Z Expection class or can I just add a exception in the Proxy -Interface-method.
I have not understood this process.
All I need to do is, if I find any incomming data error , during my validation at the R/3 side, I need to stop the METHOD processing ( by any means ) and Update the Message Status flag show in SXMB_MONI to Error .
What is the trigger that i can implement in myown code that will update the Message status to Error , from R/3 perspective of using SXMB_MONI.
Thanks
David
Hi David,
I suggest a workaround for your problem.....see what you want is that if your data is having some validation error - then you want your SXMB_MONI to show the msg with error flag.......so you do your validation work in your mapping itself in XI.....so if your source data is having some validation error, then your mapping will fail and in the trace of your msg, you can see why in mapping the error occured. If your data is valid, then send your data to proxy.
Hope this solves your query.
Thanks,
Rajeev Gupta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi David,
I'm affraid the SXMB_MONIs on your two systems are not conected and a "error flag" cannot be transfered from the second to the first one, when on the first (XI) was everything fine and the problem is on WAS.
In other words for XI's SXMB_MONI everything is fine. You need to monitor both systems.
Regards
Tomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
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.