<?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 one simple question. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-simple-question/m-p/2794333#M652101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;        Can any one tell me which event in Reports(Initialization,At selection-screen,on field,output,start-of-selection,end-of-selection) is similar to PBO event of Module pool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points are rewarded for correct answer .&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;Priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Sep 2007 09:20:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-07T09:20:51Z</dc:date>
    <item>
      <title>one simple question.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-simple-question/m-p/2794333#M652101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;        Can any one tell me which event in Reports(Initialization,At selection-screen,on field,output,start-of-selection,end-of-selection) is similar to PBO event of Module pool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points are rewarded for correct answer .&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;Priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 09:20:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-simple-question/m-p/2794333#M652101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T09:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: one simple question.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-simple-question/m-p/2794334#M652102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The event is : AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 09:22:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-simple-question/m-p/2794334#M652102</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-09-07T09:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: one simple question.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-simple-question/m-p/2794335#M652103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,  AT SELECTION-SCREEN OUTPUT is the event which executes before displaying of 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;Sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 09:28:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-simple-question/m-p/2794335#M652103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T09:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: one simple question.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-simple-question/m-p/2794336#M652104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u explain me in detail both the events?  AND&lt;/P&gt;&lt;P&gt;What is the difference between pbo and at selection-screen output.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 09:35:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-simple-question/m-p/2794336#M652104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T09:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: one simple question.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-simple-question/m-p/2794337#M652105</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;At Selction-Screen Output can be said to be equivalent to PBO .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now as PBO is the processing done before the screen is displayed in a module pool , in the same way for reports if you want to do some processing before the selection screen is displayed , you can write your code in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Few operations are&lt;/P&gt;&lt;P&gt;1. Assign initial values to input , but each time you go to selection screen there values will be assigned irrespective of the input you gave.&lt;/P&gt;&lt;P&gt;The scenario i am talking about is&lt;/P&gt;&lt;P&gt;Selection Screen --&amp;gt; Program Execution --&amp;gt; Report --&amp;gt; Back to Seelction Screen.&lt;/P&gt;&lt;P&gt;If you assign intial value here irrespecive of what value you gave as input the value u assign in this event will be shown in the selectionscreen (2)&lt;/P&gt;&lt;P&gt;So it is better to use initialization to assign initial values , as it is executed only once&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. A more important purpose is suppose you have 2 radiobuttons and about 6 fields as input , when u select one radio button and u want 3 fields to be disable and other enabled , you write code to do this in at selection-screen output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 09:40:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-simple-question/m-p/2794337#M652105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T09:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: one simple question.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-simple-question/m-p/2794338#M652106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT is executed in the generated dynpro (1000 or so) in PBO MODULE PBO_REPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 09:45:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-simple-question/m-p/2794338#M652106</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-09-07T09:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: one simple question.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-simple-question/m-p/2794339#M652107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both Initialization and AT SELECTION SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your PBO, &lt;/P&gt;&lt;P&gt;If you have a date field...just try like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO----&amp;gt;&lt;/P&gt;&lt;P&gt;if date is not initial.&lt;/P&gt;&lt;P&gt;p_date = sy-datum.&lt;/P&gt;&lt;P&gt;endif.&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;Hari krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Sep 2007 18:41:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-simple-question/m-p/2794339#M652107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-08T18:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: one simple question.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/one-simple-question/m-p/2794340#M652108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link: - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/different-types-of-selection-screens.htm" target="test_blank"&gt;http://www.sap-img.com/abap/different-types-of-selection-screens.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... OUTPUT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This event is executed at PBO of the selection screen every time the user presses ENTER - in contrast to INITIALIZATION. Therefore, this event is not suitable for setting selection screen default values. Also, since AT SELECTION-SCREEN OUTPUT is first executed after the variant is imported (if a variant is used) and after adopting any values specified under SUBMIT in the WITH clause, changing the report parameters or the selection options in AT SELECTION-SCREEN OUTPUT would destroy the specified values. &lt;/P&gt;&lt;P&gt;Here, however, you can use LOOP AT SCREEN or MODIFY SCREEN to change the input/output attributes of selection screen fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Output all fields of the SELECT-OPTION NAME highlighted: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS NAME FOR SY-REPID MODIF ID XYZ. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT. &lt;/P&gt;&lt;P&gt;LOOP AT SCREEN. &lt;/P&gt;&lt;P&gt;CHECK SCREEN-GROUP1 = 'XYZ'. &lt;/P&gt;&lt;P&gt;SCREEN-INTENSIFIED = '1'. &lt;/P&gt;&lt;P&gt;MODIFY SCREEN. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The addition MODIF ID XYZ to the key word SELECT-OPTIONS assigns all fields of the selection option NAME to a group you can read in the field SCREEN-GROUP1. At PBO of the selection screen, all these fields are then set to highlighted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can have all info about at selection-screen, if you enter it into an ABAP editor (SE38) and press F1 on the text...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT is triggered before showing the selection-screen so it's used to change the attributes of the input/output fields (like parameter and select-option). For example it can use to hide some fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-NAME = &amp;lt;......&amp;gt;.&lt;/P&gt;&lt;P&gt;SCREEN-ACTIVE = 0.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Sep 2007 18:56:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/one-simple-question/m-p/2794340#M652108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-08T18:56:43Z</dc:date>
    </item>
  </channel>
</rss>

