How To Fix CZ264 - CoCode & still has vendor master records. Cannot be deleted.


SAP Error Message - Details

  • Message type: E = Error

  • Message class: CZ - Customizing messages

  • Message number: 264

  • Message text: CoCode & still has vendor master records. Cannot be deleted.

  • Show details Hide details
  • What causes this issue?

    You want to delete Company code &V1& but it still has vendor
    master records.

    System Response

    You cannot delete the Company code.

    How to fix this error?

    If you are sure you want to delete Company code &V1&, you should first
    delete its vendor master records.

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message CZ264 - CoCode & still has vendor master records. Cannot be deleted. ?

    The SAP error message CZ264 indicates that a company code (CoCode) still has vendor master records associated with it, which prevents the deletion of the company code. This is a common issue in SAP when trying to delete a company code that is still linked to existing vendor records.

    Cause:

    The primary cause of this error is that there are vendor master records (or related data) that are still active in the system for the specified company code. SAP requires that all related data be cleared before a company code can be deleted.

    Solution:

    To resolve this error, you need to follow these steps:

    1. Identify Vendor Records:

      • Use transaction code MK03 (Display Vendor) or MK02 (Change Vendor) to check for existing vendor master records associated with the company code.
      • You can also use transaction SE16N to query the vendor master table (LFA1 for general data and LFB1 for company code data) to find any records linked to the company code.
    2. Delete or Archive Vendor Records:

      • If you find vendor records that are no longer needed, you can delete them using transaction MK05 (Block Vendor) or XK05 (Block Vendor at Company Code Level).
      • If you need to keep the vendor records for historical purposes, consider archiving them instead of deleting.
    3. Check Related Data:

      • Ensure that there are no other related records (such as purchase orders, invoices, etc.) that might be linked to the vendor master records. You may need to delete or archive these records as well.
    4. Re-attempt Deletion:

      • Once all vendor master records and related data have been addressed, you can attempt to delete the company code again using transaction OX19 (Delete Company Code).

    Related Information:

    • Transaction Codes:

      • MK03: Display Vendor
      • MK02: Change Vendor
      • MK05: Block Vendor
      • XK05: Block Vendor at Company Code Level
      • OX19: Delete Company Code
      • SE16N: Data Browser for table queries
    • Tables:

      • LFA1: Vendor Master (General Data)
      • LFB1: Vendor Master (Company Code Data)
      • EKKO: Purchasing Document Header
      • EKPO: Purchasing Document Item
    • Considerations:

      • Always ensure that you have the necessary authorizations to delete or modify vendor records.
      • It is advisable to perform these actions in a test environment before applying them in production to avoid unintended data loss.

    By following these steps, you should be able to resolve the CZ264 error and successfully delete the company code.

    • 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's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker