cancel
Showing results for 
Search instead for 
Did you mean: 

PI Message Mapping two IDoc source into one target message

0 Kudos

Hi,

I need to know how to create a graphical mapping my requirements is to get the main barcode from WP_PLU as xml node and under this node is the alternate barcode from IDoc WP_EAN, problem is alternate barcode occurrence is 0:N meaning one main barcode could have zero or multiple alternate barcode. First I thought I could use RFC to extract alternate barcode using table MEAN but since the occurrence is undefined there is no way I could extract MEAN-EAN11/alternate barcode into PI target message xml from ECC zRFC.

Here is a sample of expected xml file:

<product>

    <material_code>HEA26</material_code>

    <main_barcode>9898989898989</main_barcode>   

    <alternate_barcode>

        <barcode>8343872129</barcode>

        <barcode>9231882312</barcode>

        <barcode>723456429</barcode>   

    </alternate_barcode>

</product>

<product>

    <material_code>AUD01</material_code>

    <main_barcode>3732989720989</main_barcode>   

    <alternate_barcode>

        <barcode>1243845639</barcode>

        <barcode>0001878913</barcode>

        <barcode>654287429</barcode>   

    </alternate_barcode>

</product>

<product>

    <material_code>TEA53</material_code>

    <main_barcode>7820989712187</main_barcode>   

    <alternate_barcode>

</product>


Thanks,
Tope

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186851
Active Contributor
0 Kudos

There are multiple main barcodes.

Which is the correct one or what is the criteria to select it?

0 Kudos

Hi Raghu,

In ECC Tcode WPMA, when the user tick GTIN check box and input the article, all main barcode and its alternate barcode will be extracted to PI.
Each main barcodes has zero alternate to multiple alternate barcodes,

0 Kudos

Hi Raghu,

I've created a RFC function module in ECC se37, and already imported it on PI.

I've been using it for conversion of some of my fields in PI Message Mapping, would it also be possible to use it to fetch table from ECC ZRFC to PI Message Mapping? since I can get Export field values from zrfc to PI Message mapping.

Thanks,

Tope

former_member186851
Active Contributor
0 Kudos

Yes Tope  ,It is possible, You can use RFC lookup in the mapping.

0 Kudos

Hi Raghu,

Can you give me an example of graphical mapping on how to fetch SAP ECC se37 ZRFC table value into SAP PI Message Mapping.

Thanks,
Tope

former_member186851
Active Contributor
0 Kudos

Hello Tope,

Check the below link and see if it helps