Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create entry for two idoc types having same message type in WE20?

Former Member
0 Kudos

Hi Gurus,

My requirement is that, I need to have same message type and two different IDOC type.

Earlier i have assigned different IDOC type to same message type, its working well. But when it comes to setting up partner profile (we20) for that particular mesage type. I am unalble to assign diffrent IDOC type to same messaage type. Nature of error "Such entry already exist for the given message type".

Please tell me how to configure partner profile,for one mesage type and different IDOC types assigned to it.

Thanks

9 REPLIES 9

Former Member
0 Kudos

you need to create custome message type for one idoc type. not possible to maintin one message type to 2 idocs.

0 Kudos

Hi,

Is it inbound profile or outbound profile which you are configuring. Try to give message variant and for one of the entry.

KR Jaideep,

Former Member
0 Kudos

If you think about this logically, you can't have two different iDoc Types for exactly the same Message Type setup; how would the system know which to choose ? You would need either a different Partner Function, or a Message Code or Function.

If you need further clarification, it might help to know the process...

Cheers, Paul.

Former Member
0 Kudos

Cannot be done mate!

One message type can be assigned to only one idoc type.

But one idoc type can be assigned to many message types.

So there is one to many relationship between idoc type and message type.

babu_kilari4
Active Contributor
0 Kudos

Hi Sudipto,

If you really want to achieve the same functionality then do one thing.

1) Copy the existing Basictype to some z type.

2) Assign the message type to this Basic type. Its like 2 Basic types - 2 message types.

I have not tried this but, to be precise do not hamper the message type settings? Why cant you have different message type and different basic type(copied one). That would be the best way without getting into any confusion.

Thanks,

Babu Kilari

Former Member
0 Kudos

Another alternate option is to create a different logical system and add the message type in outbound/inbound parameters

alex_m
Active Contributor
0 Kudos

Its one to one relationship, you have to create a Z message type and use that..

Former Member
0 Kudos

Is it an inbound idoc or an outbound idoc? If it is an inbound idoc you can create message variants in WE20, and assign it to the same message type. In the message variant you would have to define some common charecteristics in the idoc which will determine what message variant gets determined. Once the message variant is defined, you can create different process codes and assign different function modules for processing it differently.

Former Member
0 Kudos

using message variant