<?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 events in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2404087#M535787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what happens if we write select statement in initialization event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2007 15:34:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-19T15:34:44Z</dc:date>
    <item>
      <title>events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2404087#M535787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what happens if we write select statement in initialization event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 15:34:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2404087#M535787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T15:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2404088#M535788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data will be retrieved before even the selection screen is displayed to the user.&lt;/P&gt;&lt;P&gt;Sometimes it is required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F.g if i want to default the Printer name paramter with  defualt printer of a user then we need to select the data in initialization like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;SELECT SINGLE spld INTO p_printer WHERE bname = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when the program is executed the selection screen parameter P_PRINTER  will have the printer name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if its useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 15:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2404088#M535788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T15:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2404089#M535789</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;Nothing will happen..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 15:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2404089#M535789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T15:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2404090#M535790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Select would be executed without any problems....But your going to be able to filter by using Parameters or Select-Options -:) You will need to filter later....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 15:40:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2404090#M535790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T15:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2404091#M535791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It is not only the parameters default value&lt;/P&gt;&lt;P&gt;which are required/accessed/controlled&lt;/P&gt;&lt;P&gt;in initialization event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a program there are so many variables,&lt;/P&gt;&lt;P&gt;the values of these variables&lt;/P&gt;&lt;P&gt;can be set in intiailization event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Such values sometimes cannot be hardcoded.&lt;/P&gt;&lt;P&gt;They may be requried to fetch from database&lt;/P&gt;&lt;P&gt;or do some calculations,&lt;/P&gt;&lt;P&gt;(which is not possible while declaration&lt;/P&gt;&lt;P&gt;data and parameters)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Sometimes, some variant can also be imported&lt;/P&gt;&lt;P&gt;for selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This event is invoked directly after LOAD-OF-PROGRAM and before the selection screen processing of any existing standard selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives you the one-time opportunity to initialize the input fields of the selection screen, including those defined in the logical database linked with the program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When run in background, values initialized in initialization event are considered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg: if you want to initialize like this:&lt;/P&gt;&lt;P&gt;carrid-sign = 'I'. &lt;/P&gt;&lt;P&gt;carrid-option = 'EQ'. &lt;/P&gt;&lt;P&gt;carrid-low = 'AA'. &lt;/P&gt;&lt;P&gt;carrid-high = 'LH'. &lt;/P&gt;&lt;P&gt;APPEND carrid TO carrid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot achieve this by giving 'default' or 'value' at selection-screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 16:10:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2404091#M535791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T16:10:33Z</dc:date>
    </item>
  </channel>
</rss>

