<?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: trying to create a selection screen dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-create-a-selection-screen-dynamically/m-p/4840142#M1132304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Phani,&lt;/P&gt;&lt;P&gt;check this link &lt;A href="http://saptechnical.com/Tutorials/ABAP/ABAPMainPage.htm" target="test_blank"&gt;http://saptechnical.com/Tutorials/ABAP/ABAPMainPage.htm&lt;/A&gt; and you will find many examples on creating selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bala Duvvuri&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Dec 2008 03:56:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-09T03:56:12Z</dc:date>
    <item>
      <title>trying to create a selection screen dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-create-a-selection-screen-dynamically/m-p/4840137#M1132299</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;&lt;/P&gt;&lt;P&gt;My requirement is to fetch values from database table.A particular field in the table &lt;/P&gt;&lt;P&gt;has certain values,which i am supposed to create as radiobuttons.i.e&lt;/P&gt;&lt;P&gt;i need to pick the values and create a dynamic selection screen.&lt;/P&gt;&lt;P&gt;Can any one help me in this.&lt;/P&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;&lt;P&gt;Thanks in Advance!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 12:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-create-a-selection-screen-dynamically/m-p/4840137#M1132299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T12:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: trying to create a selection screen dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-create-a-selection-screen-dynamically/m-p/4840138#M1132300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please leaborate ur question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 09:10:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-create-a-selection-screen-dynamically/m-p/4840138#M1132300</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2008-12-08T09:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: trying to create a selection screen dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-create-a-selection-screen-dynamically/m-p/4840139#M1132301</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;Create the Dfferent Blocks on the selection screen....depending on the radio button display the corresponing block. For this use Loop at Screen....Endloop in the At Selection-screen Event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 09:12:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-create-a-selection-screen-dynamically/m-p/4840139#M1132301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T09:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: trying to create a selection screen dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-create-a-selection-screen-dynamically/m-p/4840140#M1132302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at this look it ma helpful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/abap%252bprogram%252bto%252bgenerate%252bselect-options%252bdynamically" target="test_blank"&gt;https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/abap%252bprogram%252bto%252bgenerate%252bselect-options%252bdynamically&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 09:18:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-create-a-selection-screen-dynamically/m-p/4840140#M1132302</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2008-12-08T09:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: trying to create a selection screen dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-create-a-selection-screen-dynamically/m-p/4840141#M1132303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MVPhani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u wish to create radio-buttons ( or check-boxes only )  dynamically, then u can achieve the same functionality using the below simpler alternative...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put a button and while clicking it show the list of possible values ( taken from ur DB table ).. based on the selection display ur report... something like F4 help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS : slis.

TYPES : BEGIN OF ty_radiobuttons,
        matnr  TYPE matnr,
        maktx  TYPE maktx,
        END  OF ty_radiobuttons.

DATA : lt_radiobuttons TYPE STANDARD TABLE OF ty_radiobuttons,
       ls_radiobutton  TYPE ty_radiobuttons,
       lt_fcat         TYPE slis_t_fieldcat_alv,
       ls_fcat         TYPE LINE OF slis_t_fieldcat_alv.

PARAMETER selvalue TYPE matnr.
SELECTION-SCREEN PUSHBUTTON 60(20) text USER-COMMAND push.

INITIALIZATION.
  MOVE 'Dynamic selection' TO text.

  SELECT matnr
         maktx
    FROM makt UP TO 10 ROWS
    INTO CORRESPONDING FIELDS OF TABLE lt_radiobuttons
   WHERE spras EQ sy-langu.

AT SELECTION-SCREEN .

  CASE sy-ucomm.
    WHEN 'PUSH'.
      PERFORM popup.
    WHEN OTHERS.
  ENDCASE.

START-OF-SELECTION.

END-OF-SELECTION.


*&amp;amp;---------------------------------------------------------------------*
FORM popup.

  DATA : selected_row TYPE slis_selfield,
         action.

  PERFORM build_fcat.

  CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
    EXPORTING
      i_selection   = 'X'
      i_zebra       = 'X'
      i_tabname     = 'LT_RADIOBUTTONS'
      it_fieldcat   = lt_fcat
    IMPORTING
      es_selfield   = selected_row
      e_exit        = action
    TABLES
      t_outtab      = lt_radiobuttons
    EXCEPTIONS
      program_error = 1
      OTHERS        = 2.

  CHECK sy-subrc EQ 0.
  CHECK action   NE 'X'.
  READ TABLE lt_radiobuttons INTO ls_radiobutton INDEX selected_row-tabindex.
  MOVE ls_radiobutton-matnr TO selvalue.
ENDFORM.                    "popup

*&amp;amp;---------------------------------------------------------------------*
FORM build_fcat.

  FREE lt_fcat.
  ls_fcat-fieldname = 'MATNR'.
  ls_fcat-seltext_l = 'Material'.
  ls_fcat-outputlen = '10'.
  APPEND ls_fcat TO lt_fcat. CLEAR ls_fcat.

  ls_fcat-fieldname = 'MAKTX'.
  ls_fcat-seltext_l = 'Description'.
  ls_fcat-outputlen = '20'.
  APPEND ls_fcat TO lt_fcat.
  CLEAR ls_fcat.
ENDFORM.                    "build_fcat&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 13:21:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-create-a-selection-screen-dynamically/m-p/4840141#M1132303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T13:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: trying to create a selection screen dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-create-a-selection-screen-dynamically/m-p/4840142#M1132304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Phani,&lt;/P&gt;&lt;P&gt;check this link &lt;A href="http://saptechnical.com/Tutorials/ABAP/ABAPMainPage.htm" target="test_blank"&gt;http://saptechnical.com/Tutorials/ABAP/ABAPMainPage.htm&lt;/A&gt; and you will find many examples on creating selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bala Duvvuri&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 03:56:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-create-a-selection-screen-dynamically/m-p/4840142#M1132304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-09T03:56:12Z</dc:date>
    </item>
  </channel>
</rss>

