You are on page 1of 3

2022-03-27 2475935

2475935 - ABAP upgrade : How to skip phase


RUN_SGEN_GENER8 on shadow instance
Version 8 Type SAP Knowledge Base Article
Language English Master Language English
Release Status Released to Customer Category How To
Component BC-UPG-TLS-TLA (Upgrade tools for ABAP)Released On 28.02.2022

Please find the original document at https://launchpad.support.sap.com/#/notes/2475935

Symptom

During an upgrade on Software Update Manager (SUM), you want to skip phase RUN_SGEN_GENER8 on
shadow instance to save time during the upgrade procedure.

Environment

• Software Update Manager (SUM) running on ABAP based SAP System


• Upgrade runs with shadow instance
• Current phase is:
MAIN_SHDIMP/SUBMOD_SHD2_RUN/SUBMOD_GEN_ABAP_LOAD/RUN_SGEN_GENER8

Reproducing the Issue

Repeat the current phase in SUM.

Cause

You have decided in phase PREP_CONFIGURATION/INITSUBST to perform the SGEN on shadow


instance:

At the current time schedule of your upgrade project, you need to skip this long-running phase.

Resolution

Note: If you want to abort and skip SGEN for now, you can use report RSUPG_SGEN_ABORT_SHADOW in

© 2022 SAP SE or an SAP affiliate company. All rights reserved 1 of 3


2022-03-27 2475935

the shadow system. This option is available in SUM 2.0, refer to the section "SGEN Execution Modes" of the
SUM guide for the version/PL of SUM you are using for latest guidance. If report
RSUPG_SGEN_ABORT_SHADOW is available for your SUM version, there is no need to use this KBA.
Follow the SUM Guide instead.

Option #1: If you still facing the problem, before you start, check how many entries are left for
generation

• Perform a direct SQL statement like the following (you may need to adapt the syntax depending on your
database):

SQL> select count(GENSTATUS) from <SCHEMA>.UPGGENSET~ where genstatus = 'I';

COUNT(GENSTATUS)
----------------
35623

Option #2: If there is a huge number of objects left to be generated and you want to skip the generation
for now

• Truncate the table data with the following SQL statement:

SQL> truncate table <SCHEMA>.UPGGENSET~;

For example, schema name can be SAPSR3

• The TRUNCATE statement will empty the table without deleting the table itself.
• The current phase checks this table for entries left
• If you truncate the table data, this long running phase will end within the next minutes and the upgrade
procedure will continue.

NOTE: SQL statements may differ for your database in use. Some databases may also not support the
TRUNCATE statement. For further information about the SQL statements, please refer to your database
documentation.

See Also

• KBA: 1989778 - FAQ: SGEN


• KBA: 1904239 - SUM options to change parameters entered in INITPUT and INITSUBST phases

Keywords

RUN_SGEN_GENER8, shadow instance,


MAIN_SHDIMP/SUBMOD_SHD2_RUN/SUBMOD_GEN_ABAP_LOAD/,

Products

SAP NetWeaver 2004


SAP NetWeaver 7.0
SAP NetWeaver 7.1
SAP NetWeaver 7.2
SAP NetWeaver 7.3
SAP NetWeaver 7.4
© 2022 SAP SE or an SAP affiliate company. All rights reserved 2 of 3
2022-03-27 2475935
SAP NetWeaver 7.5
SAP enhancement package 1 for SAP NetWeaver 7.0
SAP enhancement package 1 for SAP NetWeaver 7.3
SAP enhancement package 2 for SAP NetWeaver 7.0
SAP enhancement package 3 for SAP NetWeaver 7.0

This document refers to

SAP Note/KBA Title

1989778 FAQ: SGEN

1904239 SUM options to change parameters entered in INITPUT and INITSUBST phases

SGEN: FAQ

SUM for ABAP - Troubleshooting Guide: SGEN

Terms of use | Copyright | Trademark | Legal Disclosure | Privacy

© 2022 SAP SE or an SAP affiliate company. All rights reserved 3 of 3

You might also like