<?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: Initialization in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161133#M457116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use the AT SELECTION SCREEN OUTPUT event to give the default values for the fields,this event also triggerd before the selection screen appear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/79/34a234d9b511d1950e0000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/79/34a234d9b511d1950e0000e8353423/content.htm&lt;/A&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2007 08:22:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-02T08:22:05Z</dc:date>
    <item>
      <title>Initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161126#M457109</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;Can i use At Selection-screen output in place of Initialization&lt;/P&gt;&lt;P&gt;for Initializing the default values on the selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds,&lt;/P&gt;&lt;P&gt;Vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 08:14:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161126#M457109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T08:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161127#M457110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initialization is for initializing value to the selection screen params..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen is for Validation..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your requirement?&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 08:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161127#M457110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T08:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161128#M457111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thinnk that  if these two are diferent events in the report programming than you have to declare them seperately..... intializing at At selection screen event ...will do the same things anyways....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jayant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 08:19:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161128#M457111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T08:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161129#M457112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No you cannot do that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION will trigger even before selection-screen is displayed , so the vales are updated and then displayed on selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN will trigger after the selection screen is displayed , so you cannot have your default values if u write it here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 08:19:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161129#M457112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T08:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161130#M457113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay&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;    This event occurs before the standard selection screen is called. 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, &lt;/P&gt;&lt;P&gt;&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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PBO of the selection screen, the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;AT SELECTION-SCREEN OUTPUT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;event is triggered. This event block allows you to modify the selection screen directly before it is displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Rk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 08:20:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161130#M457113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T08:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161131#M457114</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;For giving default values use directly default for parameters by giving value.&lt;/P&gt;&lt;P&gt;If you want ti manipulate the value of screen field, u have to do the processing in INITIALIZATION EVENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN OUTPUT is generally used if you want some filed to be displayed with some actions like marking a radiobutton or checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sandeep &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 08:21:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161131#M457114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T08:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161132#M457115</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 set default value you can add 'DEFAULT' statement in Selection_Screen like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: P_WERKS LIKE PA0001-WERKS OBLIGATORY DEFAULT 'IKPR'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or in INITIALIZATION event like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN BEGIN OF BLOCK BLC01 WITH FRAME TITLE TEXT-S10.
  SELECT-OPTIONS:  P_SPL   FOR SY-DATUM.
SELECTION-SCREEN END OF BLOCK BLC01.

INITIALIZATION.
  CONCATENATE SY-DATUM(4) SY-DATUM+4(2) '25' INTO P_SPL-HIGH.
  CONCATENATE SY-DATUM(4) SY-DATUM+4(2) '01' INTO P_SPL-LOW.
  P_SPL-LOW = P_SPL-LOW - 1.
  CONCATENATE P_SPL-LOW(4) P_SPL-LOW+4(2) '26' INTO P_SPL-LOW.
  APPEND P_SPL.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 08:22:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161132#M457115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T08:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161133#M457116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use the AT SELECTION SCREEN OUTPUT event to give the default values for the fields,this event also triggerd before the selection screen appear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/79/34a234d9b511d1950e0000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/79/34a234d9b511d1950e0000e8353423/content.htm&lt;/A&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 08:22:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161133#M457116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T08:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161134#M457117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Initialization : it is used for  declaration of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on the data for validating selection screen we use' At selection screen '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 08:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161134#M457117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T08:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161135#M457118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No: generally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but yes, if u want to initalize value after some data is entered in select-options...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 08:28:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161135#M457118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T08:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Initialization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161136#M457119</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 called only once i.e whenever user calls the program via transaction code.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT is called just before ever a selection screen is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_inp type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initialization.&lt;/P&gt;&lt;P&gt;  p_inp = p_inp + 1.&lt;/P&gt;&lt;P&gt;  " value will be 1&lt;/P&gt;&lt;P&gt;At selection-screen output.&lt;/P&gt;&lt;P&gt;  p_inp = p_inp + 2.&lt;/P&gt;&lt;P&gt;   "value will be prev + 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user presses F8 the value displayed in selection screen will be 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each and every time the user gives an 'ENTER' the value jumps by 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you need to be very careful while initializing values in AT SELECTION-SCREEN OUTPUT. If you want to initialize selection variables only one time use INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want initialization or defaulting happening before selection screen is displayed go in for AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters: p_inp type i,&lt;/P&gt;&lt;P&gt;                   p_uzeit type t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen.&lt;/P&gt;&lt;P&gt;  get time p_uzeit.  "time field is updated every time enter or any user action is &lt;/P&gt;&lt;P&gt;                             done on the selection screen.&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;S. Chandra Mouli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 09:20:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialization/m-p/2161136#M457119</guid>
      <dc:creator>former_member784222</dc:creator>
      <dc:date>2007-05-02T09:20:42Z</dc:date>
    </item>
  </channel>
</rss>

