Enterprise Resource Planning Blog Posts by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Mert_Atay
Explorer
3,598

Creating a Sales Order With Reference to an Automatic Purchase Order via IDoc

In trading companies, it is very important that purchasing and sales activities are trackable and traceable. With SAP's standard EDI structure, you can ensure seamless integration between purchasing and sales within the same systems, allowing all reference fields to be filled and monitored without human error.

Moreover, if you have suppliers from whom you regularly purchase or customers to whom you regularly sell, you can integrate with other systems to reduce manual labor and minimize human errors. This, combined with real-time process tracking, can significantly increase your efficiency.

You can follow the steps below to perform this process.

Vendor Code for Purchasing System: 1000000016

Customer Code for Sales System: 1000

1          Configuration

1.1       Purchasing System

1.1.1    Business Partner

The customer number to be used in the relevant sales order in the sales system must be entered in the "Account with Vendor" field so that it is included in the IDOC being sent.

If the "Account with Vendor" field is empty, the purchasing organization field of the created purchase order is sent as the ordering party information in the transmitted IDOC.

1.1.png

1.1.2    VOE1 Maintenance

The item category information selected in the purchase order determines which document type and item type will be used in the sales system.

1.2.png

1.1.3    VOE2 Maintenance

It is determined in which organizational structure the sales order to be created in the sales system will be generated.

1.3.png

1.1.4    Output Determination

A condition record is created for the output type NEU, which is the standard output type in SAP, using transaction code MN04 to automatically trigger EDI when the purchase order is saved.

1.4.1.png

1.4.2.png

1.1.5    Outbound IDOC Configuration

The port assignments for the IDOC to be sent are made.

1.5.png

1.5.2.png

1.2       Sales System

1.2.1    VOE4 Maintenance

It is determined which customer number the ordering party role in the IDOC will correspond to in the sales system.

2.1.png

1.2.2    Customer Material Info Record

The materials received in the IDOC are assigned to the corresponding materials in the sales system using transaction code VD51. Additionally, specific production locations and definitions can be assigned at the material level, as required.

2.2.png

1.2.3    Inbound IDOC Configuration

The program assignment for the incoming IDOC is made in the system.

2.3.1.png

2.3.2.png

2.3.3.png

2          Example

2.1       Creating Purchase Order in ME21N

3.1.png

2.2       ME21N Output

3.2.png

2.3       Display Automatically Created Sales Document

3.3.png

3.3.2.png

2.4       Tracking IDOCs in WE02

3.4.png

 

4 Comments