In this article
SAP EDI reprocessing controls reduce duplicate orders and invoices by answering one question before every retry: Did the original message already create a business document? Check the EDI document, the integration result and the SAP outcome before releasing another attempt. A failed response or missing acknowledgment alone cannot answer that question.
For teams integrating SAP, BOLD VAN recommends separating message identity from business identity. An EDI file can arrive twice with different transmission references while representing the same purchase order or invoice. Your process should recognize both kinds of repetition, route uncertain outcomes for review and record the result of each retry.
What SAP EDI reprocessing controls do
Reprocessing means submitting a previously received or generated document through part of an EDI workflow again after a failure or uncertain result. Controls determine whether to retry translation, retry delivery into SAP, resend to a trading partner or stop and investigate. The goal is one intended SAP business result per order or invoice, even when a message is delivered more than once.
Consider an inbound X12 850 purchase order. The EDI layer translates it and passes the result toward SAP. SAP creates an order, but the confirmation back to the integration layer fails. Replaying the message without checking SAP could create another order. An inbound X12 810 invoice presents a similar risk if its first posting succeeded but the recorded interface status remains unclear. Outbound 810 retries also need separate transmission checks so you do not send an invoice twice unnecessarily.
Before you requeue a document: Check both the EDI delivery history and the SAP business outcome. A missing success message is not proof that SAP failed to create an order or post an invoice.
The identity and status data you need
A useful audit trail has two linked identities. The technical identity distinguishes a received EDI transaction from another transmission. The business identity identifies the order or invoice the transaction represents. Keep the partner, document type, source reference and resulting SAP reference together, along with the processing outcome. The specific identifiers available depend on the X12 version, partner guide and SAP implementation.
| Record | What to compare | Why it matters |
|---|---|---|
| EDI message | Partner, document type and transmission references | Shows whether the same technical transaction was received or sent again. |
| Business document | Customer and purchase order reference, or supplier and invoice reference | Catches a repeat business request even if its transmission identifiers differ. |
| Integration outcome | Translation, delivery and application processing status | Identifies where processing stopped and where a retry belongs. |
| SAP result | Existing SAP document and its current state | Establishes whether another creation or posting attempt is appropriate. |
Do not rely on the file name as a business key. A partner may resend an order in a differently named file, and a corrected order may legitimately reuse its purchase order reference. Define how your SAP process distinguishes a duplicate from a valid change. Confirm document variants, correction procedures and reference rules against the trading partner's published EDI implementation guide.
A 997 functional acknowledgment tells the sender whether a document passed the receiver's syntax check. It can report acceptance or rejection. It does not mean the order or its content was accepted by SAP, and it does not replace an application-level posting check.
A safe SAP EDI retry workflow
Trace the original attempt
Find the source document and establish what actually happened at each handoff. Was the transmission received? Did translation finish? Did SAP reject the input, create a document or return an uncertain result? Check the relevant SAP processing status and search for the business document before choosing a retry point. SAP status details vary by release and configuration, so use your system's documentation and support procedures.
Decide what to replay
If translation failed, correct the map or source-data problem and retry that stage. If SAP rejected the translated data, fix the underlying application or master-data issue, then retry delivery without unnecessarily asking the partner to resend. If the SAP outcome is uncertain, hold the message until you reconcile the source reference with SAP. For an outbound document, investigate delivery and the partner's response before retransmitting.
Reconcile and record the result
After reprocessing, match the attempt to its SAP order or invoice, or record why it remained unposted. Retain who authorized the retry, what changed and whether another attempt is allowed. If repeated failures require investigation, route them to an owner rather than allowing an unattended retry cycle. This makes an exception queue useful for both finance and IT.
Common pitfalls and best practices
- Check both identities: Compare technical message references and the business order or invoice reference. Either alone can miss a duplicate.
- Separate acknowledgments from posting: A 997 syntax result cannot establish whether SAP created a business document.
- Review corrections: A repeated purchase order reference might represent a legitimate change. Check the partner guide and your configured change process before discarding it.
- Test uncertain outcomes: In testing, simulate a successful SAP creation followed by a missing integration response. Your retry procedure should find the existing document.
- Control manual work: Before someone enters an order or invoice by hand, check whether an automated attempt is pending or already posted.
These checks also help you investigate downstream discrepancies without treating every error as an EDI map failure. An invalid business reference and a failed transmission call for different fixes.
Keep mapping and SAP posting responsibilities clear
Mapping carries EDI order and invoice information into the structure expected by your SAP integration, and carries outbound data back into the partner's EDI format. The map should preserve the references needed to compare a retry with an existing business document. SAP-side checks then determine whether creation or posting is allowed. Review each side together when changing a map, an SAP interface or a partner's document requirements.
BOLD Integration maps EDI data into SAP and other ERP, WMS and business systems. BOLD VAN also connects platforms that use APIs instead of EDI in both directions, so the same questions about identity and posting outcome matter across integration paths. Every document is tracked in the portal, where customers can search, requeue and report, with notifications when something needs their attention. A requeue decision still calls for a check of the SAP result.
When a trading partner changes its requirements, we update the map, and minor changes are typically handled at no cost. New maps are typically ready to test in about two days. Use that test period to check normal processing, repeat delivery and uncertain SAP outcomes against the partner's published guide and your SAP documentation.
Frequently asked questions
Why does reprocessing an SAP EDI order create a duplicate?
The first attempt may have created an SAP order even if the integration layer did not record success. Check SAP for the purchase order reference before retrying creation.
Does an accepted 997 mean SAP posted the order?
No. A 997 reports whether the EDI document passed the receiver's syntax check. It does not confirm that SAP accepted the order or its content.
What should you check before reprocessing an EDI 810 invoice?
Check the supplier and invoice reference against existing SAP records, then review the original processing status. Verify any additional duplicate criteria against your SAP configuration before another posting attempt.
Should you ask a partner to resend after an SAP processing error?
Usually, first determine whether you can correct the internal error and retry the received document. Check the partner's published EDI implementation guide before requesting or sending another transmission.
Make the next retry a deliberate decision
A reliable procedure traces the message, checks for an existing SAP document and retries only the failed stage. If you are reviewing how EDI data reaches SAP, explore BOLD Integration for mapping and integration support.




