<?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: how to create dynamic selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090015#M1181534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lavanya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon execute, list should NOT be created instead data should be downloaded to an excel file.&lt;/P&gt;&lt;P&gt;How to capture the list in our z-program with out having the list to be created?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Sujith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2009 11:32:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-03T11:32:39Z</dc:date>
    <item>
      <title>how to create dynamic selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090007#M1181526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to get a dynamic selection screen for the table same as SE16&lt;/P&gt;&lt;P&gt;The only difference is, upon execute the output has to be downloaded to an excel file instead of list that gets created by SE16&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Sujith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 10:03:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090007#M1181526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T10:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to create dynamic selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090008#M1181527</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;please refer  &lt;STRONG&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2074043"&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;here is the code of creating dynamic selection screen:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;************************************************************************
TABLES: kna1.
************************************************************************
* Internal Tables                                                      *
************************************************************************
DATA: i_filetable TYPE filetable.
************************************************************************
* Screen Parameters                                                    *
************************************************************************
* Begin - Block 1
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: r_local RADIOBUTTON GROUP rad1 USER-COMMAND flg, "Local
            r_server RADIOBUTTON GROUP rad1 DEFAULT 'X'.     "Server
* Begin - Block 2
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETER: p_local  LIKE rlgrap-filename DEFAULT 'C:\' OBLIGATORY.
PARAMETER: p_server LIKE rlgrap-filename DEFAULT '/default' OBLIGATORY.
* End - Block 2
SELECTION-SCREEN END OF BLOCK b2.
* Begin - Block 3
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
SELECT-OPTIONS: s_kunnr FOR kna1-kunnr, "Customer Number 1
                s_land1 FOR kna1-land1. "Country Key
* End - Block 3
SELECTION-SCREEN END OF BLOCK b3.
* End - Block 1
SELECTION-SCREEN END OF BLOCK b1.
************************************************************************
* At Selection Screen OUTPUT                                           *
************************************************************************
AT SELECTION-SCREEN OUTPUT.
* Check what radiobutton is selected
* Local
  IF r_local = 'X'.
    LOOP AT SCREEN.
      IF "screen-name = 'P_LOCAL'. " OR
         screen-name = '%_P_LOCAL_%_APP_%-TEXT'.
        screen-invisible = '0'.
        screen-input = '1'.
        MODIFY SCREEN.
      ELSEIF screen-name = 'P_SERVER'. " OR
             screen-name = '%_P_SERVER_%_APP_%-TEXT'.
        screen-invisible = '1'.
        screen-input = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
* Server
  ELSE.
    LOOP AT SCREEN.
      IF screen-name = 'P_SERVER' OR
         screen-name = '%_P_SERVER_%_APP_%-TEXT'.
        screen-invisible = '0'.
        screen-input = '0'.
        MODIFY SCREEN.
      ELSEIF screen-name = 'P_LOCAL' OR
             screen-name = '%_P_LOCAL_%_APP_%-TEXT' OR
             screen-name = '%_S_KUNNR_%_APP_%-TEXT' OR
             screen-name = '%_S_KUNNR_%_APP_%-OPTI_PUSH' OR
             screen-name = 'S_KUNNR-LOW' OR
             screen-name = '%_S_KUNNR_%_APP_%-TO_TEXT' OR
             screen-name = 'S_KUNNR-HIGH' OR
             screen-name = '%_S_KUNNR_%_APP_%-VALU_PUSH'.             .
        screen-invisible = '1'.
        screen-input = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.
************************************************************************
* At Selection Screen ON VALUE REQUEST                                 *
************************************************************************
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_local.
  PERFORM filename_local CHANGING p_local.
************************************************************************
START-OF-SELECTION.
************************************************************************
************************************************************************
* Forms                                                                *
************************************************************************
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  filename_local
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
FORM filename_local CHANGING p_file TYPE rlgrap-filename.
  DATA: vl_rc           TYPE i,
        vl_action       TYPE i.
