SAP Knowledge Base Article - Public

3753191 - In a Purchase Requisition all attachments are deleted at the same time - SAP S/4HANA Cloud Public Edition

Symptom

  • When a user tries to delete or replace one attachment on a purchase requisition, all attachments disappear and must be re-added.
  • The situation typically occurs after a purchase order has been created from the purchase requisition and later rejected or requires amendment.
  • A pop-up message is shown when attempting to delete a single attachment: "There are other files linked to document '***.pdf'. Action will remove these files. Are you sure you want to proceed?"

"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

  1. Create a purchase requisition and attach multiple documents.
  2. Approve the purchase requisition.
  3. Create a purchase order with reference to the purchase requisition.
  4. Reject the purchase order.
  5. Edit the purchase requisition, add a new attachment or delete/replace one of the existing attachments.
  6. Observe that other attachments are deleted from the purchase requisition.

Cause

  • When creating a Purchase Requisition, multiple attachments are stored as “originals” under a single DMS document. Deleting one attachment from the purchase requisition triggers removal of all originals linked to that shared DMS document, resulting in all attachments being removed.
  • The system informs the user by a pop-up message.

Resolution

  1. Identify the DMS document number displayed in the attachments section of the purchase requisition or purchase order.
  2. Open the “Manage Documents” app (DMS).
  3. Search for and open the DMS document.
  4. Go to the Originals section.
  5. Delete the unwanted file from the Originals.
  6. Add the new file as a replacement in the Originals.
  7. Save the DMS document.
  8. The updated attachments will now reflect in both the purchase requisition and the purchase order because these documents reference the same DMS document.

Keywords

purchase requisition, attachment missing, attachments deleted, delete attachment, dms, manage documents, originals, linked document, pr attachments, po reference, amendment, pop-up message, remove all files, s/4hana cloud, CL_PURCHASEREQN_PROF_BOPF_API, DRAD, DRAW, CL_CV_ATTACHMENT_SERVICE_IMPL, GET_ALL_ORIGINALS_DMS.  , KBA , MM-PUR-REQ-PRF-2CL , Manage Purchase Requisitions – Professional (Public Cloud) , CA-DMS , Document management , MM-FIO-PUR-REQ-PRF , Manage Purchase Requisitions – Professional , Problem

Product

SAP S/4HANA Cloud Public Edition all versions