on 07-05-2005 7:22 PM
Hello
Does anyone know how to throw exceptions from mappings program? Also the same exceptions should be caught in BPM.I checked that if mapping gets failed i.e. if MappingException is raised then we can have exception branch in BPM which can handle that but I wanted to raise custom exception in mapping program. I tried that with throw new Exception() but that does not work as the Simple or Advance function does not throws Exception or catch exception.
Thanks in advance.
Regards
Rajeev Patkie
Hi Rajeev,
You can simply raise a runtime exception in a user defined function, e.g.:
<i>public static String raiseExc(String a, Container container) throws Exception {</i>
//write your code here
RuntimeException e = new RuntimeException("mapping error");
if (<any condition>) {
throw e;
} else {
return a;
}
<i>}</i>
Best regards
Joachim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajeev,
have you seen this weblog by Sridhar?
"Raising Exceptions in SAP XI Mapping"
/people/sap.user72/blog/2005/02/23/raising-exceptions-in-sap-xi-mapping
Regards,
michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.