on 04-14-2015 11:10 PM
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
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.