Skip to Content
avatar image
Former Member

Message mapping challenge in IDOC to EDI scenario

Dear PI message mapping experts,

I'm a newbie in PI and facing a mapping problem using graphical message mapping.

I'm in an IDOC (INVOIC.INVOICE02) to FILE (EDI) scenario.

Here after is the mapping i need to perform :

Source structure IDOC :

<E1EDKA1> (0..99)
   <NAME1> A </NAME1>  (0..1)
   <NAME2> B </NAME2>  (0..1)
   <NAME3> C </NAME3>  (0..1)
   <NAME4> D </NAME4>  (0..1)
</E1EDKA1>

Target structure :

<AccountingCustomerParty>  (1..1)
   <Party> (0..1)
      <PartyName> (0..unbounded)
          <Name>A</Name> (1..1)
      </PartyName>
      <PartyName>
          <Name>B</Name>
      </PartyName>
      <PartyName>
          <Name>C</Name>
      </PartyName>
      <PartyName>
          <Name>D</Name>
      </PartyName> 
   </Party>
</AccountingCustomerParty>

I know i have to play with context and queues with stanard function or UDF but cannot succeed to do it.

Could you please help me ?

Thanks in advance,

Alysee

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Dec 29, 2010 at 02:44 PM

    One approach out of available few ways to implement this:

    NAME1 - Exists - CreateIf - PartyName[0]

    NAME2 - Exists - CreateIf - PartyName[1] (Create deuplicate segment)

    NAME3 - Exists - CreateIf - PartyName[2] (Create deuplicate segment)

    NAME4 - Exists - CreateIf - PartyName[3] (Create deuplicate segment)

    -

    Srikanth Srinivasan

    Add comment
    10|10000 characters needed characters exceeded