SAP_ABA is in an undefined state that is not safe to be upgraded !!!

Symptom
  • Severe error(s) occured in phase PREP_INIT/VALCHK_INI!
  • SAP_ABA is in an undefined state that is not safe to be upgraded !!!
  • EA-APPL is in an undefined state that is not safe to be upgraded !!!
  • BBPCRM is in an undefined state that is not safe to be upgraded !!!
  • BI_CONT is in an undefined state that is not safe to be upgraded !!!
  • PI_BASIS is in an undefined state that is not safe to be upgraded !!!
  • GW_CORE is in an undefined state that is not safe to be upgraded !!!
  • CPRXRPM is in an undefined state, that is not safe to be upgraded !!!
  • Reason: Upgrade wasn't completed.




Environment
  • All SAP releases.


Reproducing the Issue
  1. Run a SAP system upgrade.
  2. Due to emergencies you have to reset the upgrade following the recommendations from the upgrade guide.
  3. Start the upgrade again.
  4. An example of the error message can be found below:
This trouble ticket was created by SAPup on 20120918194459
-------------------------------------------------------------
SAPup broke during phase VALCHK_INI in module PREP_INIT / Initialization
Error Message: BBPCRM is in an undefined state, that is not safe to be upgraded, reason Upgrade wasn't completed - Call the SAP Support


Cause
This is normally caused by a wrong entry in an internal table which was most likely due to the improper resetting of a previous upgrade (e.g. just delete the upgrade directory) and starting from the beginning.
Please kindly refer the the section on "Resetting the Software Update Manager" of the upgrade guide for details on how to properly reset an upgrade.


Resolution
Only perform the following steps if you were in one of the Preparation Roadmap steps when you tried to reset the previous upgrade:
  1. Stop the upgrade.
  2. Change to the upgrade directory:
    UNIX: /abap/bin
    WINDOWS: \abap\bin
  3. Execute the following command:
    UNIX: ./SAPup reset prepare
    WINDOWS: .\SAPup.exe reset prepare
  4. Rename the current upgrade directory
    NOTE: Once you have confirmed that the reset was done properly, you can then delete the directory.
  5. Start a new upgrade from scratch.
Now the upgrade should no longer stop in phase PREP_INIT/VALCHK_INI.
Additional information are also provided in the Upgrade Troubleshooting WIKI at http://wiki.scn.sap.com/wiki/x/Ko99Fw.

Note 1973497 - SPAM/SAINT error message: Currently runs an update process started by the Software Update manager