Skip to Content

IDOC : SALESORDER_CREATEFROMDAT202

Hi everyone,

I am trying to execute the IDOC SALESORDER_CREATEFROMDAT202.

I am getting some dificulties.

I tried to fill the segments but I get an error.

The header segment is E1SALESORDER_CREATEFROMDAT2.

a) How do I fill it : it is not a structure like all the rest of the segments(like E1BPSDHD1,...).

After filling all the data, I called the IDOC_INBOUND_SINGLE function.

The sy-subrc is equal to 0.

But when I go to transaction we05 and check the status of the idoc created, there is a red light.

b) How can I know more information about the erorr ?

Thanks in advance for your help.

Regards.

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 24, 2005 at 01:11 PM

    Hi David,

    Why do say "E1SALESORDER_CREATEFROMDAT2" is not a structure ? Check the structure using Txn. SE12->Data Type. It has following fields -

    SALESDOCUMENTIN

    BINARY_RELATIONSHIPTYPE

    INT_NUMBER_ASSIGNMENT

    BEHAVE_WHEN_ERROR

    TESTRUN

    CONVERT

    Double clicking on the status 51 in WE05/WE02 will give you the details of error.

    Cheers,

    Sanjeev

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 24, 2005 at 01:12 PM

    Hi David,

    For your second querry

    Double click the Idoc no. and it will take you to screen where it will show you all the segments of IDoc. Here you can check which segment is giving error.

    Try this.

    Regards

    PRAFUL

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 24, 2005 at 01:26 PM

    Hi,

    Try using the function module IDOC_INPUT_SALESORDER_CREATEFR for the inbound processing. Use we19 for an existing idoc, choose inbound function module and debug. This will help you trace the error.

    regards

    Aveek

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 25, 2005 at 08:53 PM

    As stated, go to WE19 and create a template with your basic type SALESORDER_CREATEFROMDAT202. Then, just double click each segment to enter the needed data.

    You will also need to populate the control rec (EDIDC rec) by double clicking it. Once you have all the data in each segment, you can click on "Standard Inbound" and process the idoc.

    Even if this does not process the first time, after doing this 1x, you will have an idoc number you can use as a copy for re-testing this and the only thing you'll then need to change is whatever value caused your failure.

    Also, you can test via the "Inbound Function Module" option and select in debugging mode or in foreground to get more info about your error.

    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.