on 02-16-2016 1:09 PM
Hello All.
I have requirement where i will pass PO to RFC and get 4 o/p fields.
i need to check
if field 1 2 and are blank and 4 is not blank then result is X
else
result = y,
Can anyone help me in writing udf.
Thanks
Hi Naveen,
For all fields after field use mapWithDefault function before map it to this UDF.
Execution Type: Single Values
public String mapResult(String field1, String field2, String field3, String field4, Container container) {
if (field1.isEmpty() && field2.isEmpty() && !field4.isEmpty())
return "X";
else
return "Y";
}
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks praveen and inaki
issue resolved both solutions are working
Regards
Naveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This can be achieved using standard function only no need of UDF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.