<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Difference between Load - of - program &amp; Initialization ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393619#M191008</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;LOAD-OF-PROGRAM:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;      The system always &amp;lt;b&amp;gt;automatically&amp;lt;/b&amp;gt; processes this event when a program of type 1 (online report), type M (module pool), type F (function group) or S (subroutine pool) is loaded into an internal mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;INITIALIZATION:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Before the selection screen the event will be triggered. We can this event only in Executable programs. i.e Report programs. This event is optional. whether we can use or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Selvapandian Arunachalam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Jun 2006 07:33:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-17T07:33:14Z</dc:date>
    <item>
      <title>Difference between Load - of - program &amp; Initialization ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393612#M191001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the "Difference between Load - of - program &amp;amp; Initialization "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;R.Kripa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jun 2006 04:37:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393612#M191001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-17T04:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Load - of - program &amp; Initialization ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393613#M191002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The corresponding event is triggered in an internal session immediately after a program with type 1, M, F, or S is loaded. The corresponding processing block is processed once per program and internal session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The processing block LOAD-OF-PROGRAM has approximately the same function in an ABAP program with type 1, M, F, or S as the constructor method of a class in ABAP Objects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Programs wiht type 1, M, F, or S can be loaded into an internal session in two ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program calls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever you call a program using SUBMIT or a transaction code, a new internal session is opened. The LOAD-OF-PROGRAM event is therefore called in each program call. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;External procedure calls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first time you call an external procedure (subroutine or function module), the main program of the procedure that you called is loaded into the internal session of the calling program. The eventLOAD-OF-PROGRAM is triggered and the corresponding processing block is executed before the procedure that you called. However, subsequent calls from the same calling program to a procedure in the same subroutine pool or function group do not trigger the LOAD-OF-PROGRAM event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it's before the program is loaded in the memory for execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initialization:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(For executable programs of type 1), the associated event is executed before the selection screen is displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameters (PARAMETERS) and selection criteria (SELECT-OPTIONS) defined in the program already contain default values (if specified). You can assign different values here and also change the database-specific selections. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Define the last day of the previous month as the key date: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS QUAL_DAY TYPE D DEFAULT SY-DATUM. &lt;/P&gt;&lt;P&gt;INITIALIZATION. &lt;/P&gt;&lt;P&gt;  QUAL_DAY+6(2) = '01'. &lt;/P&gt;&lt;P&gt;  QUAL_DAY      = QUAL_DAY - 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, the default value of QUAL_DAY is the current date, e.g. 05.04.88 (QUAL_DAY = '19880405'). Two subseqent statements set the date first to the beginning of the month, e.g. 01.04.88 (QUAL_DAY = '19880401') and then, by subtracting one day, to the last day of the previous month, e.g. 31.03.88 (QUAL_DAY = '19880331'). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so load-of-program before program is loaded in the main memory is excuted and initialization is done before selection screen of the program is displayed..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds&lt;/P&gt;&lt;P&gt;gunjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jun 2006 05:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393613#M191002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-17T05:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Load - of - program &amp; Initialization ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393614#M191003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gunjan Kumar,&lt;/P&gt;&lt;P&gt;Thanks anyway .... but what will be the coding inside the event ????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;R.Kripa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jun 2006 06:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393614#M191003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-17T06:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Load - of - program &amp; Initialization ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393615#M191004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load-of-program is used internally from SAP to load the program in the main meory for execution and it's internal processing...there's a separate subroutine and system level program involved ..to get the program loaded taking into account all the OS level details....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;gunjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jun 2006 06:50:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393615#M191004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-17T06:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Load - of - program &amp; Initialization ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393616#M191005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey Gunjan Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so do we not code "LOAD-OF-PROGRAM" while writing a program??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it automatically called / executed ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;R.Kripa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jun 2006 06:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393616#M191005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-17T06:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Load - of - program &amp; Initialization ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393617#M191006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i dont think u have to enter anything in this event..just go about coding and it'll be called at run time on it's own..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gunjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jun 2006 07:01:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393617#M191006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-17T07:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Load - of - program &amp; Initialization ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393618#M191007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you don't have to code 'LOAD-OF-PROGRAM' in program it is automatically called by system to load program memory area for variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can write it in your program if you want to do some thing before the 'INITIALIZATION' event because 'LOAD-OF-PROGRAM' is called before the 'INITIALIZATION' event'..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;write:/ '2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load-of-program.&lt;/P&gt;&lt;P&gt;write:/ '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output will be &lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wasim Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jun 2006 07:08:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393618#M191007</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-06-17T07:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Load - of - program &amp; Initialization ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393619#M191008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;LOAD-OF-PROGRAM:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;      The system always &amp;lt;b&amp;gt;automatically&amp;lt;/b&amp;gt; processes this event when a program of type 1 (online report), type M (module pool), type F (function group) or S (subroutine pool) is loaded into an internal mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;INITIALIZATION:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Before the selection screen the event will be triggered. We can this event only in Executable programs. i.e Report programs. This event is optional. whether we can use or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Selvapandian Arunachalam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jun 2006 07:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393619#M191008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-17T07:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Load - of - program &amp; Initialization ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393620#M191009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;LOAD-OF-PROGRAM &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;First event to be called before any of the other ABAP code is processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;INITIALIZATION &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Called after the abap selection screen code has been processed (i.e. parameters, select-options etc) but before these are displayed to the user. So you can use it to initialize input fields of the selection screen or change the default values of these before the user gets to enter data into them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 10:10:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393620#M191009</guid>
      <dc:creator>gbanik_in</dc:creator>
      <dc:date>2014-01-06T10:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Load - of - program &amp; Initialization ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393621#M191010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gourab,&lt;/P&gt;&lt;P&gt;please see this is a thread of 2006, so please do not reply .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 10:15:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-load-of-program-initialization/m-p/1393621#M191010</guid>
      <dc:creator>former_member187748</dc:creator>
      <dc:date>2014-01-06T10:15:43Z</dc:date>
    </item>
  </channel>
</rss>

