Skip to Content

Need help in writing UDF?

Hello All,

In one XML iam getting multiple item level, i need to check each item level if the item level one tag contain i A, B, C and D then i need to add the amount of that particular item level , in the same way if the item tag is E , F and G then add that amount and send it to receiver side.

Please let me know how to do this.

Thanks and Regards,

Chinna

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 11, 2010 at 03:50 PM

    hi,

    If you are using message mapping and I think without UDF you can achive the requirement.

    Use the If else condiion

    If I = A or B or C or D then Amount->Sum(stanrd function) then map and finally you can use Format number function to achive decemal values if you want..

    In else case If I = E or F then Amount->Sum then map the source value to the target..

    Sum what it does' what ever the items condition is true then it will some all those items.

    Sum you can find out eaither Statistics Function or Arithmetica functions in message map...just check all the functions you can find the Sum.

    Regards,

    Venu.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 12, 2010 at 07:37 AM

    Hi,

    Can you provide a sample input/output so that we can visualize this problem?

    Regards,

    Mark

    Add comment
    10|10000 characters needed characters exceeded