cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC multi mapping

former_member188791
Participant
0 Kudos

Hi Group,

I am working on File to IDOC scenario, while doing multi mapping I am facing the below issue

Source

-----------

Message

Message1

  multimaster

  Recordset

  field1

field2

field3

field4

field5

Target

--------

Message

Message1

MATMAS01

IDOC

  ...

----

Message2

MATMAS02

IDOC  ...

----

Message3

MATMAS05

IDOC

  ...

----

based on field3 (in source) I am creating IDOCs at target side.

field1 = C --> createif -->MATMAS01

field1 = U --> createif -->MATMAS02

field1 = D --> createif -->MATMAS05

and I mapped Recordset --> IDOC

when I am testing this its going at target side, if I am testing with one record its working fine if I pass multiple records with different field1 values its always creating only one node base first field1 value, can any body suggest

Accepted Solutions (1)

Accepted Solutions (1)

Harish
Active Contributor
0 Kudos

Hi Rajiv,

the issue seems to be in your message mapping. Please check the context in the mapping.

Please provide more details of the map, so we can give you detailed answer.

Regards,

Harish

former_member188791
Participant
0 Kudos

Hi Harish ,

THank you for your message

my Mapping is simple , here i am providing details:

field1 = C --> createif -->MATMAS01

field1 = U --> createif -->MATMAS02

field1 = D --> createif -->MATMAS05

Recordset --> IDOC

fiel1 ,field2,fiel3,field4,field5 are one to one mapping to IDOC fields

let me know if you need any further details.

Former Member
0 Kudos

Hi,

As Harish said, change your Context on your source Field to their highest level(s).

By testing your mapping, check context in your Queue.

Mickael

former_member188791
Participant
0 Kudos

Hi Michael,

I tried with that but still its going wrong

Muniyappan
Active Contributor
0 Kudos

Hi,

can you share your mapping screen shot?

it can give us some idea.

Regards,

Muniyappan.

Former Member
0 Kudos

HI rajiv,

Multi mapping with multiple Idoc receivers is not possible. Multi mapping with single Idoc is possible without using BPM.

Refer http://scn.sap.com/thread/971698

You should use BPM to achieve this functionality.

Regards,

Pranav

Harish
Active Contributor
0 Kudos

Hi Rajiv,

can you provide the screenshot of the mapping?

Regards,

Harish

Harish
Active Contributor
0 Kudos

Hi Rajiv,

you can also achieve the scenario by created different interface mapping for each IDOC (MATMAS01, MATMAS02 etc) and maintain the condition in interface determination.

If you are expecting multiple IDOC of same type (more then one idoc of MATMAS01, 02 etc), you need to do work around.

Regards,

Harish

Answers (1)

Answers (1)

former_member184720
Active Contributor
0 Kudos

To add further -

As per the thread i see that message split is not possible for ABAP based adapters.

So if your PI version is > 7.3 then you can use IDOC_AAE adapter.

If not still I don't think you need a BPM to achieve..

You can create three operation mappings and add your conditions in the interface determination.

You can refer to this blog.. explained with screenshots..

http://scn.sap.com/people/rajasekhar.reddy14/blog/2011/02/24/multi-mapping-without-bpm-for-idoc-scen...

former_member188791
Participant
0 Kudos

Hi All,

Thank you ,its solved now, after changing Context.

former_member188791
Participant
0 Kudos

Hi Group,

Mapping problem is solved , but I am getting the new Error in MONI now,in my scenario , sender file is splitting  to 4 different files. 3 for Idoc adapter and 1 for RFC. Now I'm getting error message " At least two of the sub-messages are for different adapter engine types."

I am not using BPM in this case, followed the below link:

http://scn.sap.com/people/rajasekhar.reddy14/blog/2011/02/24/multi-mapping-without-bpm-for-idoc-scen...

still getting above Error,can any body suggest.

Harish
Active Contributor
0 Kudos

Hi Rajiv,

The blog only give option of file to multiple IDOC. if you need to use multiple receiver adapter.

I would suggest to go for one more mapping for RFC and try to achieve the condition at interface determination level.

Regards,

Harish

former_member188791
Participant
0 Kudos

Cant we achieve this using IDOC_AAE? will this AAE adapter supports multi mapping

Harish
Active Contributor
0 Kudos

your error suggest that you are getting more then one type of receiver adapter, so it is not because if receiver IDOC adapter. so i don't think you will get any difference by configuring to IDOC_AAE.

Regards,

Harish