Pages

Tuesday, 10 September 2013

Running SAP Load Generator SGEN after new installation or upgrade

What is SGEN?
- In new SAP Systems no ABAP is compiled until it is called for the first time.
- Each time a user starts an uncompiled ABAP he has to wait quite a long time for the ABAP to compile, seen as an "Compiling hourglass" in the SAPGUI.
- All used ABAPs are saved in the table "REPOLOAD“.
- SGEN is used to regenerate existing loads, which are compiled ABAPs.
- Each time an ABAP or its dependency is changed, it needs to be compiled again.
- SGEN should be run after every Support Package or upgrade, because the ABAP sources have been changed
- SGEN needs a lot of performance, recommend to run it when few users are accessing the system e.g. on the weekend
- The runtime of SGEN depends on your SAP-System.
- It is recommended to restart the system after SGEN is finished.

By running TCODE: SGEN (SAP Load Generator) to generate the ABAP loads of a number of programs, function groups, classes, and so on after new installation or upgrade.

Steps:

1) After installation or upgrade, program execution would require it to be compile or load as shown below and it take time to startup the program for the first time

2) Execute TCODE: SGEN (Select all for new installation or any other required option)


3) Select all or the relevant software components and click "Continue" button

4) Click "Continue" button

5) Use the Job monitor to view the running status

6) Example of the Job Monitor screen

7) Execute TCODE: SM50 to view the batch job processing details

8) Sample of the batch job details

9)  Sample of the batch job details

10) The process would normally required couple hours to be complete....




2 comments:

  1. Good informative article. The information that you have provided in your post. It is really helpful. I had never though about that but some of the ideas here i really like.

    ReplyDelete
  2. Great article. Specially lot of thanks for explaining what it is, what it does and why it is required. Thanks again!

    ReplyDelete