on 11-18-2010 8:58 PM
Hi
I got a scenario where in i have to have multiple occurances of Line item segment based on LFIMG(Actual quantity delivered).
So if we have LFIMG as 10 the line item segment should occur 10 times in the target. Can we use the existing functions in the graphical mapping to achieve this or should we right a UDF.
Hi,
U can do it with graphical mapping only no need to use UDF.
map the LFIMG to root node of item segement (if require use spitbyvalue or remove contex fuction) it will repeat itself..I am not sure about the relation ship of LFIMG with ur IDOC segment but it will work along with node function,
chirag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kalyan,
As per my knowledge, its not possible or would be very critical to achieve. It is better to use UDF. Please find the code:
Input String <var1>. Use All Values of a Context.
*****************************************
int counter = Integer.parseInt(var1[0]);
for (int i=0;i<counter;i++)
{
result.addValue("");
}
*******************************************
Thanks,
Nabendu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks.
Also i would like to change the structure by changing the occurance of that Line item segment, the problem is it is an EDI XSD i am not able to change the occurance by going into the edit mode for that XSD in the external definitions. So what are my options. I am closing the current post and have opened a new post for this one.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.