on 04-26-2006 8:17 PM
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)
/people/shabarish.vijayakumar/blog/2005/08/03/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,
venu
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
<b>ChkSum</b>
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]))
result.addValue("0");
else
result.addValue("1");
<b>AnyError</b>
Cache : value
Argements : a and b ( output of String equals and output of ChkSum)
if((a == "true") && (b=="0"))
return "0";
else
return "1";
Hope this helps.
Regards,
Uma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Uma ,
Thank u very much.
One more clarification.
I'm facing the problem in configuring receiver determination-> configured receivers.
In configured receiver area I created two services
1) sender business system.
2) receiver business system.
Problem is when i 'm trying condition it is coming with 'AND' or 'OR' options.
what I whant is sender service should attach with one condition ( is if set =1)
receiver service should attach with 0 if ( set =0)
If u could give ur mail-id i'll send the screen shot.
Regards,
venu.
When I'm trying to configure Receiver determination
Hi Venu,
>> Problem is when i 'm trying condition it is coming with 'AND' or 'OR' options.
I guess you got confused with the buttons under configured receivers.
For the first configured receiver (Sender business system), set the condition as set=1.
Then click on the "Add new condition" [] button under Configured Receivers and set the receiver as (Receiver business system) and set the condition as set=0.
Hope this helps.
Get back to this email id for any more clarifications.
umamaheswari.soundarapandian@cognizant.com
Regards,
Uma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.