<?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 screen fetching the value from table fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-fetching-the-value-from-table-fields/m-p/2366885#M524135</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;This can solve your problem, but I dontthink its an IDEAL solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF SCREEN 9001.&lt;/P&gt;&lt;P&gt;*Here give the list of SELECT-OPTIONS and&lt;/P&gt;&lt;P&gt;PARAMTERS as you wish for the table.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then once the FIELDS are selected to be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SELECTION-SCREEN 9001.&lt;/P&gt;&lt;P&gt;And then use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;Here hide the fields that you dont want&lt;/P&gt;&lt;P&gt;Or Activate the fields you want.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen 9001 will not be shown till the point you use CALL SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2007 05:54:53 GMT</pubDate>
    <dc:creator>seshatalpasai_madala</dc:creator>
    <dc:date>2007-08-13T05:54:53Z</dc:date>
    <item>
      <title>dynamic selection screen fetching the value from table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-fetching-the-value-from-table-fields/m-p/2366883#M524133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have one table say ztable...and i should create a dynamic selection screen which should populate the selection screen by the table field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example..if i have 3 fields im my table..my selection screen should have three selection option fields..and in future if i add one more field in my table it should automatically create another slection-option in selection screen..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;jaideep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 05:57:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-fetching-the-value-from-table-fields/m-p/2366883#M524133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T05:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic selection screen fetching the value from table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-fetching-the-value-from-table-fields/m-p/2366884#M524134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everyone &lt;/P&gt;&lt;P&gt;i have a similar problem it cud be of gr8 help if anyone can help me on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;cnu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 05:47:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-fetching-the-value-from-table-fields/m-p/2366884#M524134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T05:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic selection screen fetching the value from table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-fetching-the-value-from-table-fields/m-p/2366885#M524135</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;This can solve your problem, but I dontthink its an IDEAL solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF SCREEN 9001.&lt;/P&gt;&lt;P&gt;*Here give the list of SELECT-OPTIONS and&lt;/P&gt;&lt;P&gt;PARAMTERS as you wish for the table.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then once the FIELDS are selected to be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SELECTION-SCREEN 9001.&lt;/P&gt;&lt;P&gt;And then use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;Here hide the fields that you dont want&lt;/P&gt;&lt;P&gt;Or Activate the fields you want.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen 9001 will not be shown till the point you use CALL SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 05:54:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-fetching-the-value-from-table-fields/m-p/2366885#M524135</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-08-13T05:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic selection screen fetching the value from table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-fetching-the-value-from-table-fields/m-p/2366886#M524136</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;for this kind of requirement u need to create a dynamic program.for that u need to use the function module RSS_TEMPLATE_INSTANTIATE.see the doccumentation of the funtion module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZDYN_SELSCR.&lt;/P&gt;&lt;P&gt;DATA:T_ABAPSOURCE LIKE ABAPSOURCE OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;"table which holds the sorce code for dynamic selection screen creation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RSS_TEMPLATE_INSTANTIATE'"function module for creating the program dynamically to create dynamic sel screen&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_TEMPLATE = '&amp;lt;b&amp;gt;ZDYN_TEMP&amp;lt;/b&amp;gt;' "template(include program)&lt;/P&gt;&lt;P&gt;I_PROGRAM_NAME = 'ZDYN_PROG' "program that is to be created dynamicaly to create sel screen(this is just name)&lt;/P&gt;&lt;P&gt;I_PROGRAM_TYPE = '1' "type '1' indicates EXECUTABLE program&lt;/P&gt;&lt;P&gt;I_META_OBJECT = 'MARA' "meta object(give ur table name)&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;E_T_PROGRAM_SOURCE = T_ABAPSOURCE. "this table holds the source code to create sel screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT REPORT 'ZDYN_PROG' FROM T_ABAPSOURCE."inserting source code into program from table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GENERATE REPORT 'ZDYN_PROG'. "generating the dynamically generated program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT ZDYN_PROG VIA SELECTION-SCREEN AND RETURN.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ZDYN_PROG&amp;lt;/b&amp;gt;:&lt;/P&gt;&lt;P&gt;*@data: tabname like dfies-tabname.&lt;/P&gt;&lt;P&gt;*@DATA:H_NUM(3) TYPE N VALUE 1.&lt;/P&gt;&lt;P&gt;*@DATA:SEL_OPT(8).&lt;/P&gt;&lt;P&gt;*@DATA:FT_ZTMW_HEADER_COM TYPE DFIES OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;*@tabname = i_meta_object.&lt;/P&gt;&lt;P&gt;REPORT z\i_meta_object\.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:\i_meta_object\.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*@call function 'GET_FIELDTAB'&lt;/P&gt;&lt;P&gt;*@ exporting&lt;/P&gt;&lt;P&gt;*@ only = 'X'&lt;/P&gt;&lt;P&gt;*@ tabname = tabname&lt;/P&gt;&lt;P&gt;*@ withtext = ' '&lt;/P&gt;&lt;P&gt;*@ tables&lt;/P&gt;&lt;P&gt;*@ fieldtab = FT_ZTMW_HEADER_COM&lt;/P&gt;&lt;P&gt;*@ exceptions&lt;/P&gt;&lt;P&gt;*@ internal_error = 1&lt;/P&gt;&lt;P&gt;*@ no_texts_found = 2&lt;/P&gt;&lt;P&gt;*@ table_has_no_fields = 3&lt;/P&gt;&lt;P&gt;*@ table_not_activ = 4&lt;/P&gt;&lt;P&gt;*@ others = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*@LOOP AT FT_ZTMW_HEADER_COM.&lt;/P&gt;&lt;P&gt;*@CONCATENATE 'HEAD' H_NUM INTO SEL_OPT.&lt;/P&gt;&lt;P&gt;select-options \SEL_OPT\ for \tabname\-\FT_ZTMW_HEADER_COM-FIELDNAME\.&lt;/P&gt;&lt;P&gt;*@H_NUM = H_NUM + 1.&lt;/P&gt;&lt;P&gt;*@ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;*@H_NUM = 1.&lt;/P&gt;&lt;P&gt;*@LOOP AT FT_ZTMW_HEADER_COM.&lt;/P&gt;&lt;P&gt;*@CONCATENATE 'HEAD' H_NUM INTO SEL_OPT.&lt;/P&gt;&lt;P&gt;%_\SEL_OPT\_%_APP_%-TEXT = '\FT_ZTMW_HEADER_COM-SCRTEXT_s\'.&lt;/P&gt;&lt;P&gt;*@H_NUM = H_NUM + 1.&lt;/P&gt;&lt;P&gt;*@endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Bharat Kalagara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 06:05:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-screen-fetching-the-value-from-table-fields/m-p/2366886#M524136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T06:05:13Z</dc:date>
    </item>
  </channel>
</rss>

