SD Sales Documents Part 3: Referencing, Document Flow and Completion
How sales documents are created with reference and linked: create with reference, what is copied, document flow (VBFA), referenced quantities and completion rules for quotations and contracts, rejection reasons, and how to read the flow when troubleshooting — as the bridge to the Copy Control topic.
Explanation
📌 KEY POINTS
✅ Creating with reference copies header, item and partner data from a preceding document and records the link in document flow (VBFA).
✅ What is copied and whether copying is allowed is controlled by copy control (VTAA, VTLA, VTFL) — covered in detail in the Copy Control topic.
✅ The item category's completion rule decides when a quotation or contract item is "complete" (e.g. fully referenced quantity).
✅ Reason for rejection closes items that will never be referenced (lost quotation items), and feeds lost-sales analysis.
⚠️ Open quotation or contract items without rejection or completion stay open forever and distort pipeline and open-order reports.
━━━━━━━━━━━━━━━━━━━━
▶ WHERE WE ARE
Part 2 configured the document type. Now we connect documents to each other.
━━━━━━━━━━━━━━━━━━━━
▶ 1. CREATE WITH REFERENCE
- VA01 > Create with Reference: choose quotation/contract/order, select items and quantities.
- Header and item data, partners and (depending on copy control) pricing are copied.
- Reference mandatory in VOV8 forces this path.
━━━━━━━━━━━━━━━━━━━━
▶ 2. DOCUMENT FLOW
- VBFA stores predecessor → successor links with quantities.
- Display: VA03 > Display Document Flow — shows quotation → order → delivery → goods issue → invoice → accounting.
- First place to look when "the invoice is missing".
━━━━━━━━━━━━━━━━━━━━
▶ 3. REFERENCE STATUS AND COMPLETION
- Referenced quantity reduces the open quantity of the predecessor.
- Completion rule (item category): e.g. completed when full quantity referenced, or on first reference.
- Reference status / overall status visible in the document (in S/4HANA stored in VBAK/VBAP).
━━━━━━━━━━━━━━━━━━━━
▶ 4. REJECTION REASONS
- Set on items that will not be processed (price too high, lost to competitor).
- Rejected items are closed and excluded from requirements and follow-on documents.
- Reasons can be configured to be billing-relevant or not.
━━━━━━━━━━━━━━━━━━━━
▶ 5. COPY CONTROL PREVIEW
- Header level: document type → document type; item level: item category rules; schedule line level.
- Routines check copying requirements (e.g. same sold-to) and transfer data.
- Detailed configuration: Copy Control topic.
━━━━━━━━━━━━━━━━━━━━
▶ STEP BY STEP
- Create a quotation with two items.
- Create an order with reference, taking only one item partially.
- Check quotation status and document flow.
- Set a rejection reason on the second quotation item.
✅ CHECKPOINT: the quotation shows partial reference on item 1 and is completed after rejecting item 2 and referencing the rest.
Code example
===== STEP 1: reference and flow tables =====VBFA document flow: VBELV/POSNV (predecessor) → VBELN/POSNN (successor), VBTYP_N, quantityVBAK/VBAP status fields (S/4HANA): reference status, overall status ===== STEP 2: display =====VA03 > Environment > Display Document FlowVA05 / Fiori "Manage Sales Quotations": open quotations and follow-on status ===== STEP 3: completion rule (item category, VOV7) =====Completion rule: completed with full quantity referenced / on first reference / etc.Example: AGN (quotation item) → completed when full quantity is referenced KMN (quantity contract)→ completed when full target quantity is released ===== STEP 4: rejection reasons =====SPRO > Sales and Distribution > Sales > Sales Documents > Define Reasons for Rejection (OVAG)Z1 Price too high | Z2 Lost to competitor | Z3 Customer cancelled ===== STEP 5: copy control (details in Copy Control topic) =====VTAA sales doc → sales doc | VTLA sales doc → delivery | VTFA/VTFL/VTFF → billingReal project scenario
A distributor's sales pipeline report showed 12 million EUR of open quotations, most older than a year. Sales managers made capacity decisions on this number. Analysis showed that won quotations were often converted to orders without reference (typed manually) and lost quotations never received a rejection reason. The fix: reference made mandatory for the main order type from quotations, a monthly job flagging expired quotations with a rejection reason, and a pipeline report based on document flow. The open pipeline dropped to 2.3 million EUR — the real figure.
Common mistakes
- Creating orders without reference so quotations/contracts stay open.
- Not using rejection reasons for lost items.
- Looking only at the order when troubleshooting instead of the document flow.
- Expecting follow-on documents to update when the predecessor changes later.
- Confusing completion rule (item category) with copy control.
Best practices
- Use reference mandatory where process discipline is needed.
- Maintain meaningful rejection reasons and report on them.
- Start every "missing document" investigation with document flow.
- Close expired quotations with a periodic job.
- Keep copy control changes documented and tested (Copy Control topic).
Interview angle
Questions: "What is document flow?", "How do you close quotation items that were lost?", "What is a completion rule?"
Strong answer: VBFA links predecessor and successor with quantities, shown in VA03 document flow; creating with reference copies data per copy control and reduces open quantities; completion rules in the item category decide when quotation/contract items are complete; rejection reasons close lost items and support lost-sales analysis.
Practice this lesson
Quick check
1. Where do you look first when a user says an invoice is missing for a sales order?
2. Quotation items were lost to a competitor. How should they be closed so they no longer appear as open?
3. A quotation item was fully converted into an order, but the quotation still shows as open in reports. What is the most likely cause?
Interview questions
1. A sales order item does not appear in the delivery due list (VL10) although the order is saved. How do you investigate systematically?
Answer it in your own words first, then compare.
2. A distribution company complains that orders created from quotations lose the negotiated prices, and some quotations remain open after conversion. How do you analyse it?
Answer it in your own words first, then compare.
Reference-verified: the steps are checked against official SAP documentation and tutorials, and object and field names in the sample code are checked for consistency. The code has not been compiled or run on an SAP system by ERPClimb. Syntax marked release-dependent varies by SAP release, so check it in your own system.
More lessons in this topic
- SD Sales Documents Part 1: Document Structure and Document Categories
- SD Sales Documents Part 2: Sales Document Type Configuration (VOV8)
- SD Sales Documents Part 4: Incompletion, Status and Document Blocks
- SD Sales Documents Part 5: Architecting Sales Document Landscapes — Governance and S/4HANA Migration