‎2005 Apr 27 6:05 PM
Hi All!
Could anybody tell me what exactly is the difference between Load-of-program and initialization using a sample program?
Thanks in advance...
Jag.
‎2005 Apr 27 6:13 PM
Hi Jag
It seems not so much difference. But INITIALIZATION block is peculiar to executables.
<b>INITIALIZATION</b>: Only occurs in executable programs. The ABAP runtime environment triggers the INITIALIZATION event before the selection screen is processed, at which point the corresponding event block is processed.
<b>LOAD-OF-PROGRAM</b>: When an ABAP program is loaded in an internal session, the runtime environment triggers the LOAD-OF-PROGRAM event, and the corresponding event block is executed.
Regards
*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>
‎2005 Apr 27 6:42 PM
The Load-of-program event is absolutely necessary for setting the state of an Object Services based transaction. You must initialize the OO Transaction Model at this event. Initialization is too late.
*----------------------------------------------------------------------*
* LOAD-OF-PROGRAM *
*----------------------------------------------------------------------*
load-of-program.
cl_os_system=>init_and_set_modes(
i_external_commit = oscon_false
i_update_mode = oscon_dmode_update_task_sync ).
‎2005 Apr 29 7:07 PM
Hi Thomas and Serder,
thanks for your replies...they were quite helpful for me.
regards,
Jag