cancel
Showing results for 
Search instead for 
Did you mean: 

Message mapping challenge in IDOC to EDI scenario

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

srikanth_srinivasan3
Active Participant
0 Kudos

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