cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping problem n...1 node

Former Member
0 Kudos

Dear experts,

I have a mapping problem with n..1 node mapping.

Source structure:

HEADERRECORD

- DETAIL RECORD (0..n)

-- SUBDETAIL (0..n)

--- VALUE (1..1) example content: "a"'

-- SUBDETAIL

--- VALUE (1..1) example content: "b"

-- SUBDETAIL3

--- VALUE (1..1) example content: "c"

- DETAIL RECORD

-- SUBDETAIL

--- VALUE content: "d'

etc

Target structure:

HEADERRECORD

- DETAILRECORD

-- VALUE (0..N)

Now..I need to map the VALUE from my sourcestructure to VALUE from my targetstructure. In fact I need to "skip" the SUBDETAIL node. So my targetstructure should look like this:

HEADERRECORD

- DETAILRECORD1

-- VALUE "a'"

-- VALUE "b"

-- VALUE "c"

- DETAILRECORD2

-- VALUE "e"

Hope anyone can help.

Thanks in advance

William

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Map value --value.

Source field right select and change the context to parent node(DETAIL RECORD).

Regards,

Prakasu.M

Former Member
0 Kudos

Thanks guys, that did the trick!

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

DETAIL RECORD(source) -


DETAILRECORD(target)

VALUE(changes its context to DETAIL RECORD) -


VALUE

Thanks

Amit

Former Member
0 Kudos

hi

use node function remove context to get this desired result.

to learn how to use node function remove context .. plz search saptechnical site

..sandeep