on 10-26-2009 1:33 PM
Hi,
There are many invoices present in the incoming message.
I have to make a single Bapi call for each invoice.
For this purpose in the BPM I need to map the message to a multiline container, so that in the next block I can loop each line of this multiline container to the required Bapi.
Now, I have this problem in the mapping of the received message into a multiline container. The transformation step in BPM is not giving any result in the output.
For your reference, I am giving belwo the input and result of the mapping (into a multiline container below) I need
1. Input:
<ns1:MT_scan_invoice xmlns:ns1="urn:customers:invoice">
<Invoice>
</Invoice>
:
:
<Invoice>
</Invoice>
</ns1:MT_scan_invoice>
2. Result needed:
<ns1:MT_scan_invoice xmlns:ns1="urn:customers:invoice">
<Invoice>
</Invoice>
</ns1:MT_scan_invoice>
<ns1:MT_scan_invoice xmlns:ns1="urn:customers:invoice">
<Invoice>
</Invoice>
</ns1:MT_scan_invoice>
I have done mapping where, I have mapped the "Invoice" node (which is unbounded) to the target node of "MT_scan_invoice ".
In the 'Messages' tab of message mapping and in the 'Design' tab of interface mapping, I have changed the occurrence of the target message to '0..unbounded'. Also in the BPM the target container is multiline.
The interface and message mapping in stand-alone mode is giving successful outputs. (as desired)
Still the transformation step in Runtime is giving an empty output. Did I miss something in the mapping?
Kindly help. For the last 2 weeks, I am stuck with this issue.
Also kindly suggest alternate methods to generate a multiline container.
Thanks,
John
Hi,
In this case, you are splitting your single message based on some condition to multiple messages but with the same structure as that of source.
Can you pls specify what is that condition?
There is a possibility that mapping is wrong somewhere here.
Also, befor this mapping there are two nodes at target side, 'Messages' and 'Message1'.
Map these nodes with some constant even thought their occurence is 1..1.
Regards,
Supriya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
FYI.
I am using the same message in the source and target side of mapping.
Thanks,
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.