cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in multimapping logic

Former Member
0 Kudos

Hi,

  I have a scenario which uses N:1 multi mapping (ref attached docu), i.e. source message has four different Idoc type mapped to corresponding same Idoc type.

Query : My input payload has the structure as below i.e. for shipment I have got  two Idoc . First Idoc has the msg type as SHPMNT and second one with msg type as ZST_SHPMNT(Pls ref below) .

Here is the mapping objects , where I have 5 different  MM and IM, but here the SHPMNT Idoc is used in two MM because of two different message type (SHPMNT and ZST_SHPMNT).

MM_I1001_ZST_SHPMNT05_WMQ_TO_SAP:

When this mapping execute I would like to check the Idoc which has msg type as ‘ZST_SHPMNT’ and need to populate that idoc to the target msg.

MM_I1001_SHPMNT05_WMQ_TO_SAP:

When this mapping execute I would like to check the Idoc which has msg type as ‘SHPMNT’ and need to populate that idoc to the target msg

   can someone help me to get a better logic to validate the source xml and map to single target msg.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

can some one help me on this ?

the inbound payload has two Idoc value for two different message type within one Idoc segment.

now how to send one Idoc based on the msg type value to the target msg structure?

baskar_gopalakrishnan2
Active Contributor
0 Kudos

N:1 mapping cannot be achieved without using ccBPM. Plus

>now how to send one Idoc based on the msg type value to the target msg structure?

You can use  enhanced interface determination and check this blog

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90dcc6f4-0829-2d10-b0b2-c892473f1...

Former Member
0 Kudos

Thanks Baskar,

  But I'm in PI 7.0 can I implement the same here? or any better option?

Former Member
0 Kudos

Hi,

  I'll put my query in simple, This is an inbound scenario.

In the payload the Idoc segment <ZSTE_SHPMNT05_01> has two Idoc node (pls ref above sceenshot) based on msg type value within the Idoc node, either one of the Idoc should be send to the target msg.(source is 0 - unbounded and target is 0 - 1 occurance)

can we use any better node function for this approach?

former_member184789
Active Contributor
0 Kudos

Hi,

I would also suggest you to use BPM for this. See how two source messages have been merged into one in the below tutorial:

http://saptechnical.com/Tutorials/XI/BPM/Fork1.htm

As you have four inputs, you will have four receive steps within fork in the BPM, with correlation defined amongst them, then transformation step containing your operation mapping & then send step to send the single message to the receiver.

If you want to go for NW BPM, kindly go through below pattern:

http://scn.sap.com/community/process-orchestration/blog/2012/10/11/enterprise-patterns-in-process-or...

I guess there is only one proper tutorial for NW BPM, which is for displaying name & age..This one shows all the steps..Here is the link

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/307336b8-098c-2d10-be9c-d41ae345f0ff&override...

Former Member
0 Kudos

Thanks ,

But here I'm not using any BPM,

nabendu_sen
Active Contributor
0 Kudos

Hi,

I am afraid, but without BPM I dont think you can achieve this requirement.

former_member184789
Active Contributor
0 Kudos

Hi,

N:1 transformation could be done only through BPM....See the below thread also:

http://scn.sap.com/thread/2007337

nabendu_sen
Active Contributor
0 Kudos

Hi,

This is merge and you can achieve only through BPM, as per my knowledge.