How To Fix KZ520 - Routine to delete primary cost elements will not be carried out


KZ520 - Overview

  • Message type: E = Error

  • Message class: KZ - Cost Object Repetitive Mfg / Process Mfg

  • Message number: 520

  • Message text: Routine to delete primary cost elements will not be carried out

  • Show details Hide details
  • What causes this issue?

    You want to read or delete all the primary cost elements in a
    controlling area based on the G/L accounts in the corresponding company
    code. A routine is accessed to do this. This routine is not performed
    if one of the following errors occurs.
    In this case error &V1& was determined during the check.
    (1) The cost elements are not assigned to a controlling area. This
    meant that the system could not determine any primary cost elements.
    (2) A controlling area already containing productive company codes with
    primary cost elements is assigned to the company code. The cost
    elements cannot be deleted since they already exist for productive
    company codes.
    (3) A controlling area containing productive company codes without
    primary cost elements is assigned to the company code. This means that
    no cost elements are to be deleted.
    (4) No primary cost elements exist in the assigned controlling area.

    How to fix this error?

    Fulfill the conditions so that you can perform the routine (if you
    still need to delete the primary cost elements).

    Error message extract from SAP system. Copyright SAP SE.


KZ520 - Details

  • The SAP error message KZ520 indicates that the routine to delete primary cost elements will not be executed. This error typically arises in the context of controlling (CO) and financial accounting (FI) modules when there are issues related to cost element management.
    
    Cause: Cost Element Usage: The primary cost element you are trying to delete is still in use. This could be due to existing postings or allocations that reference the cost element.
    Configuration Issues: There may be configuration settings that prevent the deletion of cost elements, such as dependencies on other financial objects. Authorization Issues: The user may not have the necessary authorizations to delete cost elements. System Settings: Certain system settings or parameters may restrict the deletion of cost elements.
    Solution: Check Usage: Before attempting to delete a primary cost element, check if it is being used in any transactions, cost centers, internal orders, or other financial documents. You can use transaction codes like KSB1

    Already have an account? Login here!




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


KZ520 - Related SAP Errors

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