Question: why we run sgen in sap?
Answer: - 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. ... 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.