Hi Venkat,
Not sure what was change to Exists function after PI patching.
Exists function will return true, when source node exists(not null), regardless has value or empty value.
If understand correctly, you want to create target node only when source node has value(non-empty value). The function name should be "hasValue", then pair with createIf.
Harish's udf will work, and need to use mapWithDefault blank before feed into udf as mentioned.
If you want to ignore blank space not to create target node, can change to like below:
input.trim().length() > 0
If you have PI/PO with B2B MappingFunctions, UDFUtilPool have built in function "hasValue" and UDFNodePool have function "createIfHasValue" for above mentioned requirements. Save all the hassle to manually create udf.
Reference:scn.sap.com/community/b2b-integration/blog/2015/04/10/udfnodepool-explained-in-easy-example
Regards,
Yee Loon