cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Problem

Former Member
0 Kudos

Hi,

i have some problems with the result of the mapping:

Example:

External definition

Day

--date

--time

name

--first name

--second name

IDOC

name01

--fname

--sname

--date01

so i mapped name with name01, fname with first name, sname with second name and date01 with date.

Now the problem:

If the number of position of name is >1 then i get the following result:

name01

fname = mirko

sname = example

date = 20070315

name01

fname = patrick

sname = example2

But I need the date in all positions of name01. How ca I do to realize this?

Thanks for help

best wishes

Alex

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Use this Mapping :

car -


cardata

color -


color

mph -


mph

type -


type

for producer use UseOneAsmany

3 inputs to UseOneAsmany are :

1. producer (context data)

2. color(context root Node)

3. color(contex car)

Thanks,

Maheshwari.

reward points if helpful

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

the three Input types was only an example in reality there ar more than 8 Input typs. And three of them are out of <name>. And in the result i can see the three (out) types only in the first <name01>!

regards

Former Member
0 Kudos

Alex,

Not sure I got you. Can you explain your problem a little more?

You can use the function UseOneAsMany as many times as you need it.

What I meant by 3 inputs is the function useOneAsMany takes 3 inputs. Just use that and you will get it correct.

Regards,

Jai Shanakr

Former Member
0 Kudos

Alex,

can explain a bit more . you have 8 input feilds how amny times these field should be replicated in target side? is this our question

Former Member
0 Kudos

Hi,

I explain the problem with an other example:

<b>a detail of the external definition:</b>

data

---producer

car

--color

--mph

--type

<b>a detail of the IDOC</b>

cardata

--color

--mph

--type

--producer

Mapping:

car -


cardata

color -


color

mph -


mph

type -


type

producer -


producer

-


Now I will send a list with more than one cars, then the result is:

cardata

car = 911

color = yellow

mph= 200

producer = porsche

cardata

car = 964

color = red

mph = 180

But I need the producer in all positions of cardata

I hope this is a better example

regards

Alex

Former Member
0 Kudos

Hi,

what is the occur of data and car and cardata

data --- 1.1

producrer 1.1

car -- 0..unbound

color - 0.1

mph -- 0.1

type --0.1

both structures are ilike above type so

producer -- copyvalue or useoneasmany -- producer

car -- cardata

color - color

mph -- mph

type - type

try and let me know the result.

Regards

Chilla..

Message was edited by:

Chandra Sekhar Chilla

Former Member
0 Kudos

Alex,

use the bleow mapping

producer->UseOneAsMany->producer.other inputs to UseOneAsmany are car,mph

Former Member
0 Kudos

Use the standard function "UseOneAsMany"

It has 3 inputs. First input -- date

second input -- name

third input -- name

Regards,

Jai Shankar