How To Fix PT_ARCH002 - Leave quotas (infotype 2006) cannot be destroyed


SAP Error Message - Details

  • Message type: E = Error

  • Message class: PT_ARCH -

  • Message number: 002

  • Message text: Leave quotas (infotype 2006) cannot be destroyed

  • Show details Hide details
  • What causes this issue?

    This can be for the following reasons:
    The remaining time balance of the time quota is not 0, or none of the
    absences or compensation data linked to the time quota can be deleted.
    The deduction date of a generated absence quota is after the <LS>Select
    Data Until</> date.

    How to fix this error?

    Ensure that the quota is deducted (remaining time balance is 0) and that
    the absences and compensation data can be destroyed.
    <ZH>Note</>
    Generated quotas are not destroyed if the deduction end date for a quota
    is after the date until which quotas are to be destroyed. This applies
    even if the quota has already been completely deducted.

    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 PT_ARCH002 - Leave quotas (infotype 2006) cannot be destroyed ?

    The SAP error message PT_ARCH002 indicates that there is an issue with the leave quotas stored in infotype 2006 (Leave Entitlement) that prevents them from being archived or deleted. This error typically arises in the context of data archiving processes in SAP, particularly when trying to archive employee leave data.

    Cause:

    The error can occur due to several reasons, including:

    1. Existing Leave Quotas: There are active leave quotas associated with the employee that cannot be deleted or archived. This could be due to the quotas being used in current or past payroll periods.

    2. Data Integrity Issues: There may be inconsistencies or integrity issues in the data related to leave quotas that prevent the system from processing the archiving request.

    3. Configuration Settings: The archiving settings or the configuration for leave management may not be set up correctly, leading to restrictions on archiving certain data.

    4. Open Leave Requests: If there are open leave requests or pending approvals related to the leave quotas, the system will not allow the deletion or archiving of those quotas.

    Solution:

    To resolve the PT_ARCH002 error, you can take the following steps:

    1. Check Leave Quotas: Review the leave quotas for the employee in infotype 2006. Ensure that there are no active or pending leave requests that are associated with these quotas.

    2. Clear Open Leave Requests: If there are any open leave requests, either approve or reject them to clear the way for archiving.

    3. Review Data Integrity: Use transaction codes like PA30 (Maintain HR Master Data) to check for any inconsistencies in the employee's leave data. Correct any discrepancies found.

    4. Adjust Archiving Settings: Ensure that the archiving settings for leave data are correctly configured. This may involve consulting with your SAP Basis or HR module team to verify the settings.

    5. Use Archiving Object: If you are using an archiving object, ensure that it is correctly defined and that the necessary prerequisites for archiving are met.

    6. Consult Documentation: Refer to SAP documentation or notes related to archiving leave data for any specific instructions or known issues.

    7. Contact SAP Support: If the issue persists after trying the above steps, consider reaching out to SAP support for further assistance.

    Related Information:

    • Infotype 2006: This infotype is used to manage leave entitlements for employees in SAP HR.
    • Archiving Process: The archiving process in SAP is designed to remove data from the database to improve performance and manage data volume.
    • Transaction Codes: Familiarize yourself with relevant transaction codes such as PA30 (to view and maintain HR master data) and SARA (to manage archiving).

    By following these steps, you should be able to identify the cause of the error and implement a solution to resolve it.

    • 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