on 07-17-2009 11:46 AM
Hello all,
The requirement is to Throw an Custom Error Exception in the SXMB_MONI, which we are able to do and generate the custom error message to stop the message in moni . I have created the UDF to call API's Classes such as BaseRuntimeException or RuntimeException.
Above API's -Able to populate the Custom Message in the TRACE Node of the Request Message mapping Step.
Not Able to Populate the error Message in the ERROR Node of the Request Message mapping Step,so I want to know is that any API's can be used to populate the custom message in error Node or Can i raise the OSS notes ? .
Any OSS notes helps me to do that?
Thanks,
Kamal
Throwing Custom mapping exception...
Throwing Smart Exceptions in XI Graphical Mapping ... [I always used this to throw error & stop mapping]
/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
XI/PI: Throwing Generic Exceptions from any type of Mapping
/people/michal.krawczyk2/blog/2007/04/26/xipi-throwing-generic-exceptions-from-any-type-of-mapping
-Siva Maranani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There is no API to provide this functionality. The reason is the XI message processing is through pipeline as you know. And this is nothing but SAP specific services. So you can not alter them as they are. For the request that you are asking, you will have to edit the pipeline step that populates the SAP:ERROR node. For this, we need to identify which service does this and then if it is possible to write a user exit, etc...So in this case, I would suggest you go with raising an OSS note.
However, can you please tell us why is this required? I can understand to send a message/mail if you get an error or something like that. But I am not able to figure out in what scenarios would you require this kind of error display.
Thanks and Regards,
Sarath.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Kamal,
Any error while mapping results the StreamTransformationException, enclose you statements in try..catch block and throw the StreamTransformationException in catch block.
Eg:
try{
if(i==0)
throw new RuntimeException(" ");
}catch(Exception e){
thow new StreamTransformationException("Your Excep",e);
}
Regards,
Prasanna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.