Symptom
When delete an attachment in app Manage Attachments, error triggered: Attachment ABC is being used for output. Deletion not allowed.
*ABC represents attachment name
Environment
SAP S/4 HANA Cloud Public Edition
Reproducing the Issue
- Access App vf02
- Search a not completed billing document and open it.
- Click Service for Object, select Manage Attachments.
- In App Manage Attachments, select attachment ABC, click delete icon.
- A pop-up window shows information 'Are you sure you want to delete file "ABC"?', click Delete, error triggered: Attachment ABC is being used for output. Deletion not allowed.
Cause
The attachment is being used for some output of this billing document, hence it is not allowed to delete this attachment.
Resolution
In App vf02, open output request, select any output request which contains attachment ABC, click Display Attachments, untick checkbox Attach and checkbox Merge. Repeat this for all output requests which contain attachment ABC. Go back to billing document and Save.
This KBA also applies to preliminary billing document.
See Also
Help document: Controlling the Output Relevance and Merging of Attachments
Keywords
Billing, Preliminary Billing Document, Output, Attachment, Delete, Deletion , KBA , SD-BIL-GF-OC-2CL , Output Control Billing (Public Cloud) , Problem
SAP Knowledge Base Article - Public