cancel
Showing results for 
Search instead for 
Did you mean: 

Multi mapping and correlation

Former Member
0 Kudos

Hi there

i have an File --> PI --> Idocs Scenario,

the File structure is something like this:

1 xxx yyy 9865

1 zzz www 9834

2 sss ttt 12392

2 rrr eee 45323

Basically they're deliveries with some additional info,

I want to group them like this:

Header info : 1

Positions:

xxx yyy 9865

zzz www 9834

Header info : 2

Positions:

sss ttt 12392

rrr eee 45323

To be mapped to SHIPPL Idoc ( External transportation documents)

So basically i'd assume i have to split all those deliveries into individual message on BPM and then use correlation to build up the documents grouping all the deliveries??, can you guys help me on how to build up this process??, what goes outside or inside the BPM and how can i resolve all the mapping i need to do?

Thank you Very Much

Roberto.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Write one small xslt mapping to group records based on the key value that is first character and then you can create the graphical mapping to produce multiple idocs for each group.

I hope that i undestood ur requirement correctly.

Thanks

Inder

Former Member
0 Kudos

Hi there,

so i guess there's no need for BPM right?,

it should go like this:

receive the file

parse it to an xml ( one delivery per row )

group them using a xslt

do a 1:n mapping with split

??

thanks.

Roberto.

Former Member
0 Kudos

Hi Roberto

I agree , it's no necesary to use BPM , use with multimapping you can split the message.

Former Member
0 Kudos

Hi,

I beleive Multimapping will not work without BPM when we have Idoc as a receiver channel.

You can do these steps:

1) create XSLT mapping to group the data based on the key. (1st mapping)

if your input after FCC conversion is (before xslt)

<a1></a1>

<a2></a2>

<b1></b1>

<b2></b2>

Output of xslt should be : (grouping based on some key field or value)

<Group>

<a1></a1>

<a2></a2>

</Group>

<Group>

<b1></b1>

<b2></b2>

</Group>

2) If you look at Idoc the occurence of Idoc field is one. Download the xsd of Idoc and change the occurence to 1 to unbounde. upload xsd as external definition and use it in mapping.

3) now you can create a graphical mapping which will create the Idoc tag for each Group. It will create multiple Idocs in target system

By using above method you can avoid BPM and there is no needd to use Multimapping also.

Thanks

Inder

Former Member
0 Kudos

Hi,

You need to modify the occurrence of IDOC node inside Idoc xsd, then made your mapping logic taking as consideration the following post:

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

In the interface determination You can made possible split the document in simple idoc, for that you should use "enhanced" instead of "standard".

Regards

Ivan

Former Member
0 Kudos

i'm not sure that multimapping is supported for IDocs. Can yu please confirm?

Former Member
0 Kudos

It does not work.

Answers (0)