cancel
Showing results for 
Search instead for 
Did you mean: 

mapping problem - copyValue()

Former Member
0 Kudos

Hi,

I have an source IDoc-XML with following structure.

E1LFA1A (node) 1-1

--Z1ADPRZ(subnode) 0-unbounded

-


SEQN(element in subnode) 0-1

E1LFM1M (node) (0-unbounded)

--EKORG 0-1

Example of Source IDoc

======================

E1LFA1A

--Z1ADPRZ

-


SEQN=01

--Z1ADPRZ

-


SEQN=02

E1LFM1M

--EKORG=2000

E1LFM1M

--EKORG=2005

E1LFM1M

--EKORG=2010

==========================================

Target xml file should be

<DATAAREA>

---ORG=2000

---<CONTACT>

-


SEQN=01

---<CONTACT>

-


SEQN=02

<DATAAREA>

---ORG=2005

---<CONTACT>

-


SEQN=01

---<CONTACT>

-


SEQN=02

<DATAAREA>

---ORG=2010

---<CONTACT>

-


SEQN=01

---<CONTACT>

-


SEQN=02

How do i resolve this issue.

Kindly Help.

Thanks,

Gowri

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Gowri,

If u had mapped Z1ADPRZ-SEQN TO <CONTACT>-SEQN thru copy value

try concating Z1ADPRZ with Z1ADPRZ-SEQN and map to the target element

Regards,

Arvind

Former Member
0 Kudos

Use the NODE Function "useOneAsMany ". Refer the blog 2792 and the 7th item.

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

also refer

/people/stefan.grube/blog/2005/12/29/new-functions-in-the-graphical-mapping-tool-xi-30-sp13

/people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i

Former Member
0 Kudos

Jenny,

Could you please explain how i use the function useOneasmany?

I read the blog but could not understand the logic

Thanks,

gowri

former_member206604
Active Contributor
0 Kudos