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: 

'MASTER_IDOC_DISTRIBUTE'

Former Member
0 Kudos

wat is the use of this function module.'MASTER_IDOC_DISTRIBUTE'?

5 REPLIES 5

former_member186099
Contributor
0 Kudos

This is the function modules which creates the communication idocs.

if you prepare the data record and control record and pas it to this FM it will create an idoc for you.

And you can see all the standard outbound function modules using this FM inside it.

Reward points if you find it helpful.

Regards,

Prasanna

Former Member
0 Kudos

hi,

A COMMIT WORK must be dispatched in the calling program, otherwise the IDocs may not be dispatched.

Perform an explicit commit work after the function module call.

Regards,

Shiva Kumar(Reward if helpful).

0 Kudos

In which scenario we have to use this FM or coding ?

Former Member
0 Kudos

Short Text

Application interface to the ALE layer on outbound processing side

Functionality

This function module is the interface from the application to the ALE layer on the outbound side. The application can pass an IDoc, the so-called master IDoc, as an internal table using the parameters MASTER_IDOC_CONTROL and MASTER_IDOC_DATA.

This IDoc is then converted into one or communcation IDocs and stored in the ALE layer. IDocs for which no errors occurred are passed to dispatch control.

In the table parameter COMMUNICATION_IDOC_CONTROL the header records for the communication IDocs created are retturned. You can tell whether processing was successful from the field STATUS.

A COMMIT WORK must be dispatched in the calling program, otherwise the IDocs may not be dispatched.

Further information

For further information about using MASTER_IDOC_DISTRIBUTE refer to the ALE Programming guide in online help.

Parameters

MASTER_IDOC_CONTROL

OBJ_TYPE

CHNUM

COMMUNICATION_IDOC_CONTROL

MASTER_IDOC_DATA

Exceptions

ERROR_IN_IDOC_CONTROL

ERROR_WRITING_IDOC_STATUS

ERROR_IN_IDOC_DATA

SENDING_LOGICAL_SYSTEM_UNKNOWN

cheers,

sharad

Former Member
0 Kudos

hi,

i w'll try to help u out of this ...

see

the message can be sent from application to the IDOC interface along two different path:

1) The indirect path using message control : a series of conditions are checked to find the message. if one of these condition is fulfilled , the message that was found is forwarded to the IDOC interface via the corresponding Message control record. the condition technique also allows the message control to find and send more then one message

2) the direct method or

Master_idoc_distribute .this is a direct method from the application to the interface. here the application generates an idoc which is transferred to the IDOC interface via this function module i.e.

master_idoc_distribute.