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: 

Message Code in IDOC

iamhe7806
Participant
0 Kudos

Hi Gurus,

Can you please explain whether Message Code and Message Function can be entered randomly while creating partner profile in IDOC or we can use some specific only ?

I mean to say:-

Suppose I want to create one partner profile with Message Type ORDERS

Now when creating an Outbound Parameters can I enter any name ( say XY or YZ or ABC etc.) in Message Code and Message Function field and put similar words when creating Inbound Parameters of another partner profile to link sender and receiver?

If it is not, then can you please let me know how can I get the list of Message Codes and which one has to be used where?

Thanks in advance

Amit

5 REPLIES 5

jaideepsharma
Active Contributor
0 Kudos

Hi,

Yes, you can have any values in Message code and message function.

Message Type/Message Code/Message Function. These three fields together represent the SAP message type assigned to the EDI transaction being sent to a business partner. The Message Type field is derived from the EDIFACT messages, but a one-to-one equivalence is not guaranteed. The message type is independent of the ANSI X.12 or EDIFACT standards. The Message Code and Message Function fields are not commonly used.

Using the Message Code and Message Function fields, you can create a variation of the same message by assigning different values in these two fields. So you can call different function modules to process the idoc depending upon combination of Message type, message code and message function.

For instance, you can have different function modules to process orders05 Idoc for different sales organization. System will then identify the exact function module from partner profile by combination of message type, message code and message function passed in control record of your idoc.

KR Jaideep,

GauthamV
Active Contributor
0 Kudos

You can get all the details like message code , message function and partner function

from this view.

VEDI_TDP21

0 Kudos

Hi Jaideep,

I didn't know that there is existing transaction that builds up relation with Message Code with other part of IDOC.

Those transaction I came to know are WE41 and WE42. There the relationship between Process Code and Message Type can be defined.

And moreover you can mention any Alphabetic character for message code. Thing is that they seperate the function of mesage type used in same partner profile.

I found that choice of process code is very much message code dependent that we define in WE41 and WE42. And this is the function of Message type and my question...

Thank you all who helped my sharing information

Amit

iamhe7806
Participant
0 Kudos

Thanks to all

Former Member
0 Kudos

This message was moderated.