How To Fix RA402 - Enter keepyrs = 0 when keepqtrs < 5


SAP Error Message - Details

  • Message type: E = Error

  • Message class: RA - Monitoring structure dialog message

  • Message number: 402

  • Message text: Enter keepyrs = 0 when keepqtrs < 5

  • Show details Hide details
  • What causes this issue?

    This is an error message. You are trying to set the reorganization
    schema for the performance database and have entered invalid data.

    System Response

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

    How to fix this error?

    If you want to keep data in the performance database for less than five
    quarters, set the value for data to be stored in the performance
    database for years to zero.

    Procedure for System Administrators


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message RA402 - Enter keepyrs = 0 when keepqtrs < 5 ?

    The SAP error message RA402, which states "Enter keepyrs = 0 when keepqtrs < 5," typically occurs in the context of the Asset Accounting module when you are trying to configure or execute a depreciation run or asset-related transaction. This error is related to the settings for the retention of historical data for asset depreciation.

    Cause:

    The error arises when the system detects an inconsistency between the settings for the number of quarters to keep (keepqtrs) and the number of years to keep (keepyrs). Specifically, if you have set keepqtrs to a value less than 5, the system requires that keepyrs be set to 0. This is a validation rule in SAP to ensure that the data retention settings are logically consistent.

    Solution:

    To resolve this error, you need to adjust the configuration settings for the asset accounting parameters. Here are the steps you can take:

    1. Access the Configuration Settings:

      • Go to the SAP Easy Access screen.
      • Navigate to the following path: SPRO -> SAP Reference IMG -> Financial Accounting -> Asset Accounting -> Valuation -> Define Depreciation Areas.
    2. Check the Depreciation Area Settings:

      • Identify the depreciation area that is causing the issue.
      • Check the settings for keepqtrs and keepyrs.
    3. Adjust the Settings:

      • If keepqtrs is set to a value less than 5, change keepyrs to 0.
      • Alternatively, if you want to keep a certain number of years, you can adjust keepqtrs to be 5 or more.
    4. Save the Changes:

      • After making the necessary adjustments, save your changes.
    5. Re-run the Transaction:

      • Try to execute the transaction or depreciation run again to see if the error is resolved.

    Related Information:

    • Documentation: Refer to SAP documentation or help files for more detailed information on asset accounting configuration.
    • SAP Notes: Check for any relevant SAP Notes that might provide additional insights or updates related to this error message.
    • Testing: After making changes, it is advisable to test the configuration in a development or test environment before applying it to production.

    By ensuring that the settings for keepyrs and keepqtrs are consistent, you should be able to resolve the RA402 error and proceed with your asset accounting processes.

    • 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