cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping - IDOC Segements to XML records

Former Member
0 Kudos

Hi, I have a mapping challenge (at least I don't see a solution right now) and you can help me out here:

I Have the IDOC HRMD_A07 (HR Master Data ALE replication)

The abstracted structure is something like this


<EPLOGI>
  <E1P1TYP>
      <IT0001>
            <PERNR>
            <BEGDA>
            <ENDDA>
               ....
           </IT0001>
      <IT0002>
            <PERNR>
            <BEGDA>
            <ENDDA>
             .....
      </IT002>
     <IT1000> </IT1000>
</EPLOGI>
....
<EPLOGI>
   ....
</EPLOGI>
 <E1P1TYP>

The Target Mapping is like


<DOC>
<Record>
    <PERNR>
    <BEGDA>
    <ENDDA>
</Record>
</DOCc>

So, the challenge is :

How to map Infotype by Infotype to each one in its own record and add a rfc lookup, if this personal number is in a specific table and only if the number is in the table, the record is created.

The problem I have so far is, that you can address a target field only once in mapping. You cannot do something like:

<IF 1> --> <PERNR>

<IF 2> --> <PERNR> - Graphical Mapping won't let you do that.

Any sugestions? Any hints for UDF?

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

> The problem I have so far is, that you can address a target field only once in mapping.

Rightclick on target node, choose "duplicate subtree" and you will see, that it is possible to address it more than once

holger_stumm2
Active Contributor
0 Kudos

Once every now an then , there is a quick and perfect answer - and then you feel somewhat stupid yourself

Perfect, thanks!

holger

Answers (0)