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

Close

How To Fix WZ804 - Form could not be deleted


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WZ - Workflow: Model objects

  • Message number: 804

  • Message text: Form could not be deleted

  • 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 WZ804 - Form could not be deleted ?

    SAP Error Message:
    WZ804 - Form could not be deleted


    Cause:

    The error message WZ804 typically occurs when you attempt to delete a form in SAP (usually a Smart Form or SAPscript form), but the system cannot delete it because:

    • The form is currently in use or assigned to an active object (e.g., a print program, output type, or application).
    • The form is locked by another user or process.
    • There are dependent objects or references that prevent deletion.
    • Insufficient authorizations to delete the form.
    • The form is part of a transport request that is locked or not released.

    Solution:

    To resolve the WZ804 error, follow these steps:

    1. Check Usage/Assignments:

      • Verify if the form is assigned to any output types, print programs, or applications.
      • Use transaction NACE (for output types) or check the print program to see if the form is referenced.
      • Remove or change the assignment before deleting the form.
    2. Check Locks:

      • Use transaction SM12 to check if the form is locked by another user or process.
      • If locked, coordinate with the user or wait until the lock is released.
      • If the lock is stale, you may delete the lock (with caution).
    3. Check Authorizations:

      • Ensure you have the necessary authorization to delete forms.
      • Authorization objects related to forms include S_FORM and S_PROGRAM.
    4. Check Transport Requests:

      • If the form is part of a transport request, ensure the request is not locked or released.
      • You may need to release or delete the transport request or create a new transport request for deletion.
    5. Delete the Form Properly:

      • Use the appropriate transaction to delete the form:
        • For Smart Forms: transaction SMARTFORMS
        • For SAPscript forms: transaction SE71
      • In the form maintenance screen, use the delete option.
      • Confirm deletion and save.
    6. Check for Dependent Objects:

      • Sometimes, the form may have dependent objects like styles, graphics, or includes.
      • Ensure these are deleted or unassigned if necessary.

    Related Information:

    • Transactions:

      • SMARTFORMS – Maintain Smart Forms
      • SE71 – SAPscript Form Painter
      • NACE – Output Types
      • SM12 – Lock Entries
      • SE03 – Transport Organizer Tools (to check transport requests)
    • Notes and Documentation:

      • SAP Notes related to form deletion issues may provide specific fixes or patches.
      • Check SAP Help Portal or SAP Support for notes referencing error WZ804.
    • Best Practices:

      • Always check dependencies before deleting forms.
      • Coordinate with functional teams to ensure the form is no longer needed.
      • Backup or transport forms before deletion if needed.

    If after these steps the problem persists, consider raising a support ticket with SAP, providing details of the form, system logs, and steps taken.

    • 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
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author