How To Fix BA058 - Maintain the variants for the deletion program first


SAP Error Message - Details

  • Message type: E = Error

  • Message class: BA - Data Archiving

  • Message number: 058

  • Message text: Maintain the variants for the deletion program first

  • Show details Hide details
  • What causes this issue?

    No variants have been maintained for the delete program. Consequently,
    the delete program cannot be run.

    System Response

    It is only possible to run the delete program if you have maintained
    variants for the delete program in both test and production modes in
    the Customizing settings. You must also ensure that these variants
    actually exist.
    If the delete program is to be triggered automatically by the write
    program, you must have maintained the variants for the delete program.

    How to fix this error?

    Create a test mode variant and a production variant for the delete
    program in the archive object and maintain the Customizing settings for
    the archiving object.
    In transaction <LB>AOBJ,</> select the relevant archiving object and
    choose: <LS>Customizing Settings</> -> <LS>Delete Program Settings</>:
    <LS>Test Mode/Production Mode.</>
    Or in transaction <LB>SARA</> choose: <LS>Customizing</> ->
    <LS>Archiving Object-Specific Customizing: Technical Settings</>)

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message BA058 - Maintain the variants for the deletion program first ?

    The SAP error message BA058, which states "Maintain the variants for the deletion program first," typically occurs when you are trying to execute a deletion program (such as for deleting old data or archiving) without having set up the necessary variants for that program. This is a common issue in SAP systems when dealing with data management tasks.

    Cause:

    The error arises because the deletion program requires specific parameters to be defined in a variant before it can be executed. Variants in SAP are used to store predefined values for selection screens, allowing users to run reports or programs with specific criteria without having to enter them each time.

    Solution:

    To resolve this error, you need to create and maintain the necessary variants for the deletion program. Here are the steps to do this:

    1. Access the Deletion Program:

      • Go to the transaction code associated with the deletion program you are trying to run. This could be a specific transaction code for the deletion program or a related transaction.
    2. Create a Variant:

      • In the selection screen of the program, look for the "Variants" button or option (usually found in the menu).
      • Click on it and select "Create" to define a new variant.
      • Fill in the required fields with the appropriate selection criteria for the deletion program. This may include parameters such as date ranges, object types, or other relevant filters.
    3. Save the Variant:

      • After entering the necessary information, save the variant with a meaningful name. Make sure to note the name for future reference.
    4. Execute the Deletion Program:

      • Once the variant is created and saved, you can now execute the deletion program using the variant you just created.

    Related Information:

    • Transaction Codes: Depending on the specific deletion program, the transaction code may vary. Common transaction codes for data deletion or archiving include:

      • SARA (Archive Administration)
      • SARI (Archive Information System)
      • SDBA (Database Archiving)
    • User Authorizations: Ensure that you have the necessary authorizations to create and execute variants and deletion programs. Lack of permissions can also lead to issues.

    • Documentation: Refer to SAP documentation or help files for specific details about the deletion program you are working with, as different programs may have different requirements for variants.

    • Testing: It is advisable to test the deletion program in a development or quality assurance environment before executing it in production to avoid unintended data loss.

    By following these steps, you should be able to resolve the BA058 error and successfully execute the deletion program in SAP.

    • 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