04-17-2008 12:42 PM
wat is the use of this function module.'MASTER_IDOC_DISTRIBUTE'?
04-17-2008 12:46 PM
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
04-17-2008 12:54 PM
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).
07-03-2008 1:10 PM
04-17-2008 1:35 PM
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
07-04-2008 12:27 PM
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.