on 10-14-2015 7:42 PM
Hi Experts,
We are using SAP PI 7.0 and my requirement is pretty simple.
We have certain optional fields at target side and my requirement is whenever there is no value/if the source field doesn't exists then some mapping error should be display in SXMB_MONI or in simple words mapping should not be executed at all and it should display error message.
I tried by using the below UDF but it is not working as expected (by using MapWithDefault and TRIM standard functions)
if (a.equals(""))
{
throw new RuntimeException ("SRC_FIELD1 is empty")
}
else
return a;
Your help is highly appreciated
Regards
Faisal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yep what Raghu said. This will check if the element is supplied on the source side. You also need to check in the UDF when the element is supplied and it's blank so add another parameter to the UDF and pass in the value of source element also. Check if this value is equal to empty string ("")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.