cancel
Showing results for 
Search instead for 
Did you mean: 

Multiline container mapping

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

FYI.

I am using the same message in the source and target side of mapping.

Thanks,

John

Shabarish_Nair
Active Contributor
0 Kudos

can you try as specified?

/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

Former Member
0 Kudos

Hi,

In my case I need to use a BPM.

Also in the target side I do not have message1 and message2 as specified in the blog.

Only one 'Message1' with many message types in it.

Kindly analyze what I have done and see whether I did something wrong.

Thanks,

John