Skip to Content
0
May 18, 2005 at 02:39 PM

Conditions during interface determination (urgent)

19 Views

Hi all,

well i am using <b>conditions</b> during <b>Interface Determination</b> and according to the result of the condition a mapping program is triggered.

Now i am using <b>XPath.</b>

In my file i have a field called amount. The total of the amount field is stored in the trailer in a field called total.

Is there anyway that using XPath i can check if the sum of the amount field that r in the file is equal to the value in the total field?

a sample file would be as shown below ...

01xxxxxxxxxxxxxxxxxx -


header

02xxxxxxx10000xxxxxx ---

02xxxxxxx20000xxxxxx | body

02xxxxxxx10000xxxxxx ---

03xxx40000xxxxxxxxxx -


trailer

eg.

the sum of the amount field in the body (100002000010000) should be compared to that

in the trailer (40000) [the values in the amount field

will vary so does the total accordingly 😉 ]

can anybody suggect a solution ?? 😔

Regards,

ShabZ