<?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: Dynamic Selection Options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-options/m-p/1441267#M209835</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;Thank you for your valuable suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, I am doing exactly as you had stated. But the user wants to see it something like this:&lt;/P&gt;&lt;P&gt; 1. For the selection options, he wants to see three box's.&lt;/P&gt;&lt;P&gt;   a. Technical Name of the field selection.&lt;/P&gt;&lt;P&gt;   b. Box 2 and 3 are for lower and higher limits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 2. He should be in a position to ADD new selection i.e (more than one selection options dynamically with a click of a button)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; 3. Eg:&lt;/P&gt;&lt;P&gt;    Table: VBAP&lt;/P&gt;&lt;P&gt;    Selection Options:&lt;/P&gt;&lt;P&gt;    VBELN 100 to 200&lt;/P&gt;&lt;P&gt;Click the button to add another selection option&lt;/P&gt;&lt;P&gt;    POSNR = 10 to 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GPK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jul 2006 15:50:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-17T15:50:09Z</dc:date>
    <item>
      <title>Dynamic Selection Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-options/m-p/1441264#M209832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is something like this:&lt;/P&gt;&lt;P&gt;  1. The user enters the technical name of the table.&lt;/P&gt;&lt;P&gt;  2. The users enter a number of selection options to &lt;/P&gt;&lt;P&gt;     fetch the data from the table user enters. The &lt;/P&gt;&lt;P&gt;     number of selections options need to be dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please let me know, which way I need to go in order to get this report done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GPK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jul 2006 23:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-options/m-p/1441264#M209832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-15T23:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Selection Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-options/m-p/1441265#M209833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should look at the code of SE16 transaction, it does exactly the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jul 2006 01:25:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-options/m-p/1441265#M209833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-16T01:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Selection Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-options/m-p/1441266#M209834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this code , this program display the output in ALV for the entered table name (any), also fetchs the records based on the entered number of rows on the selection screen. you can give where condition also, based on where condition it will bring the rows from the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT y_test LINE-SIZE 250 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: slis. " ALV Global Types&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ty_work ,&lt;/P&gt;&lt;P&gt;buffer(30000),&lt;/P&gt;&lt;P&gt;END OF ty_work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : work LIKE ty_work OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;ws_rec LIKE sy-tabix,&lt;/P&gt;&lt;P&gt;ws_repname LIKE tbprogref-progname,&lt;/P&gt;&lt;P&gt;ws_tabname LIKE dd03l-tabname,&lt;/P&gt;&lt;P&gt;i_fields LIKE dd03l OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;ws_flag(1) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;d&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 0 OF STRUCTURE work TO &amp;lt;d&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS : p_mandt LIKE t000-mandt,&lt;/P&gt;&lt;P&gt;p_rows LIKE rseumod-tbmaxsel DEFAULT 100.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: FUNCTION KEY 1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS : p_tab LIKE dd03l-tabname OBLIGATORY MEMORY ID dtb,&lt;/P&gt;&lt;P&gt;p_opt LIKE rfc_db_opt-text.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS :&lt;/P&gt;&lt;P&gt;&amp;lt;lt_data&amp;gt; TYPE table. " Data to display&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;lp_table TYPE REF TO data,&lt;/P&gt;&lt;P&gt;ls_layout TYPE slis_layout_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;wa&amp;gt; TYPE ANY, &amp;lt;comp&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;ASSIGN work TO &amp;lt;wa&amp;gt; CASTING TYPE (p_tab).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CREATE DATA lp_table TYPE STANDARD TABLE OF (p_tab)&lt;/P&gt;&lt;P&gt;WITH NON-UNIQUE DEFAULT KEY.&lt;/P&gt;&lt;P&gt;ASSIGN lp_table-&amp;gt;* TO &amp;lt;lt_data&amp;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;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE p_opt TO UPPER CASE. "#EC SYNTCHAR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT * FROM (p_tab)&lt;/P&gt;&lt;P&gt;CLIENT SPECIFIED&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE &amp;lt;lt_data&amp;gt;&lt;/P&gt;&lt;P&gt;UP TO p_rows ROWS&lt;/P&gt;&lt;P&gt;WHERE mandt = p_mandt&lt;/P&gt;&lt;P&gt;AND (p_opt)&lt;/P&gt;&lt;P&gt;ORDER BY PRIMARY KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE &amp;lt;lt_data&amp;gt; LINES ws_rec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_layout-zebra = 'X'.&lt;/P&gt;&lt;P&gt;ls_layout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_structure_name = p_tab&lt;/P&gt;&lt;P&gt;is_layout = ls_layout&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = &amp;lt;lt_data&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Appana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*reward points for useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jul 2006 06:43:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-options/m-p/1441266#M209834</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-16T06:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Selection Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-options/m-p/1441267#M209835</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;Thank you for your valuable suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, I am doing exactly as you had stated. But the user wants to see it something like this:&lt;/P&gt;&lt;P&gt; 1. For the selection options, he wants to see three box's.&lt;/P&gt;&lt;P&gt;   a. Technical Name of the field selection.&lt;/P&gt;&lt;P&gt;   b. Box 2 and 3 are for lower and higher limits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 2. He should be in a position to ADD new selection i.e (more than one selection options dynamically with a click of a button)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; 3. Eg:&lt;/P&gt;&lt;P&gt;    Table: VBAP&lt;/P&gt;&lt;P&gt;    Selection Options:&lt;/P&gt;&lt;P&gt;    VBELN 100 to 200&lt;/P&gt;&lt;P&gt;Click the button to add another selection option&lt;/P&gt;&lt;P&gt;    POSNR = 10 to 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GPK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 15:50:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-options/m-p/1441267#M209835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T15:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Selection Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-options/m-p/1441268#M209836</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;In that case create a ADD button in the application toolbar , whenever user press this button after entering the table name in selection screen ,dispaly all table fields using FM : ISB_TABLE_READ_FIELDS (or directly read fields from table DD03L) in ALV list with five columns &lt;/P&gt;&lt;P&gt;1.checkbox&lt;/P&gt;&lt;P&gt;2.fieldname&lt;/P&gt;&lt;P&gt;3.from value&lt;/P&gt;&lt;P&gt;4.to value &lt;/P&gt;&lt;P&gt;5.AND/OR option &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then user will select the required fields with checkboxces and range in 'from' and 'to' columns and also he can select 'And/Or' options . based on his selection generate where condition and pass to the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Appana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 19:34:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-options/m-p/1441268#M209836</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-17T19:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Selection Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-options/m-p/1441269#M209837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Appana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your valuable suggestion. I will try this logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a pseudo kind off, it would be great. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GPK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 14:00:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-options/m-p/1441269#M209837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T14:00:47Z</dc:date>
    </item>
  </channel>
</rss>

