on 09-16-2014 2:49 PM
Hi Group,
I have one requirement File to IDOC , I need to create IDOC based on the Custromer name and address , if customer name change and Street field is populated then I need to one IDOC , in the below example I need to create 4 Idocs , one for John , 2 for Mark and 1 for Adam , can you advice how I do mapping.
Customer Name | Street | District |
John | Milton Street | Glos |
John | ||
John | ||
John | ||
Mark | 31 Jameson Street | Northfield |
Mark | ||
Mark | 32 James Street | Northfield |
Adam | 99 Johnson Street | Southfield |
Adam | ||
Adam |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You may use this example to understand how we can make use of graphical mapping to achieve this. You may improve this as well if possible.
Below is the input and output structure and also the mapping for Records and subrecord. Rest of the fields are having one to one mapping.
Note: change all the properties of (if then node) to false
Below code is to be used for replacyEmpty UDF
public void replaceEmpty(String[] a,String[] b,ResultList result,Container container){
//write your code here
String lastValue = null;
for (int i=0; i<a.length;i++)
{
if (!a[i].equalsIgnoreCase(b[0]))
{
lastValue = a[i];
}
else
{
}
}
}
Hi Rajiv,
It looks like you need to create Idocs only when the Street is filled. So you can directly map based on the Street field without having dependency on the customer name.
Street -> remove empty values-> Target Idoc
Regards,
Anand Patil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajiv,
Can you please share the sample file ?
Thanks,
Binod
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.
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 |
---|---|
86 | |
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.