<?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: Report with Selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941560#M63279</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;don't use INITIALIZATION event to load a status gui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to load it in selection screen use AT SELECTION-SCREEN OUTPUT, if you want to load it in your list use START-OF-SELECTION. So:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT&lt;/P&gt;&lt;P&gt;set pf-status '123'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION&lt;/P&gt;&lt;P&gt;set pf-status '123'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Sep 2005 14:52:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-29T14:52:15Z</dc:date>
    <item>
      <title>Report with Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941559#M63278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a stupid report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the initialization event I have put that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;set pf-status '123'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the start of selection/at user-command &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-ucomm is empty ... any idea is welcome &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD PROMISED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: STEPHAN KAMINSKI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 14:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941559#M63278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T14:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Report with Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941560#M63279</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;don't use INITIALIZATION event to load a status gui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to load it in selection screen use AT SELECTION-SCREEN OUTPUT, if you want to load it in your list use START-OF-SELECTION. So:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT&lt;/P&gt;&lt;P&gt;set pf-status '123'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION&lt;/P&gt;&lt;P&gt;set pf-status '123'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 14:52:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941560#M63279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T14:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Report with Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941561#M63280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have choosen the wrong event for setting status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/de/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/de/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 14:53:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941561#M63280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T14:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Report with Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941562#M63281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stephan - sy-ucomm will be empty until the user presses a PF key or selects a line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The pf keys have to be defined in status '123'. Double click on it to define it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check sy-ucomm at user-command or at line-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rob Burbank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 14:57:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941562#M63281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T14:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Report with Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941563#M63282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oK MAX &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i have to put the code then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at user-command or &lt;/P&gt;&lt;P&gt;at selection-screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to handle the user action!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 14:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941563#M63282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T14:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Report with Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941564#M63283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want my report to have a selection screen with some additional button!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I want to treat the user action&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 14:59:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941564#M63283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T14:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Report with Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941565#M63284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initialization event is not used for setting the PF status. It is basically used for assigning values to variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PF STATUS is an event which should be used either in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN OUTPUT OR&lt;/P&gt;&lt;P&gt;START OF SELECTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Untill and uliess you click the key the function code will not be copied to the sy-ucomm field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 15:02:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941565#M63284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T15:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Report with Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941566#M63285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THIS IS THE CODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF itab OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE zconvention.&lt;/P&gt;&lt;P&gt;DATA :  name1 LIKE lfa1-name1.&lt;/P&gt;&lt;P&gt;DATA : END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;selection-screen.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_conv      FOR zconvention-conv,&lt;/P&gt;&lt;P&gt;                s_lifnr     FOR zconvention-lifnr,&lt;/P&gt;&lt;P&gt;                s_erdat     FOR zconvention-erdat,&lt;/P&gt;&lt;P&gt;                s_datab     FOR zconvention-datab,&lt;/P&gt;&lt;P&gt;                s_datbi     FOR zconvention-datbi,&lt;/P&gt;&lt;P&gt;                s_descr     FOR zconvention-descrip,&lt;/P&gt;&lt;P&gt;                s_refr      FOR zconvention-refr,&lt;/P&gt;&lt;P&gt;                s_kostl     FOR zconvention-kostl,&lt;/P&gt;&lt;P&gt;                s_gest      FOR zconvention-gestion,&lt;/P&gt;&lt;P&gt;                s_ornam     FOR zconvention-ornam,&lt;/P&gt;&lt;P&gt;                s_adrs1     FOR zconvention-adrs1,&lt;/P&gt;&lt;P&gt;                s_adrs2     FOR zconvention-adrs2,&lt;/P&gt;&lt;P&gt;                s_adrs3     FOR zconvention-adrs3,&lt;/P&gt;&lt;P&gt;                s_zenga     FOR zconvention-zengagm,&lt;/P&gt;&lt;P&gt;                s_waers     FOR zconvention-waers,&lt;/P&gt;&lt;P&gt;                s_montan    FOR zconvention-montant,&lt;/P&gt;&lt;P&gt;                s_divers    FOR zconvention-divers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS '0001' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  break devsopra.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it doesn't work :((((&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 15:03:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941566#M63285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T15:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Report with Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941567#M63286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see following code as example for your requirement.&lt;/P&gt;&lt;P&gt;REPORT demo_sel_screen_function_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES sscrfields.

PARAMETERS: p_carrid TYPE s_carr_id,
            p_cityfr TYPE s_from_cit.

SELECTION-SCREEN: FUNCTION KEY 1,
                  FUNCTION KEY 2.

INITIALIZATION.
  sscrfields-functxt_01 = 'LH'.
  sscrfields-functxt_02 = 'UA'.

AT SELECTION-SCREEN.
  CASE sscrfields-ucomm.
      WHEN'FC01'.
      p_carrid = 'LH'.
      p_cityfr = 'Frankfurt'.
    WHEN 'FC02'.
      p_carrid = 'UA'.
      p_cityfr = 'Chicago'.
  ENDCASE.

START-OF-SELECTION.
  WRITE / 'START-OF-SELECTION'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 15:06:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941567#M63286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T15:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Report with Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941568#M63287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECTION-SCREEN PUSHBUTTON fmt name USER-COMMAND ucom. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN FUNCTION KEY &amp;lt;Number&amp;gt;. "This is for displaying in Application Toolbar. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following help documentation..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN PUSHBUTTON fmt name USER-COMMAND ucom. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition: MODIF ID modid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Generates a pushbutton on the selection screen. When you define the button, you also define a user command ucom (no inverted commas), up to 20 characters long, which is triggered when the user pushes the button. The rest of the syntax is the same as for SELECTION-SCREEN COMMENT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can define the name name either statically or at runtime (see also the BEGIN OF BLOCK, COMMENT and SELECTION-SCREEN BEGIN OF SCREEN variants). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you define a pushbutton, you must always specify a format fmt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By specifying a Modif ID, you can assign the pushbutton to a modification group. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;The best way of reacting to the pushbutton is in the AT SELECTION-SCREEN event, or, for pushbuttons in the selection include, in the PAI routine (with FNAME = '*' and MARK = SPACE) in the database program SAPDBldb. The field SSCRFIELDS-UCOMM contains the user command ucom. (You need to declare the SSCRFIELDS table using the TABLES statement). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create your own pushbuttons in the application toolbar using the FUNCTION KEY n addition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within the selectoin include : Additions FOR NODE node ,FOR TABLE dbtab und ID id. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;TABLES SSCRFIELDS. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN PUSHBUTTON /10(20) CHARLY USER-COMMAND ABCD. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION. &lt;/P&gt;&lt;P&gt;MOVE 'My text' TO CHARLY. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN. &lt;/P&gt;&lt;P&gt;IF SSCRFIELDS-UCOMM = 'ABCD'. &lt;/P&gt;&lt;P&gt;... &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;A pushbutton appears on the selection screen with the text 'My text'. In the AT SELECTION-SCREEN event, the field SSCRFIELDS-UCOMM has the contents ABCD after the button has been pushed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 15:08:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941568#M63287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T15:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Report with Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941569#M63288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to use Gui Status in selection screen different from the standard one use FM 'RS_SET_SELSCREEN_STATUS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/e7/0eb237e29bc368e10000009b38f8cf/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/e7/0eb237e29bc368e10000009b38f8cf/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Svetlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 16:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-with-selection-screen/m-p/941569#M63288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T16:17:05Z</dc:date>
    </item>
  </channel>
</rss>

