cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC : SALESORDER_CREATEFROMDAT202

david_fryda2
Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

david_fryda2
Participant
0 Kudos

Thanks to all of you.

It works.

I am new at ABAP programming.

I thought that E1SALESORDER_CREATEFROMDAT2 was a structure but it is a data type.

Thanks again.

Former Member
0 Kudos

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

Former Member
0 Kudos

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