cancel
Showing results for 
Search instead for 
Did you mean: 

Calling inbound proxy in ECC for each <Shipment>value in the source XML

Former Member
0 Kudos

Hi Experts,

Scenario is File -> PO 7.4 ->  ABAP inbound proxy. I want to call inbound proxy multiple times from PO for each <Shipment>value in the source XML shown below?

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_ShipmentUpdate> 1....1

<Header>1....1

<Shipment>Not Planned</Order>

<ItemID>100</ItemID>

<Shipment>Not Planned</Order>

<ItemID>101</ItemID>

<Shipment>Not Planned</Order>

ItemID>102</ItemID>

<Shipment>Not Planned</Order>

ItemID>103</ItemID>

<Shipment>Not Planned</Order>

ItemID>104</ItemID>

----

---

-----

----

-----

---

----

</Header>

</ns0:MT_ShipmentUpdate>

Customer wants PO to split the above XML file into n number of  calls (as many shipments in the file) to proxy as shown below.

The reason being proxy just wants to be kept simple by taking the item Id and updates the corresponding shipment instead of looping through and writing complex logic in ABAP program. But then PO has to deal with this complexity. This has to be achieved without using BPM if possible. And also since I am in the middle of a java map, I would expect some solution to continue from there instead of re-designing. I can use 2 mappings if needed such as java map and a message map. But not sure if that helps here.

first call

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_ShipmentUpdate>

<Header>   1....1

<Shipment>Not Planned</Order>0...1

<ItemID>100</ItemID>0..1

</Header>

</ns0:MT_ShipmentUpdate>

second call

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_ShipmentUpdate>

<Header>   1....1

<Shipment>Not Planned</Order>0...1

<ItemID>101</ItemID>0..1

</Header>

</ns0:MT_ShipmentUpdate>

third call

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_ShipmentUpdate>

<Header>   1....1

<Shipment>Not Planned</Order>0...1

<ItemID>102</ItemID>0..1

</Header>

</ns0:MT_ShipmentUpdate>

fourth call

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_ShipmentUpdate>

<Header>   1....1

<Shipment>Not Planned</Order>0...1

<ItemID>103</ItemID>0..1

</Header>

</ns0:MT_ShipmentUpdate>

and so on

----

-----

thx

mike

Accepted Solutions (1)

Accepted Solutions (1)

former_member184720
Active Contributor
0 Kudos

You don't need java mapping, Just change the target message type occurrence to 0..unbounded  and map the message node to create for every itemID. (during graphical mapping)

As you'l; be using the soap adapter(on AE), messages get's split into multiple messages.

You can search for multi mapping without BPM. we have log of blogs for reference.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/600b455f-01cd-2b10-0cab-a50e47a8f...

For some reason if you want to with java mapping then refer to below wiki

http://wiki.scn.sap.com/wiki/display/XI/Multi-Mapping+using+Java+Mapping

Former Member
0 Kudos

thx hareesh for the response

Answers (0)