<?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 Initialization Event. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialization-event/m-p/3649593#M879020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the use of Initialization event and what we need to declare in Initialization event.&lt;/P&gt;&lt;P&gt;Plz answer quickly with an example,urgently needed?Points will be awarded undoubedly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 20 Apr 2008 06:19:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-20T06:19:21Z</dc:date>
    <item>
      <title>Initialization Event.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialization-event/m-p/3649593#M879020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the use of Initialization event and what we need to declare in Initialization event.&lt;/P&gt;&lt;P&gt;Plz answer quickly with an example,urgently needed?Points will be awarded undoubedly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Apr 2008 06:19:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialization-event/m-p/3649593#M879020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-20T06:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Initialization Event.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialization-event/m-p/3649594#M879021</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;Initialization is nothing but when the program starts to run the INITIALIZATION event 'll be called first... i.e, before start of selection this event 'll be called..... In initialization event u can initialize the variable values.&lt;/P&gt;&lt;P&gt;for eg:&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: A1 FOR MARA-MATNR.&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;A1-LOW = '100'.&lt;/P&gt;&lt;P&gt;A1-HIGH = '1000'.&lt;/P&gt;&lt;P&gt;APPEND A1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arunprasad.P&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Apr 2008 06:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialization-event/m-p/3649594#M879021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-20T06:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Initialization Event.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialization-event/m-p/3649595#M879022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Hi ajaya moharana,
&lt;STRONG&gt;INITIALIZATION&lt;/STRONG&gt;:It is triggered before the standard selection screen is displayed.

You can use it, for example, to initialize the input fields of the standard selection screen. This is the only possible way to change the default values of parameters or selection criteria defined in logical databases. To change a selection criterion, you must fill at least the components &amp;lt;seltab&amp;gt;-SIGN, 
&amp;lt;seltab&amp;gt;-OPTION, and &amp;lt;seltab&amp;gt;-LOW of the selection table &amp;lt;seltab&amp;gt;, otherwise it remains undefined.

To fill normal selection screen fields u can use You can use AT SELECTION-SCREEN OUTPUT event as well.

Ex:
&lt;PRE&gt;&lt;CODE&gt;PARAMETERS DATUM TYPE SY-DATUM DEFAULT SY-DATUM.

INITIALIZATION.
datum = sy-datum.&lt;/CODE&gt;&lt;/PRE&gt;

I hope that it helps u .

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Apr 2008 16:13:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialization-event/m-p/3649595#M879022</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-04-20T16:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Initialization Event.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialization-event/m-p/3649596#M879023</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;&lt;/P&gt;&lt;P&gt;In many cases you need to calculate the value and then put it in selection criteria. For example, say, you are accepting date from user and you need to fill in the default value for lower range as sy-datum ? 30 days and sy-datum for higher range. In this case you are calculating lower range and then filling the criteria. This can be done in INITIALIZATION event. Piece of code to do the above task would look like the following:&lt;/P&gt;&lt;P&gt;Tables: Sflight.&lt;/P&gt;&lt;P&gt;Select-options: fldate1 for sflight-fldate.&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;Data: date1 like SY-DATUM.&lt;/P&gt;&lt;P&gt;Date1 = sy-datum ? 30.&lt;/P&gt;&lt;P&gt;Fldate1-low = date1.&lt;/P&gt;&lt;P&gt;Fldate1-high = sy-datum.&lt;/P&gt;&lt;P&gt;Append fldate1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here appending is required because fldate1 is int? table &lt;/P&gt;&lt;P&gt;This event is triggered when you execute your program for the first time i.e., before selection screen is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. reward if useful....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 03:30:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialization-event/m-p/3649596#M879023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T03:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Initialization Event.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialization-event/m-p/3649597#M879024</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;To initalise the values to the selection screen parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection-screen : p_matnr like matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;P_matnr = '10290'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you execute the report the parameter value will be automatically 10290 &lt;/P&gt;&lt;P&gt;is assigned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise you can do manipulations too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection-screen : p_date  like sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;P_matnr =  sy-datum - 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will dynamically validates the sytem date by difference with &lt;/P&gt;&lt;P&gt;10 to the parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 06:06:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialization-event/m-p/3649597#M879024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T06:06:26Z</dc:date>
    </item>
  </channel>
</rss>

