on 11-12-2007 10:26 AM
Hi,
How to select only one value from one context.
this is my source structure.
S_SSG18
|
S_DTM
-
D_2005
D_2006
D_2007
Here S_DTM repeats so many times.. But I need to send data"D" when D_2005 is 159 else "L".
Here my problem is S_DTM repeats 2 times. 1st time it will "L" and 2nd time it is "D". But I need to send only "D" value.
regards,
Ansar.
Do you want that S_DTM should come only once?? Can you plz explain it? What is D & L.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The result of "Display Queue" of target node..
-
L
-
L
-
L
-
L
-
L
D
-
L
D
-
L
D
-
Here some S_DTM cacme only once.. later it was 3- times repeated twice. Now I need to send only when ever it came at least one time "D" i need to send that node.
Expected Target Node to be filled like this...
-
L
-
L
-
L
-
L
-
D
-
D
-
D
-
regards
Ansar.
Hi chirag,
FYI...
-
int ct = Integer.parseInt(b[0]);
if ( ct > 1 )
{
for(int i = 0 ; i < a.length ; i++)
{
if ( a<i>.equals("159") )
result.addValue(a<i>);
}
}
else
{
for(int i = 0 ; i < a.length ; i++)
{
result.addValue(a<i>);
}
}
This function returns only one value from each context which is condition true...
Here a- S_DTM and b - Count, Returns only one value for each context. (The problem is returns 2 values in one context one is "L" and"D".; But requirement is get at leat one value from each context i.e "D",).
After this UDF there is check for "159", then one condition for "D" or "L", then result node.
And it is working fine...
regards
Ansar,
hi ansar,
This can be achieved by using "creatif" node function.
suppose if S_DTM == L then create required node
Check this links for more help on createif node function
sap.help
http://help.sap.com/saphelp_nw70/helpdata/en/d9/3033f96c79674f90e3ab8d101a595b/frameset.htm
blogs
/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
/people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i
regards
Ramesh P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.