How To Fix CF187 - You cannot delete - PRT has document allocations


SAP Error Message - Details

  • Message type: E = Error

  • Message class: CF - PRT management messages

  • Message number: 187

  • Message text: You cannot delete - PRT has document allocations

  • Show details Hide details
  • What causes this issue?

    You are attempting to delete the <GL:production_resource/tool>
    production resource/tool</>. However, this PRT is allocated to at
    least one document. Therefore it cannot be deleted.

    How to fix this error?

    You must first delete the documentation allocations for the
    <GL:production_resource/tool>production resource/tool</>. Then you can
    delete the PRT.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message CF187 - You cannot delete - PRT has document allocations ?

    The SAP error message CF187, which states "You cannot delete - PRT has document allocations," typically occurs when you attempt to delete a Production Resource Tool (PRT) that is currently allocated to one or more documents in the system. This could include allocations in production orders, maintenance orders, or other related documents.

    Cause:

    The primary cause of this error is that the PRT you are trying to delete is still in use or linked to existing documents. SAP prevents the deletion of such resources to maintain data integrity and avoid orphaned references in the system.

    Solution:

    To resolve this error, you can follow these steps:

    1. Identify Allocations:

      • Use transaction codes like CO03 (Display Production Order) or IW33 (Display Maintenance Order) to check if the PRT is allocated to any active orders.
      • You can also use transaction CR03 (Display PRT) to see the details of the PRT and its allocations.
    2. Remove Allocations:

      • If you find that the PRT is allocated to a production order or maintenance order, you will need to remove the allocation. This can typically be done by:
        • Going to the relevant order (e.g., production or maintenance order).
        • Navigating to the PRT assignment section.
        • Deleting or unassigning the PRT from the order.
    3. Check for Other Document Types:

      • Ensure that the PRT is not allocated to any other document types, such as maintenance plans, task lists, or other production-related documents.
    4. Delete the PRT:

      • Once all allocations have been removed, you can attempt to delete the PRT again using transaction CR02 (Change PRT) and then selecting the delete option.

    Related Information:

    • Transaction Codes:

      • CR03: Display PRT
      • CR02: Change PRT
      • CO03: Display Production Order
      • IW33: Display Maintenance Order
    • Documentation:

      • Refer to SAP Help documentation for more details on managing PRTs and understanding their role in production and maintenance processes.
    • User Permissions:

      • Ensure that you have the necessary permissions to modify or delete PRTs in the system.
    • Consult with SAP Support:

      • If you are unable to resolve the issue, consider reaching out to your SAP support team for further assistance.

    By following these steps, you should be able to resolve the CF187 error and successfully delete the PRT if it is no longer needed.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


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