cancel
Showing results for 
Search instead for 
Did you mean: 

Help for on mapping - Std function or UDF?

Former Member
0 Kudos

Hi All,

I am working on DELVRY03 Idoc (outbound) n doing mapping betweeb Idoc and legacy structure. In delivery line item we have lineitem quantity field E1EDL24-LFIMG. Let say if we have 3 line items with LFIMG values 5,10,15...we need add up all these and send to target total quantity field. Is there any std function or sample code for writign UDF???

Thx

Navin

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

use sum function (from standard functions)

but before using it use removecontext function (from node functions)

as it sums all values from one context only

so if you remove it will work as you need

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

Thanks Michal ...Awarded points...

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

thanks, I guess I was a little bit two slow as I when I clicked <b>post</b>

you've already figured it out

Regards,

michal

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Got it usign SUM std function by changing context.

Thx

Navin