cancel
Showing results for 
Search instead for 
Did you mean: 

PI mapping for extrinsic Ariba fields

Former Member
0 Kudos

I have a scenario where I'm converting a cXML source file into iDOC target file. Mapping is as shown above.

Input cXML:

          <ShipNoticeItem>

                     <Extrinsic name="harmonisedSystemNumber">12345678</Extrinsic>

                     <Extrinsic name="miscAmt1">50</Extrinsic>

                     <Extrinsic name="pack">20</Extrinsic>

                     <Extrinsic name="miscCharge2">12X10X2</Extrinsic>

                     <Extrinsic name="Misc">KG</Extrinsic>

                  </ShipNoticeItem>

.......................................

                     <Extrinsic name="harmonisedSystemNumber">234567</Extrinsic>

                     <Extrinsic name="miscAmt1">40</Extrinsic>

                     <Extrinsic name="pack">30</Extrinsic>

                     <Extrinsic name="miscCharge2">25X5X50</Extrinsic>

                     <Extrinsic name="Misc">KG</Extrinsic>

         </ShipNoticeItem>

.....................................................

                     <Extrinsic name="harmonisedSystemNumber">456789</Extrinsic>

                     <Extrinsic name="miscAmt1">60</Extrinsic>

                     <Extrinsic name="pack">80</Extrinsic>

                     <Extrinsic name="miscCharge2">50X20X10</Extrinsic>

                     <Extrinsic name="Misc">KG</Extrinsic>

                  </ShipNoticeItem>

.........................................................

Current output:

E1EDP09

     ZE1EDP09

          BRGEW=50

...........

E1EDP09

     ZE1EDP09

          BRGEW DOES NOT EXIST

..............

E1EDP09

     ZE1EDP09

          BRGEW DOES NOT EXIT

.............................................................................

Expected output:

E1EDP09

     ZE1EDP09

          BRGEW=50

........................

E1EDP09

     ZE1EDP09

          BRGEW=40

.............

E1EDP09

     ZE1EDP09

          BRGEW=30

Can anyone tell me what I'm doing wrong?

PS: This is the Ariba ASN interface. I'm using PI 7.1

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

BTW, when I debug, this is how my display queue looks:

Harish
Active Contributor
0 Kudos

Hi Archana,

Please remove the remove context before the IF without else and put before the target field.

example

Source == "Contastat" -->

                                             If Without else --> remove context ---> Split by value --> Target

Input     ---->

Hope this help.

regards,

Harish

former_member184720
Active Contributor
0 Kudos

Hi Archana - Did you check the Keep suppress values option? ( right click on if without else and properties) . if so disable it n try

Harish
Active Contributor
0 Kudos

Hi Archana,

change the logic as below

Source (one context above) == "Contastat" -->

                                                              If Without else --> remove context ---> Split by value --> Target

                                               Input     ---->

regards,

Harish

Former Member
0 Kudos

Thank you, Harish!

Here is the final mapping for those who come across this thread later. Don't forget to change the context of the source (right click on @name and chose context and one level above) as Harish mentioned!

Answers (0)