Skip to Content
author's profile photo Former Member
Former Member

IDOC ?

Hi, Expert:

I have a assignement on Idoc. I finished all configuration. and wrote a customer program ZGenerate_IDoc. within this program I call MASTER_IDOC_DISTRIBUTE function module.

I just want to know. after calling this function module.

IDoc Data automatic sends out. or I need more process.

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2006 at 04:42 PM

    After calling the FM MASTER_IDOC_DISTRIBUTE, commit the work. Read the IDoc number(Docnum). And check the status of IDOC in WE02. If it is 03 it is sucess, else check the control record which u r passing to the FM.

    Regards,

    Prakash.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2006 at 04:42 PM

    Hi,

    Check the FM documentation..

    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.

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Yunfa,

      The sending of IDOCs depends on the way your configuration. If you say 'process idocs immediately' then it will go to the partner. If you select 'collect idocs' then you have to run the application RSEOUT00. This application will collect all the IDOCs which are ready to process and send to the client.

      Once it is processed, you can check the IDOCs status in WE02 for that particular message type.

      shylesh

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2006 at 04:51 PM

    Hi,

    I believe there must be some external tool that will pick up the IDOCs created from SAP and will send them to the the corresponding partner..

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2006 at 05:21 PM

    Hi Yunfa,

    After calling the FM, check the sy-subrc..if its '0', then use COMMIT WORK.

    This program will act like as a Selection program to create an IDOC automatically(Hope the settings are already done in this case).

    Thanks

    Eswar

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.