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

Creating Inbound IDoc

Hi All,

I want to know how to create an Inbound IDoc within the same sap system? I want to create it using my own program, no external system.

Message type is wminve and basic type is wmivid01. This is for inventory count purpose.

Will 'idoc_inbound_write_to_db' help? But this is 'Not Released'.

What is the other way? Your help will be highly appreciated.

Thanks,

Sagar

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2008 at 07:43 PM

    Hi,

    You can use the FM "IDOC_INBOUND_SINGLE" for the same.

    For eg:

    CALL FUNCTION 'IDOC_INBOUND_SINGLE'

    EXPORTING

    PI_IDOC_CONTROL_REC_40 = IDOC_HEADER

    IMPORTING

    PE_IDOC_NUMBER = DOCNUM

    TABLES

    PT_IDOC_DATA_RECORDS_40 = IDOC_DATA

    EXCEPTIONS

    IDOC_NOT_SAVED = 1

    OTHERS = 2.

    You first need to populate the IDOC_DATA & IDOC_HEADER

    Thanks,

    ajay

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2008 at 03:33 AM

    Thre is some function module,

    IDOC_INPUT*POST(I do not have SAP access) u try in se37. u may find it.

    Happy coding

    //Kiran

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2008 at 04:06 AM

    hi,

    there is function module IDOC_INPUT_<MSG TYPE>

    you can use it.

    thanks,

    sachin.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2008 at 05:38 AM

    If your objective is to create dummy Idocs and test in dev system, then go for Tcode WE19.

    Regards

    Meenakshi

    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.