cancel
Showing results for 
Search instead for 
Did you mean: 

defing user defined function in message mapping

Former Member
0 Kudos

hi experts of xi.

i want to create UDF for counting no of records in body and checking with trailer countinfo and adding all contract account amounts in file body and checking with trailer sum.

if these 2 comparings r not matched then we have to set flag field 'N' else we have to set as Y'.

waiting for ur answer.

regards.

seeta ram.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member214364
Active Contributor
0 Kudos

Hi Seeta Ram,

Could you please send us sample source payload and structure if possible.

so that we can give you UDF code.

Cheers,

Jag

Former Member
0 Kudos

hi jag this is my sample code.

thanks for u r echo.

HEADER|2201227|IRELAND

10004565|234.44

14583839|348.00

19030397|554.58

17464638|200.00

TRAILER|4|13000

waiting for u r response.

bye.

regards.

seeta ram.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

pretty easy if you want to count number of lines (records)

two inputs (trailer and line segment)

and you can just compare it inside

then you can just return Y or N

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

hi michal thans for u r answer.

but what is the code for this i tried so many timed and i link it with message mapping but its not solved and one maore thing is i need to get file name by UDF and i i need to map this filename to target field.

i will be greatful to u r answer.

bye.

regards.

seeta ram.