cancel
Showing results for 
Search instead for 
Did you mean: 

Context Change

Former Member
0 Kudos

Hi Experts,

I am new to SAP PI, can any one help me in the below Mapping.

mt_Source mt_Target

records records

Name CustomerName

CreditCard CardCount

CreditCardName CardTotalPayement

Payement Summary

TotalCustomer

TotalCard

TotalPayement

In the above example when mapping TotalPayement of mt_Target with Payement of mt_Source by using SUM function, Why do we need to change the context to mt_Source why not to records.

Actually it's an Blog from /people/sunil.ojha5/blog/2008/01/16/summarization-mapping-pattern-in-pi

Please any one clarify it for me please.

Thanks in Advance,

Rachel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Yes you are right. But in this particular case both will generate same output.

Regards

Raj

Former Member
0 Kudos

Thanks for answering Raj.

I changed context of Payement to records and tested it. In the out put of TotalPayement I am getting the first entry of Payement. It's not giving the SUM of payement.

Rachel

Former Member
0 Kudos

Sorry I missed....

This is because of the reason the summary node is for total summary of all records and TotalPayement field is for total payments of all the Payment made by all the records.

Former Member
0 Kudos

Excellent, Thank you so much.

Rachel.

Answers (0)