on 05-08-2014 9:42 AM
Hello All
Request your help in mapping. I am using SAP PI 7.3
I have source field "ID" with 1.1 occurrence. if ID starts with "?" or any other special character then the entire message should fail in SAP PI 7.3
Example: ID == ?_Example, then entire message should fail. else the value in the ID field should be passed
can we achieve it through graphical mapping? if not can somebody share the UDF for the same.
Regards
James
Hi James
You can throw an exception in a UDF. Example below of the source code.
if (input.startsWith("?")){
throw new RuntimeException("Enter Exception Text");
} else {
return input;
}
Rgds
Eng Swee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
perhaps you can try to use a "if whitout else" clause in message mapping and "startswith" and "not", and use it for mapping the first node of the result message.
So if it starts with "?" the mapping will return an empty message and in your integration scenario it will launch an exception and will not follow.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Eng Swee for speedy reply
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.