Skip to Content
author's profile photo Former Member
Former Member

Custom execute button in selection screen


I am designing a selection screen where it is required that the execute button on the selection screen should download all RICEF ID related BRF entries for the selected Business Area.The selection should be for multiple selections

If only one business area is selected the name of the downloaded file should be as follows:

Example for RTC, it will be RTC_BRF_Value Table_Date(09/16/2013)

If all are selected then, it will be BRF_Date (09/16/2013)

Can anyone please suggest me how to design custom execute button for this requirement..

Thanks In Advance...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2013 at 08:19 AM


    There are 2 questions here.

    1.Display an execute button in your report

    2.Download table entries.

    For Part 1.

    1. Its suggested not to make changes to your default selection screen (screen number 1000) since they are dynamically created.
    2. You could add a new screen 9999 to your report (via the object list CTRL+SHIFT+F5 , Right click > Create new Screen)
    3. Add a new PBO and PAI to this screen.
    4. Create a new PF-STATUS for this report. Add all the buttons you need in the PF-Status.
    5. Use SET PF-STATUS command in your screen 9999 PBO.
    6. If you are adding a new screen to the report, the programming style becomes similar to MODULE POOL.

    For Part 2.

    Please supply more information about your requirement.

    Hope this helps.


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Umesh,

      Point # 4

      This is your basic report logic here. I am not fully versed with your requirement. But I will help as much as I can.

      1. Fetch all necessary data from db for the given select-option.
      2. Loop at all the business areas specified by the user in the select option.
      3. Since you mentioned downloading table entries, you will have to use FM : 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.

      I guess you will have to start working and let us know when you get stuck at some point.

      There are lot of posts on SCN on GUI_DOWNLOAD and related FMs.

      Hope I helped.


  • Posted on Sep 20, 2013 at 09:59 AM

    I donĀ“t think you need a `custom` execute button for this.

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.