on 08-08-2013 9:02 PM
Hi All,
We are currently on PI 7.0 and are raising mapping exceptions based on certain conditions using the ABAP mapping as described by Mikel in the following blog:
But now we are migrating to PI 7.3 Single Stack and I am wondering if the same functionality can now be achieved via Java only. I do not see CBMA providing the same solution. Please share your suggestions.
Regards,
Rahul
Hi Rahul,
Please check my response in this thread http://scn.sap.com/thread/3349379
You can raise exception in java mapping.
Regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rahul,
Within your mapping, you can add UDF's like,
if(XYZ==some particular value)
throw new RuntimeException("Invalid value of XYZ"+XYZ);
else return(XYZ);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, it is possible to throw java exception using java mapping too. You can create custom exception and catch those exception and inside catch block use throw statement with error message. Please see this link for example
http://www.javamex.com/tutorials/exceptions/exceptions_throwing.shtml
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
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.