Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix WS534 - Document &1 cannot be deleted, set document to completed


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS - Supplier Billing Document

  • Message number: 534

  • Message text: Document &1 cannot be deleted, set document to completed

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WS534 - Document &1 cannot be deleted, set document to completed ?

    SAP Error Message:
    WS534 - Document &1 cannot be deleted, set document to completed


    Cause:

    This error occurs when you attempt to delete a document in SAP that is not yet in a "completed" status. Certain documents in SAP (such as workflow tasks, service orders, or other business documents) must be set to a final or completed status before they can be deleted. If the document is still open, in process, or in an intermediate status, the system prevents deletion to maintain data integrity and process consistency.


    Explanation:

    • The placeholder &1 in the message is replaced by the document number or identifier.
    • The system enforces that only completed documents can be deleted to avoid inconsistencies or loss of important transactional data.
    • This is common in modules like Plant Maintenance (PM), Customer Service (CS), or Workflow where documents have lifecycle statuses.

    Solution:

    1. Check Document Status:

      • Go to the document in question (e.g., service order, notification, workflow task).
      • Verify its current status.
    2. Set Document to Completed:

      • Change the status of the document to "Completed" or the equivalent final status.
      • This might involve:
        • Completing all required activities.
        • Confirming or closing the document.
        • Releasing or technically completing the order/notification.
    3. Delete the Document:

      • Once the document is in the completed status, attempt the deletion again.
      • The system should now allow deletion.
    4. If You Cannot Change Status:

      • Check for open activities or dependencies preventing completion.
      • Resolve any outstanding tasks or confirmations.
      • Consult with the process owner or functional consultant if the document cannot be completed due to business rules.

    Additional Information:

    • Transaction Codes:
      • For PM/CS documents: IW32 (Change Order), IW22 (Change Notification)
      • For workflow tasks: SWI1, SWIA
    • Status Profiles:
      • Documents have status profiles controlling allowed status changes and deletions.
    • Authorization:
      • Ensure you have the necessary authorizations to change status and delete documents.
    • Customizing:
      • Sometimes, deletion restrictions are customized in the system; check with your SAP administrator or functional consultant.

    Summary:

    • Error WS534 means you tried to delete a document that is not completed.
    • Fix: Set the document to completed status first.
    • Then: Delete the document.

    If you provide the specific document type or module, I can give more tailored instructions.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant