<?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 Reports in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/3751034#M902409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I can assign default values to parameters then why should I use Initialization event or is it got any other advantages in reports?Kindly reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2008 12:28:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-24T12:28:09Z</dc:date>
    <item>
      <title>Reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/3751034#M902409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I can assign default values to parameters then why should I use Initialization event or is it got any other advantages in reports?Kindly reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 12:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/3751034#M902409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T12:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/3751035#M902410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;During INITIALIZATION the standard values for parameters or selection criteria, which are declared in logical databases, can be changed. To change a selection criterion, you must fill at least the components seltab-sign, seltab-option and seltab-low of the selection table seltab, otherwise it remains undefined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This event occurs before the standard selection screen is called. During this event block, the input fields of the standard selection screen can only be initialized once after the program has been started. If an executable program declares a standard selection screen the same program will be automatically called again by the system once the selection screen has been executed. This triggers the INITIALIZATION  event again. It is important to note however that the initialization of parameters or selection criteria will not have an effect because at this point the value of the AT SELECTION-SCREEN OUTPUT is assigned using the previous user inputs. Only the remaining global fields which were set during INITIALIZATION are initialized during each program run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details, please have a look at below link.&lt;/P&gt;&lt;P&gt;[INITIALIZATION|http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9a2135c111d1829f0000e829fbfe/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vibha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark all the useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 12:31:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/3751035#M902410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T12:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/3751036#M902411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a parameter it doesn't make a difference if you set a default value or set the value in initialization, but for select-options it makes a difference because in initialization you can set complex ranges which you can't by setting a default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition in initialization you can retrieve the default for a certain parameter / select-option from the database or based on certain conditions (e.g. different values for different users).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 12:32:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/3751036#M902411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T12:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/3751037#M902412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;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;In contrast to R/2 , this event is also executed during background processing.&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;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;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;Note&lt;/P&gt;&lt;P&gt;In more precise terms, INITIALIZATION is executed in the following steps:&lt;/P&gt;&lt;P&gt;Specify default values for the selections. Execute the event INITIALIZATION. Import variant (if used to start the report). On SUBMIT , the values specified for each WHERE clause are also transferred, if necessary. Execute the event AT SELECTION-SCREEN OUTPUT , if it occurs in the report (unlike INITIALIZATION , this event is always executed for PBO of a selection screen). Display selection screen. Transport the screen fields containing user input to the report fields. Continue with START-OF-SELECTION .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;Since INITIALIZATION is only executed once when you start the report, it is not suitable for screen modifications such as suppressing individual parameters (LOOP AT SCREEN , MODIFY SCREEN ) because these changes would disappear again when the user pressed ENTER. The correct event for screen modifications is AT SELECTION-SCREEN OUTPUT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9a2135c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9a2135c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 12:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/3751037#M902412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T12:36:46Z</dc:date>
    </item>
  </channel>
</rss>

