<?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: Custom execute button in selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724262#M1771476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Umesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I can understand from your above requirement please view these pointers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I would suggest building a normal report. Dont add new screens or buttons. &lt;/LI&gt;&lt;LI&gt;Allow User to pass all the business areas (single or multiple) as input data. i.e your basic select option. You must choose whether to disble/enable your select &lt;STRONG&gt;TO option&lt;/STRONG&gt;. The arrow you see will allow the user to enter multiple business areas.&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/284362" width="450" /&gt;&lt;/LI&gt;&lt;LI&gt;Start of Selection event must have the logic as you specified:-&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;...download all RICEF id related BRF table entries for the selected business area.&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;For each business area that is input by the user you will need to perform Naming of the files as per business area and GUI_DOWNLOAD to save as text file. Be it Single or Multiple business areas I think the same logic can be executed if placed correctly within a &lt;STRONG&gt;LOOP statement.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Use the &lt;STRONG&gt;CONCATENATE&lt;/STRONG&gt; statement to name your files before saving them.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand this is a basic report program. Go ahead and start working on the program. &lt;/P&gt;&lt;P&gt;GOOD LUCK &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1826/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Sep 2013 13:01:28 GMT</pubDate>
    <dc:creator>m4abrams</dc:creator>
    <dc:date>2013-09-23T13:01:28Z</dc:date>
    <item>
      <title>Custom execute button in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724255#M1771469</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;I am designing a selection screen where it is required that the execute button on the selection screen should &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;download all RICEF ID related BRF entries for the selected Business Area.&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;The selection should be for multiple selections &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If only one business area is selected the name of the downloaded file should be as follows:&lt;/P&gt;&lt;P&gt;Example for RTC, it will be RTC_BRF_Value Table_Date(09/16/2013) &lt;/P&gt;&lt;P&gt;If all are selected then, it will be BRF_Date (09/16/2013)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please suggest me how to design custom execute button for this requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In Advance...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 07:30:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724255#M1771469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-20T07:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Custom execute button in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724256#M1771470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don´t think you need a `custom` execute button for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can execute the program normally and check in your at selection screen if single or multiple selection has been filled in and change the filename accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 09:59:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724256#M1771470</guid>
      <dc:creator>PeterJonker</dc:creator>
      <dc:date>2013-09-20T09:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom execute button in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724257#M1771471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but how to download the entries from the table based on selection???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 07:58:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724257#M1771471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-23T07:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Custom execute button in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724258#M1771472</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;There are 2 questions here. &lt;/P&gt;&lt;P&gt;1.Display an execute button in your report&lt;/P&gt;&lt;P&gt;2.Download table entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Part 1.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Its suggested not to make changes to your default selection screen (screen number 1000) since they are dynamically created.&lt;/LI&gt;&lt;LI&gt;You could add a new screen 9999 to your report (via the object list CTRL+SHIFT+F5 , Right click &amp;gt; Create new Screen)&lt;/LI&gt;&lt;LI&gt;Add a new PBO and PAI to this screen.&lt;/LI&gt;&lt;LI&gt;Create a new PF-STATUS for this report. Add all the buttons you need in the PF-Status.&lt;/LI&gt;&lt;LI&gt;Use SET PF-STATUS command in your screen 9999 PBO.&lt;/LI&gt;&lt;LI&gt;If you are adding a new screen to the report, the programming style becomes similar to MODULE POOL.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;For Part 2.&lt;/P&gt;&lt;P&gt;Please supply more information about your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Abraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 08:19:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724258#M1771472</guid>
      <dc:creator>m4abrams</dc:creator>
      <dc:date>2013-09-23T08:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Custom execute button in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724259#M1771473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To create button on selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy the Standard PF-STATUS and create Z***.&lt;/P&gt;&lt;P&gt;Add your button FC01, FC02...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;AT SELECTION&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SCREEN&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CASE &lt;/SPAN&gt;sscrfields&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;ucomm&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHEN &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'FC01'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -Do your code&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;AT &lt;SPAN class="L0S52"&gt;SELECTION-SCREEN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OUTPUT&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SET &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;PF-STATUS &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Z***'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 08:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724259#M1771473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-23T08:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Custom execute button in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724260#M1771474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some remarks :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;To add up to 4 buttons (without copying standard status) use syntax &lt;A href="http://help.sap.com/abapdocu_731/en/abapselection-screen_pushbutton.htm"&gt;SELECTION-SCREEN PUSHBUTTON&lt;/A&gt;. (Their values will be FC01 to FC04)&lt;/LI&gt;&lt;LI&gt;If you need more than 5 buttons (or for aesthetic reasons) On a selection-screen SET PF-STATUS wont change the status (&lt;A href="http://help.sap.com/abapdocu_731/en/abenselection_screen_overview.htm"&gt;ref&lt;/A&gt;), use FM &lt;SPAN class="lnkgrey"&gt;RS_SET_SELSCREEN_STATUS.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 08:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724260#M1771474</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-09-23T08:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Custom execute button in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724261#M1771475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Starlet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is - &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Selection screen should have business area having multiple selection option.Also it must have a execute button which will download all RICEF id related BRF table entries for the selected business area.&lt;/P&gt;&lt;P&gt;If only one business area is selected the name of the downloaded file should be as follows:&lt;/P&gt;&lt;P&gt;Example for RTC, it will be RTC_BRF_Value Table_Date(09/16/2013) &lt;/P&gt;&lt;P&gt;If all are selected then, it will be BRF_Date (09/16/2013)&lt;/P&gt;&lt;P&gt;Downloaded file can be a text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 10:02:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724261#M1771475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-23T10:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom execute button in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724262#M1771476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Umesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I can understand from your above requirement please view these pointers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I would suggest building a normal report. Dont add new screens or buttons. &lt;/LI&gt;&lt;LI&gt;Allow User to pass all the business areas (single or multiple) as input data. i.e your basic select option. You must choose whether to disble/enable your select &lt;STRONG&gt;TO option&lt;/STRONG&gt;. The arrow you see will allow the user to enter multiple business areas.&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/284362" width="450" /&gt;&lt;/LI&gt;&lt;LI&gt;Start of Selection event must have the logic as you specified:-&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;...download all RICEF id related BRF table entries for the selected business area.&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;For each business area that is input by the user you will need to perform Naming of the files as per business area and GUI_DOWNLOAD to save as text file. Be it Single or Multiple business areas I think the same logic can be executed if placed correctly within a &lt;STRONG&gt;LOOP statement.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Use the &lt;STRONG&gt;CONCATENATE&lt;/STRONG&gt; statement to name your files before saving them.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand this is a basic report program. Go ahead and start working on the program. &lt;/P&gt;&lt;P&gt;GOOD LUCK &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1826/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 13:01:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724262#M1771476</guid>
      <dc:creator>m4abrams</dc:creator>
      <dc:date>2013-09-23T13:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom execute button in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724263#M1771477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Starlet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain point no.4 in detail,If possible with an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 09:56:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724263#M1771477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-24T09:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Custom execute button in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724264#M1771478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Umesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Point # 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is your basic report logic here. I am not fully versed with your requirement. But I will help as much as I can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Fetch all necessary data from db for the given select-option.&lt;/LI&gt;&lt;LI&gt;Loop at all the business areas specified by the user in the select option.&lt;/LI&gt;&lt;LI&gt;Since you mentioned downloading table entries, you will have to use &lt;STRONG&gt;FM :&lt;/STRONG&gt; GUI_DOWNLOAD or similar FMs to download the contents of your itab to the local PC. Within the loop you will need to write the logic to name your file. Any other processing or logic which will be applicable to all business areas needs to also be done here.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you will have to start working and let us know when you get stuck at some point. &lt;/P&gt;&lt;P&gt;There are lot of posts on SCN on GUI_DOWNLOAD and related FMs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I helped.&lt;/P&gt;&lt;P&gt;Abraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 10:41:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-execute-button-in-selection-screen/m-p/9724264#M1771478</guid>
      <dc:creator>m4abrams</dc:creator>
      <dc:date>2013-09-24T10:41:04Z</dc:date>
    </item>
  </channel>
</rss>

