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


SAP Error Message - Details

  • 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.


Smart SAP Assistant

  • What is the cause and solution for SAP error message KZ520 - Routine to delete primary cost elements will not be carried out ?

    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:

    1. 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.
    2. Configuration Issues: There may be configuration settings that prevent the deletion of cost elements, such as dependencies on other financial objects.
    3. Authorization Issues: The user may not have the necessary authorizations to delete cost elements.
    4. System Settings: Certain system settings or parameters may restrict the deletion of cost elements.

    Solution:

    1. 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 (Cost Centers: Actual Line Items) or KOB1 (Orders: Actual Line Items) to review postings.
    2. Remove Dependencies: If the cost element is in use, you will need to reverse or delete the transactions that reference it. This may involve reversing journal entries or reallocating costs.
    3. Review Configuration: Ensure that the configuration settings in the controlling area allow for the deletion of cost elements. You may need to consult with your SAP configuration team.
    4. Check Authorizations: Verify that the user attempting to delete the cost element has the necessary authorizations. This can be checked in the user roles and profiles.
    5. Use Alternative Methods: If deletion is not possible, consider marking the cost element as inactive or using other methods to prevent its use in future postings.

    Related Information:

    • Transaction Codes: Familiarize yourself with relevant transaction codes such as KA01 (Create Primary Cost Element), KA02 (Change Primary Cost Element), and KA03 (Display Primary Cost Element).
    • SAP Notes: Check SAP Notes for any known issues or patches related to cost element management.
    • Documentation: Review SAP documentation on cost element accounting for best practices and guidelines on managing cost elements.

    If the issue persists after following these steps, it may be beneficial to consult with your SAP support team or reach out to SAP support for further assistance.

    • 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
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