on 12-01-2009 2:13 PM
Hi Experts,
I would like to generate manually an exception in a graphical XI mapping.
Context:
In Field1, if Value1 > Value2, force mapping to leave and generate an exception.
Feel free to contact me if you need further informations.
Regards Landry,
Hi
you can use an UDF to generated an exception try this code.
if(Value1> Value2)
throw new RuntimeException("Value1 is greater Value 2");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
http://help.sap.com/saphelp_nw04/helpdata/EN/c8/98e7d5c1620642973565ea3dd319d1/content.htm
use regular try catch in a UDF and then populate the exceptions using the mapping trace object.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks to you!
Solution provided really helps me!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I do not remember any RaiseException function delivered by SAP, so you will have to raise it from a UDF function, using regular throw clauses in the UDF's JAVA code ...
if (...) throws new AnyKindOfKnownOrCustomException(...);
Rgds
Chris
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 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.