Sub topic 14
Troubleshooting incomplete or blocked document flows
This chapter assumes you can read the document flow in the SAP GUI, query VBFA and EKBE, and follow an order through SD, MM and FI. It covers a repeatable way to find out why a flow stops or why a follow-on document cannot be created.
Start with where the chain stops
A document flow problem is nearly always one of two things. The follow-on document was never created, or it exists but the link to it is not visible. Find the last document that does exist, then ask what the next step needs.
The diagram shows the order of checks.
Common causes
| Symptom | Likely cause | Where to check |
|---|---|---|
| Delivery cannot be created from an order | Delivery block, incomplete data, or no schedule line with confirmed quantity | Order header and schedule line, incompletion log |
| Billing cannot be created from a delivery | Goods issue not posted, or billing block | Delivery overall status, billing block field |
| Invoice posts but no accounting document appears | Accounting block, or an error in the billing due list | VF03 status, VFX3 |
| Invoice receipt blocked | Price or quantity variance against PO and goods receipt | MRBR, invoice document |
| Goods receipt missing in PO history | Receipt posted to another PO item, or not posted at all | EKBE, MB51 |
| Follow-on type not offered | No copy control entry for the source and target types | VTAA, VTLA, VTFL |
Check status before customizing
Most blocked flows are caused by the document, not by configuration. Check these first:
- Header and item status, such as overall processing status and goods movement status.
- Block fields, such as delivery block and billing block on the order.
- The incompletion log, which lists missing mandatory fields.
- The application log or the message shown when you try to create the next document.
Only when all four are clean should you look at copy control. If one document type works for some orders but not others, the cause is data. If it fails for every order of one type, the cause is customizing.
Find hidden or missing links
If the document exists but the GUI flow does not show it, query the link table directly. The next query lists everything that follows an order, so you can compare it with what the GUI displays.
DATA lv_order TYPE vbeln_va VALUE '0000004711'.
SELECT vbelv, posnv, vbeln, posnn, vbtyp_n
FROM vbfa
WHERE vbelv = @lv_order
INTO TABLE @DATA(lt_followers).If the follow-on document appears here but not in the GUI, the GUI display is filtered. If it is absent here as well, the document was never linked to this order. This happens when a document is created without reference, for example a billing document entered manually.
For accounting, search from the other side with the reference fields in BKPF.
DATA lv_awkey TYPE awkey VALUE '0090000123'.
SELECT bukrs, belnr, gjahr, awtyp, awkey
FROM bkpf
WHERE awtyp = 'VBRK'
AND awkey = @lv_awkey
INTO TABLE @DATA(lt_fi_docs).An empty result means that no accounting document is tied to that billing document. Check the billing document's accounting status before assuming data loss.
Partial processing is not an error
A flow that looks incomplete may be correct. If an order has 10 pieces and one delivery covers 6, the flow stops there until the remaining 4 are delivered. Compare quantities at item level before you raise a defect.
Exercise
A billing document cannot be created for a delivery. The delivery exists and VBFA shows it linked to the order. List the first two things you check.
Show answer
First, check whether goods issue is posted, because billing normally requires it. Second, check the billing block and the incompletion log on the order and delivery. Only if both are clean do you check copy control for the delivery-to-billing step.