* Open the File Open Dialog
  CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog
    EXPORTING
      file_filter             = ''
      initial_directory       = 'C:\'
    CHANGING
      file_table              = i_filetable
      rc                      = vl_rc
      user_action             = vl_action
    EXCEPTIONS
      file_open_dialog_failed = 1
      cntl_error              = 2
      error_no_gui            = 3
      not_supported_by_gui    = 4
      OTHERS                  = 5.
  IF sy-subrc &amp;lt;&amp;gt; 0 OR vl_rc &amp;lt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ELSE.
    IF vl_action EQ cl_gui_frontend_services=&amp;gt;action_ok.
      CLEAR p_file.
      READ TABLE i_filetable INDEX 1 INTO p_file.
    ENDIF.
  ENDIF.
ENDFORM.                               " filename_local&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;rahul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: RAHUL SHARMA on Feb 3, 2009 11:08 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 10:06:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090008#M1181527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T10:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to create dynamic selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090009#M1181528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requement is similar to SE16&lt;/P&gt;&lt;P&gt;The only difference is upon execute, instead of list the data should be downloaded to a file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Sujith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 10:18:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090009#M1181528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T10:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to create dynamic selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090010#M1181529</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;first create parameter for table name....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then call se16 like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'DTB' FIELD p_table.&lt;/P&gt;&lt;P&gt;  CALL TRANSACTION 'SE16'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it wil goes to se16 with table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then execute the table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then goto   menu  EDIT&lt;DEL&gt;-&amp;gt; Download&lt;/DEL&gt;-&amp;gt;it wil ask u to to select file formate..&lt;/P&gt;&lt;P&gt;    select file formate ,path &lt;/P&gt;&lt;P&gt;Then click on genarate &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File downloaded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 10:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090010#M1181529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T10:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to create dynamic selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090011#M1181530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Search in the Wiki section with the text &lt;STRONG&gt;dynamic selection screen&lt;/STRONG&gt;. You will find many examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 10:24:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090011#M1181530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T10:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to create dynamic selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090012#M1181531</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;Is my understanding rite&lt;/P&gt;&lt;P&gt;u have ZSE16 , from which u will provide a table name and want to control the fields for selection &lt;/P&gt;&lt;P&gt;and on execute want to download to excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Lavanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 10:24:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090012#M1181531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T10:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to create dynamic selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090013#M1181532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Lavanya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right!!! that is what i need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Sujith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 10:27:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090013#M1181532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T10:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to create dynamic selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090014#M1181533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sujith&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create ZSE16 a report program with selection screen where u can input table name&lt;/P&gt;&lt;P&gt;and on selection of table name call SE16 and let the selection of fields remain as SE16 provides&lt;/P&gt;&lt;P&gt;Settings-&amp;gt;Feilds for selection. on execute the data which is prepared for list output display can be downloaded using GUI_DOWNLOAD. Incase you dont want to control fields selection as present in SE16 then a z table needs to be created which will hold the fields which needs to be visible or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know incase of any further clarifications&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Lavanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 10:55:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090014#M1181533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T10:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to create dynamic selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090015#M1181534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lavanya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon execute, list should NOT be created instead data should be downloaded to an excel file.&lt;/P&gt;&lt;P&gt;How to capture the list in our z-program with out having the list to be created?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Sujith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 11:32:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090015#M1181534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T11:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to create dynamic selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090016#M1181535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sujith,&lt;/P&gt;&lt;P&gt;   Following is the sample code to call the selection screen dynamically hope this helps you ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters :&lt;/P&gt;&lt;P&gt;  a type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of screen 100.&lt;/P&gt;&lt;P&gt;  parameters :&lt;/P&gt;&lt;P&gt;    b type i.&lt;/P&gt;&lt;P&gt;selection-screen end of screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;  call selection-screen 100.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 21:10:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090016#M1181535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T21:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to create dynamic selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090017#M1181536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;on pressing F8, &lt;/P&gt;&lt;P&gt;call the function gui_download and dont use write statements, list will not be created...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 21:15:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-dynamic-selection-screen/m-p/5090017#M1181536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T21:15:49Z</dc:date>
    </item>
  </channel>
</rss>

