cancel
Showing results for 
Search instead for 
Did you mean: 

Reg:Mapping

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos
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

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks to abhishek,vijay

Shabarish_Nair
Active Contributor
0 Kudos

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.