Application Development and Automation 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: 
Read only

what is Message Function?

Former Member
0 Likes
4,018

Hi,

Is there any concept like Message Function related to IDOC's, ALE scenarios..

Please do not get confused with Message type

thanks

Dan

2 REPLIES 2
Read only

Former Member
0 Likes
2,104

Dan,

As far as i know message function and message codes can be used to assign uniqueness for a partner profile when several idoc types have same message type.

Read only

Former Member
0 Likes
2,104

Hi Dan,

The message function and message code acts as a key combination to distinguish the IDOCs.

In WE20 (partner profile), you can same msg type several times by changing the msgcode and msgfunction.

Below is the tabular form:

Partn. fun msg type msg code msg function

LS ORDERS ZMD ZMF

LS ORDERS ZMD ZML

LS ORDERS ZMD ZMK

LS ORDERS ZMD ZMR

LS ORDERS ZMD ZMM

LS ORDERS ZMD ZMO

LS ORDERS ZMD ZMP

So, you can maitain several partner profiles just by chaning msg. function.

Also this is very useful in case of Inbound IDOC, where you can have several vendores of the same msg.type, then you can easily distinguish by this method.

While reading the EDIDD of IDOC, you have to write if condition as below :

If idoc_control-msgcod = 'ZMD' and idoc_control-msgfct = 'ZMK'. Then -


statement----


endif.

I hopw this will clear your ideas

Please reward if useful.

Regards,

Ramesh