cancel
Showing results for 
Search instead for 
Did you mean: 

Merging Different structures during Mapping

Former Member
0 Kudos

Hi Gurus,

I've the following scenario. I've got 2 files with 2 different structures

File 1 -> <ID>

<NAME>

File 2 -> <NUM>

<DATE>

I need to perform a mapping to a structure as follows

<NEW STRUCT>

<ID>

<NAME>

<NUM>

<DATE>

Can this be during in the mapping?

Do I need to perform 2 message mappings? i.e, one for File 1 structure and another for File 2 structure?

Hope my query is clear.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can load both the structures in the same mapping and put the third structure in the target.

You can load multiple Message types in single mapping , you dont require to have two mappings.

Regards

Krish

Former Member
0 Kudos

Hi,

You mean to put both structures in the Source?

Not sure how to do that. Pls advise me on the steps.

Thanks!!

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi...

No need to perform 2 message mappings.You can achieve this in one mapping itself.

In message mapping, got to messsages Tab. There you can add 2 source message types and output file in the target message .

Then, you can do normal mapping.

Name--Name

ID---ID

Num--Num

Date--Date.

Your mapping will be executed.

If you are using PI 7.1, then you cant find message tab in the message mapping, instead you can find signature tab. There you can add the source messages.

Regards,

Leela

Former Member
0 Kudos

Hi,

this is what you need:

http://help.sap.com/saphelp_nw04/helpdata/en/0e/56373f7853494fe10000000a114084/frameset.htm

The used Message Mapping BpmPatternCollectMergeMultiIf could be found here:

SAP Basis -> http://sap.com/xi/XI/System/Patterns

Regards

Patrick

Edited by: Patrick Koehnen on Oct 23, 2008 11:43 AM

Former Member
0 Kudos

Hi,

You can go to the messages tab in message mapping and click add icon.

With that, you can add multiple source messages or multiple target messages.

Regards

Krish

udo_martens
Active Contributor
0 Kudos

Hi Yu,

you can do that if you create only ONE datatype for file1 and file2. You mark all fields as optional (occurence 0-1) and use this for a multiline container, where you receive the two different messages and merge them later.

Regards,

Udo

prateek
Active Contributor
0 Kudos

Use N:1 multi-mapping. U will have to use BPM in this case as there are more than 1 source system.

Regards,

Prateek