Java help for Multiple receivers scenario
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,
Uma Maheswari Soundara Pandian replied
>> 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;
total = total + Integer.parseInt(a<i>);
if(total == Integer.parseInt(b))
Cache : value
Argements : a and b ( output of String equals and output of ChkSum)
if((a == "true") && (b=="0"))
Hope this helps.