Archived discussions are read-only. Learn more about SAP Q&A

CRM Webclient UI - Generation of views after system restart / upgrade


we realized that the SGEN will not generate the CRM Webclient UI Views. This means after system restart or upgrade the first load of each view is slow because of generation.

Is there a kind of solution out for this issue? Report or something else?

Thank you

Best regards


  • SAP Employee


BSP page are a bit more tricky then normal ABAP code. Usually SGEN simply generates the load/runtime object of a class or report. For a BSP page this is not sufficient. A BSP page is a special dev object. In order to run it the BSP page compiler needs to generate a local ABAP class for it. Once this local class exists a runtime object needs to be generate for it as usual.

The report BSP_WD_RECOMPILE_APPL simply determines all the implementation classes and enforces the generation of runtime objects by triggering a runtime type identification. This will fail in case a class contains syntax errors or a local class for a page does not yet exist.

The better a faster way is using SGEN. Here two things are required:

- Generation of BSP Applications and

- one of the load generation options, e.g. Regenerate existing loads.

So SGEN needs to run at least twice! The first run will enforce the page compiler to generate the local classes, the second generates the loads. For good runtime of SGEN it is usually sufficient to regenerate invalid existing loads and not everything.

Hope that helps!

Best regards,


0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question