Skip to Content
0
Former Member
May 20, 2010 at 12:28 PM

Mapping - IDOC Segements to XML records

24 Views

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?