<?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 program structure for a report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-structure-for-a-report/m-p/2112550#M441735</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;could any one clarify whether &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization event is to be  written first or &lt;/P&gt;&lt;P&gt;selection-screen begin of block is to be written.plz tell whether this affects performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a report with the following structure.plz correct me if i'm wrong&lt;/P&gt;&lt;P&gt;1)DB table declaration&lt;/P&gt;&lt;P&gt;2) internal tables declaration and ranges decltn&lt;/P&gt;&lt;P&gt;3)ALV variables &amp;amp; internal tables&lt;/P&gt;&lt;P&gt;4)constants &amp;amp; variables&lt;/P&gt;&lt;P&gt;5)initialization&lt;/P&gt;&lt;P&gt;6)selection-screen(begin of block-end of block)&lt;/P&gt;&lt;P&gt;7)at selection-screen on value req&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; at selection-screen&lt;/P&gt;&lt;P&gt;9)start-of-selection&lt;/P&gt;&lt;P&gt;10)end-of-selection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2007 04:35:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-04T04:35:03Z</dc:date>
    <item>
      <title>program structure for a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-structure-for-a-report/m-p/2112550#M441735</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;could any one clarify whether &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization event is to be  written first or &lt;/P&gt;&lt;P&gt;selection-screen begin of block is to be written.plz tell whether this affects performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a report with the following structure.plz correct me if i'm wrong&lt;/P&gt;&lt;P&gt;1)DB table declaration&lt;/P&gt;&lt;P&gt;2) internal tables declaration and ranges decltn&lt;/P&gt;&lt;P&gt;3)ALV variables &amp;amp; internal tables&lt;/P&gt;&lt;P&gt;4)constants &amp;amp; variables&lt;/P&gt;&lt;P&gt;5)initialization&lt;/P&gt;&lt;P&gt;6)selection-screen(begin of block-end of block)&lt;/P&gt;&lt;P&gt;7)at selection-screen on value req&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; at selection-screen&lt;/P&gt;&lt;P&gt;9)start-of-selection&lt;/P&gt;&lt;P&gt;10)end-of-selection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 04:35:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-structure-for-a-report/m-p/2112550#M441735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T04:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: program structure for a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-structure-for-a-report/m-p/2112551#M441736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mamatha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initilaization eventt is to be written first, rather than going for selection-screen begin of block .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coming to your code structure, this should be the order. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1,2,4,3,5,6,7,8,9,10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 04:39:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-structure-for-a-report/m-p/2112551#M441736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T04:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: program structure for a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-structure-for-a-report/m-p/2112552#M441737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Mamatha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The structure for a program is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;TYPES (Including TYPE-POOLS)&lt;/P&gt;&lt;P&gt;CONSTANTS&lt;/P&gt;&lt;P&gt;DATA&lt;/P&gt;&lt;P&gt;INFOTYPES ( HR  Specific)&lt;/P&gt;&lt;P&gt;INTERNAL TABLES&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS&lt;/P&gt;&lt;P&gt;FIELD-GROUPS&lt;/P&gt;&lt;P&gt;INSERT&lt;/P&gt;&lt;P&gt;CONTROLS&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS&lt;/P&gt;&lt;P&gt;PARAMETERS&lt;/P&gt;&lt;P&gt;INITIALISATION&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;START-OF-SELECTION&lt;/P&gt;&lt;P&gt;GET&lt;/P&gt;&lt;P&gt;END-OF-SELECTION&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION&lt;/P&gt;&lt;P&gt;AT PFXX&lt;/P&gt;&lt;P&gt;AT USER-COMMAND&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE&lt;/P&gt;&lt;P&gt;END-OF-PAGE&lt;/P&gt;&lt;P&gt;FORM&lt;/P&gt;&lt;P&gt;CLASS&lt;/P&gt;&lt;P&gt;METHOD&lt;/P&gt;&lt;P&gt;INTERFACES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps u.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thasneem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 04:39:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-structure-for-a-report/m-p/2112552#M441737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T04:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: program structure for a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-structure-for-a-report/m-p/2112553#M441738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;5)selection-screen(begin of block-end of block)&lt;/P&gt;&lt;P&gt;6)initialization&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization is an event and selection-screen(begin of block-end of block)&lt;/P&gt;&lt;P&gt;id the declaration of selection screen so it is good practice to declare all the variables and selection screen before the event and then only code the events.. i dont think it will decrease  in any performance but it is a good practice...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 04:42:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-structure-for-a-report/m-p/2112553#M441738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T04:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: program structure for a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-structure-for-a-report/m-p/2112554#M441739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Mamatha,&lt;/P&gt;&lt;P&gt;first you write Begin of block -- selection screen.&lt;/P&gt;&lt;P&gt;then you write Initilization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initilization is an event, by which the selection screen is automatically filled and modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection screen on value request, at selection-screen are the events of selection screen processing after the user entered the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a clear idea is  initilization is -- PBO and At selection-screen is PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhanunjay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 04:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-structure-for-a-report/m-p/2112554#M441739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T04:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: program structure for a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-structure-for-a-report/m-p/2112555#M441740</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 should come first  .Whaterver we declare in the initialization part will work before the screen id displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 05:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-structure-for-a-report/m-p/2112555#M441740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T05:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: program structure for a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-structure-for-a-report/m-p/2112556#M441741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mamatha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is absolutely no need of worrying about which should come first and which next...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anything is fine...whether INITIALIZATION coming first or vice-versa. and further, there is no connection of this with performance. Infact, let me tell you that PERFORMANCE comes into picture only when u r accessing the database or when u r processing large internal tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;and regarding the order of ur report:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Its fine! How ever, for more readability, u can swap the 5th and 6th steps, so that all the events are grouped at one place and all the data declarations above them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And let me tell u one important thing: Don't allow the data declaration to happen in SELECTION-SCREEN events, it will not be global.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u understand me completely&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 17:18:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-structure-for-a-report/m-p/2112556#M441741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T17:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: program structure for a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-structure-for-a-report/m-p/2112557#M441742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mamatha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Performance will not come into this picture.&lt;/P&gt;&lt;P&gt;Anyway selection screen will be triggered first though you write initialization event first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 17:41:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-structure-for-a-report/m-p/2112557#M441742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T17:41:57Z</dc:date>
    </item>
  </channel>
</rss>

