on 06-17-2009 5:38 AM
Hi XI's,
I am doing File to IDOC Scenario while mapping i need to map two fields Qualf and orid from Target with some constants like
2=Qualf
GR4=0orid
3=Qualf
GR5=orid
4=Qualf
GR6=orid
5=Qualf
GR7=orid
for this i have done by duplicating concept is there any other concept
can anyone please give me solution
Thanks
KEP Sml
for this i have done by duplicating concept is there any other concept
Duplicating the easiest way to do this....only if you know the number of times the target is going to repeat...
When you are not sure of the repeatition:
Map the parent-node containing the the target feilds to some field on the source so that you get the number of occurences as required.
Then you can use the Index function to count the occurence of the source node and accordinly generate the value 2,3 ,4 etc (also you need to append GRA etc you want to have before the number).....
The second approach is more reliable as it will be a permanent solution and no need to worry of how many times the target repeats...
To check how the Index function will help you you can take help from my replies in this thread:
Also see the WIKI attachments which I have mentioned in the thread.
Regards,
Abhishek.
Edited by: abhishek salvi on Jun 17, 2009 10:27 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks to abhishek,vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
dont complicate things you already have implemented the ideal solution. Duplication is the right way to go for such a situation. Only thing you need to check are the below;
1. The field or node being duplicated should be unbounded in occurrence
2. In case the maximum occurrence is 1, then make sure an ideal condition is provided so that at one point only one of the duplicated node will be created in the output.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.