on 02-18-2009 12:50 AM
Hi Experts,
We are facing issues while trying to generate nodes at reciver side even though it does not exist at sender side.
we are using the matmas05 and we want the nodes E1marcm and e1mardm to generated at target structure.
the structure is like this
Matmas05
idoc
E1maram
segment
E1marcm
segment
msgfn
.....other fields
E1mardm (can be many segments)
segment
lgort
..other fields
E1mpgdm
segment
...e1mpgdm fields
the mapping has been done like:
e1marcm -mapwithdefault-e1marcm
constant -segment
werks-mapwithdefault-werks
other fields(one to one mapping)
e1mardm-mapwith default-e1mardm
lgort-mapwithdefault(value 1000)-lgort
other fields -one to one mapping
now the problem we are facing is when e1mardm is not existing in source structure the values from the other node of e1mardm(which exists) are getting overwritten into it.
we want only the lgort to be 1000 and the segment should populate at target side.
like
e1mardm
segment
lgort value 1000
Could you please assist in solving this issue and give your valuable suggestions as how could we handle it.
Thanks and regards,
jyoti
thanks experts
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
U will achieve this using UDF function. Map the below Like.
e1mardm-mapwith default(Value Constant)-e1mardm
lgort (A) ---
e1mardm-mapwith default(Value Exit)u2014(EqualsS) (B)- (UDF1)- lgort
Constant(Value Exit)---
Constant(Value 1000)(C)---
Other one to one mapping fields also you should use one more UDF.
Other one to one fields (A) ---
e1mardm-mapwith default(Value Exit)u2014(EqualsS) (B) - (UDF2)- Target
Constant(Value Exit)---
UDF1:
Argument A,B,C and select queue.
//write your code here
int j = 0;
for(int i=0;i<a.length;i++)
{
if (b[j].equals("true"))
{
result.addValue(c[0]);
i--;
result.addValue(ResultList.CC);
}
else
result.addValue(a<i>);
j++;
}
UDF2:
Argument A,B and select queue.
//write your code here
int j = 0;
for(int i=0;i<a.length;i++)
{
if (b[j].equals("true"))
{
i--;
result.addValue(ResultList.CC);
}
else
result.addValue(a<i>);
j++;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.