Symptom
When creating a billing document using the "Create billing documents" (App id F0798) app, a temporary billing document is displayed. After the create session is aborted, the temporary billing document is displayed in the document flow. There is no way to display this temporary billing document or delete it.
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
- SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Open the Create Billing Documents app (Fiori app ID: F0798).
- Select an order or delivery.
- Choose the Create button.
- A temporary billing document number is displayed.
- Exit the screen by selecting the Home button, or close the page directly.
- Open the Display Outbound Delivery app and navigate to the document flow.
- The temporary billing document number is visible in the document flow.
- Return to the Create Billing Documents app and attempt to create a billing document again.
- A new temporary billing document number is created, and multiple temporary billing document numbers are now displayed in the document flow.
Cause
When the billing setting Display Billing Documents After Creation is enabled, the system displays a temporary preview of the billing document being created.
This allows users to review the document before it is finalized. If the document is correct, it can be converted to a final billing document by choosing the Save button. If an error is detected, the temporary billing document can be discarded by choosing the Cancel button, which returns the user to the worklist.
The correct way to exit this screen is to use the Cancel button — not the Back or Home button. Navigating away using the Back or Home button may cause the temporary billing document to be retained in the database. Note that the Cancel action only removes the current temporary billing document; any previously created temporary billing documents will not be deleted.
Resolution
- Identify the orders or deliveries that have temporary billing documents in the document flow.
- Open the Create Billing Documents app.
- Select the relevant order or delivery and choose the Create button to generate a billing document.
- Choose the Save button to finalize the billing document.
- Once the final billing document is saved, all temporary billing documents are automatically removed, and the final billing document number is reflected in the document flow.
See Also
Fiori app Create Billing Documents
Keywords
S4, HANA, temporary invoice, temporary billing document, VBFA, create billing document, F0798 , KBA , SD-FIO-BIL-2CL , Fiori UIs for Billing (Public Cloud) , SD-FIO-BIL , Fiori UIs for Billing , Problem
SAP Knowledge Base Article - Public