Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

idocs

Former Member
0 Likes
662

I want to create a sales order using IDocs.

I am given a file with the following fields that will create idocs..

Field Desc Field Name Value

-


Order Type vbak-auart OR

Sales Orgn vbak-vkorg 1000

Sold-to-party kuagv-kunnr 100181

Delivery Plant RV45A-DWERK 1000

Material RV45A-mabnr alive1

Order Quantity 10

Can you provide me the steps in taking the data from flat file and creating an idoc and create a salesorder thereby.

Thanks,

Hi,

thankQ. But, this is an excercise I was given to try out.

Is there any other way we can do it using idocs?

Thanks,

Srinivas.

4 REPLIES 4
Read only

former_member404244
Active Contributor
0 Likes
629

Hi Srinivas,

In Message control method the extra transaction code that we use is we41 (outbound process code) and we use this in the message control tab in the partner profiles.

The transaction codes that are required for this method are

We81

We30

We31

We82

We21

We20

Bd64

Nace

va01/va02 (sales order) .

we need to enter value in VA01 tcode with following information and then issue the output .It will create an idoc ,if all the above configurations r made.

So u need to have the output types in NACE tcode for triggering of idoc and the medium should be ALE.

Regards,

nagaraj

Read only

Former Member
0 Likes
629

Hi Srinivas,

If you are having only those fields and u r required to create the sales order in SAP using IDocs, then I suggest you to go for LSMW with BAPI method. I presume that, this would be a good method. Place all those fields in the text file and use LSMW. You can use BUS2032 bapi and the method is CREATEFROMDAT2.

Regards,

Adithya

Yash Technologies Pvt. Ltd.

Note: Please dont forget to reward points if the answer is helpful.

Read only

0 Likes
629

Hi,

thankQ. But, this is an excercise I was given to try out.

Is there any other way we can do it using idocs?

Thanks,

Srinivas.

Read only

0 Likes
629

When I tried to create a segment(WE 31) with the fileds of the sales order and trying to save it, I am getting a message 'STDO: Log with ID 2 is already closed' and the segment is not getting created.