Skip to Content
0
Former Member
Oct 19, 2012 at 01:33 PM

UDF requirement

48 Views

Hi Experts,

I have recently developed a IDOC (Invoice) to File interface.

I need a UDF code for the below requirement.

The requirement is to check (for all the occurrences) if E1EDP26/QUALF is 011; if yes then it has to check whether E1EDP26/BETRG equals FUEL or not. If any one occurrence of E1EDP26/BETRG when E1EDP26/QUALF is 011 has the value as FUEL then the output of the UDF should be true.

For example if E1EDP26/BETRG when E1EDP26/QUALF is 011 has seven occurances on source side then UDF should return true if atleast one or more occurrence of E1EDP26/BETRG when E1EDP26/QUALF is 011 has the value as FUEL. And should return false if none of the occurance has value as FUEL.

I dont think this can be achived using graphical mapping, can any one please send me complete code to achive the above. I am relatively new to PI without any JAVA knowledge.

Regards

Chandrika