Introduction
In today’s business environment, many companies exchange purchase orders and other business documents electronically rather than relying on manual communication. When customers and suppliers use different systems, transferring order information accurately and on time becomes important. This is where Electronic Data Interchange (EDI) plays a major role.
In SAP Sales and Distribution (SD), EDI helps automate the process of receiving customer purchase orders and creating sales orders without manually entering the order details. In this blog, I will share a business scenario I worked on, explain how the process flows from a customer’s purchase requisition to sales order creation in SAP, and highlight some of the technical components and common errors involved. By the end, you will have a clearer understanding of how EDI supports day-to-day sales operations.
1. What is EDI?
EDI stands for Electronic Data Interchange. It is a method of exchanging business documents between two companies in a standard electronic format.
For example, when a customer sends a purchase order to a supplier, the order details can be transferred electronically to the supplier’s SAP system instead of being entered manually by the sales team.
This helps reduce manual effort, avoid data-entry errors, and speed up order processing.
2. A Business Scenario – From Customer PR to SAP Sales Order
I had an opportunity to work on an EDI-based sales order integration where both the customer and our company were using SAP. What made this process interesting was that the sales order creation was not the first step. There was a business approval process before the actual purchase order was sent to our SAP system.
Let’s understand the process with a simple example.
Imagine a customer wants to purchase a chemical product from our company.
Step 1: Customer creates a Purchase Requisition (PR)
The customer first creates a Purchase Requisition in their SAP system and sends it to the SNC (Supplier Network Collaboration) portal. The PR contains details such as the required product, quantity, and delivery requirements.
Step 2: PR review and approval
Our company receives the PR through the SNC portal. The relevant business team reviews the request and approves it. Once approved, a response is sent back to the customer’s system.
Step 3: Customer creates a Purchase Order (PO)
After receiving the approval response, the customer creates the actual Purchase Order in their SAP system. This PO contains the agreed product and order details.
Step 4: PO is transferred through EDI
Instead of manually entering the customer’s PO into our SAP system, the order information is exchanged electronically through EDI. The middleware or integration layer handles communication and message mapping before transferring the information to the receiving SAP system.
Step 5: SAP receives the inbound IDoc
The incoming PO information reaches our SAP system as an inbound IDoc. SAP processes the IDoc and performs the necessary validations, such as checking customer details, material numbers, quantities, and other relevant order information.
Step 6: Sales Order is created automatically
If all the required validations are successful, SAP automatically creates a sales order. The sales team does not need to enter the customer’s PO details manually. This makes the order creation process faster and reduces the possibility of manual errors.
3. Important SAP Technical Components
A few SAP technical components are important in this integration:
| Component | Purpose |
| IDoc | Intermediate Document used to exchange business data between SAP and external systems. |
| Message Type | ORDERS identifies the type of business message being exchanged. |
| Basic Type | ORDERS05 is commonly used for inbound purchase order processing. |
| Partner Profile | WE20 defines communication settings for the business partner. |
| IDoc Monitoring | WE02 / WE05 are used to monitor IDoc status and errors. |
| Reprocessing | BD87 is used to reprocess eligible IDocs after correcting errors. |
4. What Happens When an Error Occurs?
One important point I noticed while working with this type of integration is that successful EDI transmission does not always mean successful sales order creation.
For example, the customer may send an incorrect material number, or the required customer-material mapping may be missing in the supplier’s SAP system. In such cases, the inbound IDoc may fail during processing, and the sales order will not be created.
When this happens, the support team needs to investigate the issue rather than assuming that the order has been successfully received.
The usual checks include:
– Checking the inbound IDoc status and error details in WE02 or WE05.
– Identifying whether the issue is related to master data, mapping, or order information.
– Correcting the underlying issue with the relevant business or technical team.
– Reprocessing the IDoc using BD87, where appropriate.
This is why IDoc monitoring is an important part of supporting EDI integrations.
5. Conclusion
EDI is more than just transferring a purchase order from one system to another. It connects the business processes of customers and suppliers and helps automate activities that would otherwise require manual effort.
Through this scenario, we looked at how a customer’s purchase requisition is submitted through an SNC portal, reviewed and approved by the supplier, followed by the creation of a purchase order and its transfer to the supplier’s SAP system through EDI. We also explored the role of inbound IDocs, important SAP transactions, and how errors can be identified and handled.
One key takeaway is that monitoring the inbound IDoc is just as important as setting up the integration. An order is not successfully created simply because the EDI message was transmitted; it must also be processed successfully in SAP.
I hope sharing this business scenario helps beginners and SAP SD consultants understand how EDI-based sales order creation works in a real business environment.
Read More Technology Blog Posts by Members articles
#abap