on 05-17-2007 9:06 PM
Hi,
In the Shabarish Vijayakumar's weblog
/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
1. I need code for the following UDFs
ChkSum and AnyError
and
2. how Constant (RDFILE) can be created ?
Thanks,
ss
Message was edited by:
s s
<b>For chkSum - </b>
Create a UDF [Enhanced Functions (Cache = Context)]
int totAmount=0;
for(int j=0;j<a.length;j++)
{
totAmount=totAmount+Integer.parseInt(a[j]);
}
if(totAmount==Integer.parseInt(b[0]))
result.addValue("0");
else
result.addValue("1");
<b>For AnyError - </b>
Create a simple function
if(a.equals("true") && b.equals("0"))
return "0";
else
return "1";
<i>2. how Constant (RDFILE) can be created ?</i>
>>>
in the Filename give the value as RDFILE
else if u r askin how to create a constant in the mapping logic use the constant function from the standard functions available (http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
10 | |
8 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.