Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Java help for Multiple receivers scenario

Hi All,

I'm working on SAP XI.30 SP15.

I'm working on the following scenario of Vijay kumar regarding Xpath to show the path(Multiple receivers)


If any one done this scenario earlier , could u pls send the logic for AnyError and ChkSum user defind functions.

one more clarification expecting is why he changed the context of Amount filed.

I'm going to work on similar scenario, if anyone helps would be great.

Thanks and regards,


Former Member
Former Member replied

Hi Venu,

>> why he changed the context of Amount filed

Amount is a sub element of DT_RECORDS. The occurrence of DT_RECORDS is <b>1..unbounded</b>. So, to check all the DT_RECORDS amount field, the context of Amount is changed to root node.

My Logic for AnyError and ChkSum are


Cache : Context

Arguments : a and b ( Amount and Sum )

int total = 0;

for(int i=0;i<a.length;i++)


total = total + Integer.parseInt(a<i>);


if(total == Integer.parseInt(b[0]))





Cache : value

Argements : a and b ( output of String equals and output of ChkSum)

if((a == "true") && (b=="0"))

return "0";


return "1";

Hope this helps.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question