<?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 dynamic table name, how to query? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-name-how-to-query/m-p/1569735#M257245</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;There is a table name that is decided dynamically. the name is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;someNameYYY where YYY denotes the client number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the client number by sy-mandt and concatenate it with someNameYYY to lc_table_name but then comes the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM  lc_table_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because I get compiler error "lc_table_name" is not defined in ABAP dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I query a table with the name decided dynamically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Baran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Sep 2006 11:00:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-08T11:00:06Z</dc:date>
    <item>
      <title>dynamic table name, how to query?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-name-how-to-query/m-p/1569735#M257245</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;There is a table name that is decided dynamically. the name is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;someNameYYY where YYY denotes the client number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the client number by sy-mandt and concatenate it with someNameYYY to lc_table_name but then comes the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM  lc_table_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because I get compiler error "lc_table_name" is not defined in ABAP dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I query a table with the name decided dynamically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Baran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 11:00:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-name-how-to-query/m-p/1569735#M257245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T11:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic table name, how to query?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-name-how-to-query/m-p/1569736#M257246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use..&lt;/P&gt;&lt;P&gt;read table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 11:02:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-name-how-to-query/m-p/1569736#M257246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T11:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic table name, how to query?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-name-how-to-query/m-p/1569737#M257247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    lv_table = 'MARA'.&lt;/P&gt;&lt;P&gt;select * from ( lv_table ).&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 11:03:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-name-how-to-query/m-p/1569737#M257247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T11:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic table name, how to query?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-name-how-to-query/m-p/1569738#M257248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;u need to conactenate the sy-mandt and other string..but provided that should be a ur table name..&lt;/P&gt;&lt;P&gt;and the write select as follows.&lt;/P&gt;&lt;P&gt;tablename = &amp;gt; conactenate ur strings&lt;/P&gt;&lt;P&gt;select field1 field2&lt;/P&gt;&lt;P&gt;from ( tablename)===&amp;gt;which can be vary &lt;/P&gt;&lt;P&gt;into i_tab&lt;/P&gt;&lt;P&gt;where condition..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 11:04:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-name-how-to-query/m-p/1569738#M257248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T11:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic table name, how to query?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-name-how-to-query/m-p/1569739#M257249</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;REPORT demo_select_dynamic_database . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA wa TYPE scarr. &lt;/P&gt;&lt;P&gt;DATA name(10) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move your table name to &amp;lt;Name&amp;gt; i mean &lt;/P&gt;&lt;P&gt;MOVE lc_table_name  to Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT * &lt;/P&gt;&lt;P&gt;INTO wa &lt;/P&gt;&lt;P&gt;FROM (name) CLIENT SPECIFIED &lt;/P&gt;&lt;P&gt;WHERE mandt = '000'. &lt;/P&gt;&lt;P&gt;WRITE: / wa-carrid, wa-carrname. &lt;/P&gt;&lt;P&gt;ENDSELECT.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 11:05:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-name-how-to-query/m-p/1569739#M257249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T11:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic table name, how to query?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-name-how-to-query/m-p/1569740#M257250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks... that solved the problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Baran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 11:05:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-name-how-to-query/m-p/1569740#M257250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T11:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic table name, how to query?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-name-how-to-query/m-p/1569741#M257251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can have do something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZTABLE_DOWNLOAD .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables :&lt;/P&gt;&lt;P&gt;dd02l,    "SAP Tables&lt;/P&gt;&lt;P&gt;dd03l,    "Table fields&lt;/P&gt;&lt;P&gt;dd04t.    "R/3 DD: Data element texts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants : c_activation_status(1)  value 'A',&lt;/P&gt;&lt;P&gt;           c_tabclass(6) type c    value 'INTTAB',&lt;/P&gt;&lt;P&gt;           c_language(2) type c    value 'EN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools : slis.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-003.&lt;/P&gt;&lt;P&gt;*parameters :p_mandt like t001-mandt obligatory default '560'.&lt;/P&gt;&lt;P&gt;parameters :p_table like dd03l-tabname obligatory.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;table_desc(70) type c,&lt;/P&gt;&lt;P&gt;table_field like dd03l-fieldname,&lt;/P&gt;&lt;P&gt;total_rows type i,&lt;/P&gt;&lt;P&gt;t_rows(20) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols:&lt;/P&gt;&lt;P&gt;&amp;lt;fs_line&amp;gt; type any,&lt;/P&gt;&lt;P&gt;&amp;lt;fs_field&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Check for the existence of the table&lt;/P&gt;&lt;P&gt; select single * from dd02l where tabname  = p_table&lt;/P&gt;&lt;P&gt;                            and   as4local = c_activation_status.&lt;/P&gt;&lt;P&gt; if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;*Table is not active in dictionary&lt;/P&gt;&lt;P&gt;   message e999(zs) with 'Table is not active in dictionary'.&lt;/P&gt;&lt;P&gt; elseif dd02l-tabclass = c_tabclass.&lt;/P&gt;&lt;P&gt;*It is a structure not a table&lt;/P&gt;&lt;P&gt;   message e999(zs) with 'This is a structure not a table'.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt; perform table_data_display.&lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form table_data_display.&lt;/P&gt;&lt;P&gt; data:&lt;/P&gt;&lt;P&gt; l_long_type type i,&lt;/P&gt;&lt;P&gt; lx_struct   type ref to data,&lt;/P&gt;&lt;P&gt; lt_table    type ref to data,&lt;/P&gt;&lt;P&gt; lcl_sdescr  type ref to cl_abap_structdescr,&lt;/P&gt;&lt;P&gt; lx_lvc_cat  type lvc_s_fcat,&lt;/P&gt;&lt;P&gt; lt_lvc_cat  type lvc_t_fcat,         "Field catalog&lt;/P&gt;&lt;P&gt; lx_fieldcat type slis_fieldcat_alv,&lt;/P&gt;&lt;P&gt; lt_fieldcat type slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt; lx_layout   type slis_layout_alv,&lt;/P&gt;&lt;P&gt; lt_sort     type slis_t_sortinfo_alv, "Sort table&lt;/P&gt;&lt;P&gt; ls_sort     type slis_sortinfo_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; field-symbols :&lt;/P&gt;&lt;P&gt; &amp;lt;fieldcat&amp;gt;    type slis_fieldcat_alv,&lt;/P&gt;&lt;P&gt; &amp;lt;lt_table&amp;gt;    type table,&lt;/P&gt;&lt;P&gt; &amp;lt;fs&amp;gt;          type any,&lt;/P&gt;&lt;P&gt; &amp;lt;components&amp;gt;  type abap_compdescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Dynamic creation of a structure&lt;/P&gt;&lt;P&gt; create data lx_struct type (p_table).&lt;/P&gt;&lt;P&gt; assign lx_struct-&amp;gt;* to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Get the field structure&lt;/P&gt;&lt;P&gt; lcl_sdescr ?= cl_abap_typedescr=&amp;gt;describe_by_data( &amp;lt;fs&amp;gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at lcl_sdescr-&amp;gt;components assigning &amp;lt;components&amp;gt;.&lt;/P&gt;&lt;P&gt;*Do not display field "MANDT"&lt;/P&gt;&lt;P&gt;   IF sy-tabix = 1 AND &amp;lt;components&amp;gt;-name = 'MANDT'.&lt;/P&gt;&lt;P&gt;     CONTINUE. "next loop&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;*Build fieldcatalog&lt;/P&gt;&lt;P&gt;   lx_lvc_cat-fieldname = &amp;lt;components&amp;gt;-name.&lt;/P&gt;&lt;P&gt;   lx_lvc_cat-ref_table = p_table.&lt;/P&gt;&lt;P&gt;   append lx_lvc_cat to lt_lvc_cat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   lx_fieldcat-fieldname   = &amp;lt;components&amp;gt;-name.&lt;/P&gt;&lt;P&gt;   lx_fieldcat-ref_tabname = p_table.&lt;/P&gt;&lt;P&gt;   append lx_fieldcat to lt_fieldcat.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Create an internal table&lt;/P&gt;&lt;P&gt; call method cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt; exporting it_fieldcatalog = lt_lvc_cat&lt;/P&gt;&lt;P&gt; importing ep_table        = lt_table.&lt;/P&gt;&lt;P&gt; assign lt_table-&amp;gt;* to &amp;lt;lt_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Read the data&lt;/P&gt;&lt;P&gt;    select * from (p_table)&lt;/P&gt;&lt;P&gt;   into corresponding fields of table &amp;lt;lt_table&amp;gt;&lt;/P&gt;&lt;P&gt;   order by primary key.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  loop at &amp;lt;lt_table&amp;gt; assigning &amp;lt;fs_line&amp;gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  assign component 'MANDT' of&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         structure &amp;lt;fs_line&amp;gt; to &amp;lt;fs_field&amp;gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      &amp;lt;fs_field&amp;gt; = p_mandt.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if &amp;lt;lt_table&amp;gt;[] is initial.&lt;/P&gt;&lt;P&gt;*No table enties are existing&lt;/P&gt;&lt;P&gt;   message e003(zdynamictable) with p_table.&lt;/P&gt;&lt;P&gt;   exit.&lt;/P&gt;&lt;P&gt; else.&lt;/P&gt;&lt;P&gt;   describe table &amp;lt;lt_table&amp;gt;[] lines total_rows.&lt;/P&gt;&lt;P&gt;   t_rows = total_rows.&lt;/P&gt;&lt;P&gt;   shift t_rows left deleting leading space.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Specify the layout&lt;/P&gt;&lt;P&gt; lx_layout-zebra = 'X'.&lt;/P&gt;&lt;P&gt; lx_layout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Display the ALV List&lt;/P&gt;&lt;P&gt; select single ddtext into table_desc from dd02t&lt;/P&gt;&lt;P&gt; where tabname eq p_table and ddlanguage eq c_language.&lt;/P&gt;&lt;P&gt; check not table_desc is initial.&lt;/P&gt;&lt;P&gt; concatenate  'Entries from table:'&lt;/P&gt;&lt;P&gt; p_table '(' table_desc ')' '-:' t_rows 'Entries Found' into&lt;/P&gt;&lt;P&gt;table_desc&lt;/P&gt;&lt;P&gt; separated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Start - Download the data to excel sheet by validating the file path.&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;*lv_filename type string,&lt;/P&gt;&lt;P&gt;lv_fname_validate like rlgrap-filename.&lt;/P&gt;&lt;P&gt;*CONCATENATE 'C:\ZTABLE_DWN\' P_TABLE '.Xls' INTO LV_FILENAME.&lt;/P&gt;&lt;P&gt;*CONCATENATE '&lt;BR /&gt;Pc-p31061\Harman\Tasks\ZTABLE_DWN\' P_TABLE '.xls' INTO&lt;/P&gt;&lt;P&gt;CONCATENATE 'C:\ZTABLE_DWN\' P_TABLE '.xls' INTO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LV_FNAME_VALIDATE.&lt;/P&gt;&lt;P&gt;call function 'WS_FILE_DELETE'&lt;/P&gt;&lt;P&gt; exporting&lt;/P&gt;&lt;P&gt;   file          = lv_fname_validate&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RETURN        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         .&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BIN_FILESIZE                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  FILENAME                      =  LV_FNAME_VALIDATE&lt;/P&gt;&lt;P&gt;  FILETYPE                      = 'DAT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;   DATA_TAB                      = &amp;lt;lt_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*call function 'GUI_DOWNLOAD'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; exporting&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  BIN_FILESIZE                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   filename                      = lv_fname_validate&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  filetype                      = 'ASC'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  write_field_separator           =  'X'&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; tables&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   data_tab                      = &amp;lt;lt_table&amp;gt;.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;End of Download.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; call function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    i_background_id                   = 'ALV_BACKGROUND'&lt;/P&gt;&lt;P&gt;    i_grid_title                      = table_desc&lt;/P&gt;&lt;P&gt;    is_layout                         = lx_layout&lt;/P&gt;&lt;P&gt;    it_fieldcat                       = lt_fieldcat&lt;/P&gt;&lt;P&gt;   tables&lt;/P&gt;&lt;P&gt;     t_outtab                          = &amp;lt;lt_table&amp;gt;&lt;/P&gt;&lt;P&gt;  exceptions&lt;/P&gt;&lt;P&gt;    program_error                     = 1&lt;/P&gt;&lt;P&gt;    others                            = 2&lt;/P&gt;&lt;P&gt;           .&lt;/P&gt;&lt;P&gt; if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear table_desc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " table_data_display&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 11:19:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-name-how-to-query/m-p/1569741#M257251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T11:19:02Z</dc:date>
    </item>
  </channel>
</rss>

