on 06-08-2015 12:44 PM
Dear All experts,
I need your help on solving below issue in graphical mapping.
Below is the Source Structure
Target Structure
Assort and PackItem can repeat multiple times as mentioned in the occurrence.
At a particular instance If AssortNo is equal to Number in PackItem and at the same time Reference type is equal to "UserD4" and RefValue of that node is equal to Size;
(IF Assort - AssortNo == PackItem-Numer AND reference-RefValue == Size where Reference-type = "UserD4")
then Create EDL4.
map Number with EDL4-VEBLN.
Thanking you all in advance...
Hi Fernando,
You can use CREATEIF node function to create the node based on your condition.
For the field under the node, you can just map with the source required field.
Then, if the condition satisfies, the node will get created and the field will get populated and passed to the Receiver in the message as needed.
Regards
Vishnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Fernando,
Use AND BOOLEAN function, the input arguments to AND function are reference-RefValue == Size(Use equals string function for this) & Reference-type = "UserD4"(Use equals string function for this)
Use Another AND function, the arguments for this are Assort - AssortNo == PackItem-Numer(Use equals string function for this) and the output of the above AND function.
Pass the output of this AND function to the CreateIf node function and the output of this to the target Node EDL4.
Regards
Vishnu
Try something like this..
for(int i=0;i<assortno.length;i++)
{
for(int j=0;j<Number.length;j++)
{
if(assortno[i].equals(Number[j]))
{
for(int k=0;k<rtype.length;k++)
{
if(rtype[k].equals(size[j]) && refvalue[k].equals("UserD4"))
{
result.addValue(Number[j]);
}
}
}
}
}
}
P.S. I don't have a system to test/to check for syntax. So make changes if there are any.
It's not a good practice to have too many for loops, so if you always have only one reference with refvalue"UserD4" then use "if without else" function and then pass it to UDF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try using create if node function after you put all the conditions, then it should work.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.