<?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: Creating internal table after each upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943489#M1334990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Max...Thank you very much for the solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jul 2009 13:34:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-21T13:34:38Z</dc:date>
    <item>
      <title>Creating internal table after each upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943478#M1334979</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;My requirement is to create internal tables after each upload at selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a selection screen which has two file upload path.When I upload the files 1st time the records should be strored in one internal table.&lt;/P&gt;&lt;P&gt;Again when I upload at the same selection screen, the records should be stored in 2nd internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know how many times the user is going to upload files.That can be thousand times too.So I need a solution where we can capture these things dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:please do not give a solution like the files can be uploaded using GUI_UPLOAD.I know GUI_UPLOAD only uploads file.&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>Tue, 21 Jul 2009 12:48:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943478#M1334979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-21T12:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating internal table after each upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943479#M1334980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a counter and store the variable in ABAP memory using the following statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export to MEMORY ID Variable_name.&lt;/P&gt;&lt;P&gt;IMPORT FROM MEMORY ID Variable_Name..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can use your logic to switch internal tables inside the program.Let me know if any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vimal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 12:51:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943479#M1334980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-21T12:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating internal table after each upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943480#M1334981</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 are several possible solutions. &lt;/P&gt;&lt;P&gt;Best solution is maybe the OO solution. Create a class and create the table as an attribute of the class instance. &lt;/P&gt;&lt;P&gt;Or define a structure with nested table and define top structure as table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Henk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 12:53:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943480#M1334981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-21T12:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating internal table after each upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943481#M1334982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello vimal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good idea but i need some clarification when will you free the memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shaik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 12:59:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943481#M1334982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-21T12:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating internal table after each upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943482#M1334983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;    You can capture the press of the button 'UPLOAD' in system field sy-ucomm.&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;create a new dynamic internal table .&lt;/P&gt;&lt;P&gt;move the file uploaded to the new internal table.&lt;/P&gt;&lt;P&gt;clear off the path .&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;Hope this resolves the issue.&lt;/P&gt;&lt;P&gt;Viquar Iqbal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 13:02:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943482#M1334983</guid>
      <dc:creator>viquar_iqbal</dc:creator>
      <dc:date>2009-07-21T13:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating internal table after each upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943483#M1334984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes..this is how I am doing..this is ok when I upload 1st time...how about 1st,2nd,3rd...1000th upload....How the program/system will know that this is the 1000th upload and the 1000th internal table will be created???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 13:06:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943483#M1334984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-21T13:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating internal table after each upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943484#M1334985</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;U can try to use an internal table having an internal table as fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: TY_RECORD TYPE STRING.

TYPES: BEGIN OF TY_FILE,
         PATH TYPE STRING,
         DATA TYPE TY_RECORD OCCURS 0,
       END   OF TY_FILE.

DATA: T_FILE TYPE TABLE OF TY_FILE.

PARAMETERS: p_file(80).

at SELECTION-SCREEN.

  data: filename type string,
        t_data   type TABLE OF TY_RECORD,
        w_file   type ty_file.

  move p_file to filename.

  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      FILENAME                      = filename
    TABLES
      DATA_TAB                      = t_data.

  refresh w_file-data.
  w_file-path   = filename.
  w_file-data[] = t_data[].
  append w_file to t_file.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway u make to insert a control in order to limit the file can be uploaded because you've a limit for memory size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 13:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943484#M1334985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-21T13:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating internal table after each upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943485#M1334986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats fine.But each time the fields of the uploaded file will vary.Now I want to make dynamic internal table with the uploaded field (with records)each time.Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean using t_file-data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ginger on Jul 21, 2009 9:19 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 13:18:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943485#M1334986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-21T13:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating internal table after each upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943486#M1334987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can do it by the helip of FieldSymbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;dyn_table&amp;gt; type standard table, &lt;/P&gt;&lt;P&gt;               &amp;lt;dyn_wa&amp;gt;, &lt;/P&gt;&lt;P&gt;               &amp;lt;dyn_field&amp;gt;. &lt;/P&gt;&lt;P&gt;  data: dy_table type ref to data, &lt;/P&gt;&lt;P&gt;      dy_line  type ref to data, &lt;/P&gt;&lt;P&gt;      xfc type lvc_s_fcat, &lt;/P&gt;&lt;P&gt;      ifc type lvc_t_fcat. &lt;/P&gt;&lt;P&gt;  selection-screen begin of block b1 with frame. &lt;/P&gt;&lt;P&gt;parameters: p_table(30) type c default 'T001'. &lt;/P&gt;&lt;P&gt;selection-screen end of block b1. &lt;/P&gt;&lt;P&gt;  start-of-selection. &lt;/P&gt;&lt;P&gt;    perform get_structure. &lt;/P&gt;&lt;P&gt;  perform create_dynamic_itab.      *********&lt;STRONG&gt;Creates a dyanamic internal table&lt;/STRONG&gt;********* &lt;/P&gt;&lt;P&gt;  perform get_data. &lt;/P&gt;&lt;P&gt;  perform write_out. &lt;/P&gt;&lt;P&gt;  form get_structure. &lt;/P&gt;&lt;P&gt;  data : idetails type abap_compdescr_tab, &lt;/P&gt;&lt;P&gt;       xdetails type abap_compdescr. &lt;/P&gt;&lt;P&gt;  data : ref_table_des type ref to cl_abap_structdescr. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the structure of the table. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ref_table_des ?=  &lt;/P&gt;&lt;P&gt;      cl_abap_typedescr=&amp;gt;describe_by_name( p_table ). &lt;/P&gt;&lt;P&gt;  idetails[] = ref_table_des-&amp;gt;components[]. &lt;/P&gt;&lt;P&gt;    loop at idetails into xdetails. &lt;/P&gt;&lt;P&gt;    clear xfc. &lt;/P&gt;&lt;P&gt;    xfc-fieldname = xdetails-name . &lt;/P&gt;&lt;P&gt;    xfc-datatype = xdetails-type_kind. &lt;/P&gt;&lt;P&gt;    xfc-inttype = xdetails-type_kind. &lt;/P&gt;&lt;P&gt;    xfc-intlen = xdetails-length. &lt;/P&gt;&lt;P&gt;    xfc-decimals = xdetails-decimals. &lt;/P&gt;&lt;P&gt;    append xfc to ifc. &lt;/P&gt;&lt;P&gt;  endloop. &lt;/P&gt;&lt;P&gt;  endform. &lt;/P&gt;&lt;P&gt;  form create_dynamic_itab. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create dynamic internal table and assign to FS &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method cl_alv_table_create=&amp;gt;create_dynamic_table &lt;/P&gt;&lt;P&gt;               exporting &lt;/P&gt;&lt;P&gt;                  it_fieldcatalog = ifc &lt;/P&gt;&lt;P&gt;               importing &lt;/P&gt;&lt;P&gt;                  ep_table        = dy_table. &lt;/P&gt;&lt;P&gt;    assign dy_table-&amp;gt;* to &amp;lt;dyn_table&amp;gt;. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create dynamic work area and assign to FS &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  create data dy_line like line of &amp;lt;dyn_table&amp;gt;. &lt;/P&gt;&lt;P&gt;  assign dy_line-&amp;gt;* to &amp;lt;dyn_wa&amp;gt;. &lt;/P&gt;&lt;P&gt;  endform. &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;  form get_data. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Select Data from table. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  select * into table &amp;lt;dyn_table&amp;gt; &lt;/P&gt;&lt;P&gt;             from (p_table). &lt;/P&gt;&lt;P&gt;  endform. &lt;/P&gt;&lt;P&gt;   Write out data from table. &lt;/P&gt;&lt;P&gt;  loop at &amp;lt;dyn_table&amp;gt; into &amp;lt;dyn_wa&amp;gt;. &lt;/P&gt;&lt;P&gt;    do. &lt;/P&gt;&lt;P&gt;      assign component  sy-index   &lt;/P&gt;&lt;P&gt;         of structure &amp;lt;dyn_wa&amp;gt; to &amp;lt;dyn_field&amp;gt;. &lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;        exit. &lt;/P&gt;&lt;P&gt;      endif. &lt;/P&gt;&lt;P&gt;      if sy-index = 1. &lt;/P&gt;&lt;P&gt;        write:/ &amp;lt;dyn_field&amp;gt;. &lt;/P&gt;&lt;P&gt;      else. &lt;/P&gt;&lt;P&gt;        write: &amp;lt;dyn_field&amp;gt;. &lt;/P&gt;&lt;P&gt;      endif. &lt;/P&gt;&lt;P&gt;    enddo. &lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ShreeMohan Pugalia on Jul 21, 2009 3:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 13:23:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943486#M1334987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-21T13:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating internal table after each upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943487#M1334988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Following is the sample code for creating Dynamic internal table...it is possible...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zpwtest .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: lt_data TYPE REF TO data.&lt;/P&gt;&lt;P&gt;DATA: lt_fieldcatalog TYPE lvc_t_fcat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Structure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: ls_fieldcatalog TYPE lvc_s_fcat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Data References&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: new_line TYPE REF TO data.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Field Symbols&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;fs_data&amp;gt; TYPE REF TO data,&lt;/P&gt;&lt;P&gt;               &amp;lt;fs_1&amp;gt; TYPE ANY TABLE,&lt;/P&gt;&lt;P&gt;               &amp;lt;fs_2&amp;gt;,&lt;/P&gt;&lt;P&gt;               &amp;lt;fs_3&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;ls_fieldcatalog-fieldname = 'MANDT'.&lt;/P&gt;&lt;P&gt;APPEND ls_fieldcatalog TO lt_fieldcatalog.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ls_fieldcatalog-fieldname = 'CARRID'. "Fieldname&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-inttype = 'C'. "Internal Type C-&amp;gt; Character&lt;/P&gt;&lt;P&gt;APPEND ls_fieldcatalog TO lt_fieldcatalog.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ls_fieldcatalog-fieldname = 'CONNID'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-inttype = 'N'.&lt;/P&gt;&lt;P&gt;APPEND ls_fieldcatalog TO lt_fieldcatalog.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ls_fieldcatalog-fieldname = 'FLDATE'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-inttype = 'D'.&lt;/P&gt;&lt;P&gt;APPEND ls_fieldcatalog TO lt_fieldcatalog.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ls_fieldcatalog-fieldname = 'PRICE'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-inttype = 'P'.&lt;/P&gt;&lt;P&gt;APPEND ls_fieldcatalog TO lt_fieldcatalog.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ls_fieldcatalog-fieldname = 'CURRENCY'.&lt;/P&gt;&lt;P&gt;ls_fieldcatalog-inttype = 'C'.&lt;/P&gt;&lt;P&gt;APPEND ls_fieldcatalog TO lt_fieldcatalog.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ASSIGN lt_data TO &amp;lt;fs_data&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL METHOD cl_alv_table_create=create_dynamic_table&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       it_fieldcatalog = lt_fieldcatalog&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       ep_table = fs_data&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       generate_subpool_dir_full = 1&lt;/P&gt;&lt;P&gt;       OTHERS = 2&lt;/P&gt;&lt;P&gt;		.&lt;/P&gt;&lt;P&gt;IF sy-subrc  0.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;So &amp;lt;FS_1&amp;gt; now points to our dynamic internal table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ASSIGN &amp;lt;fs_data&amp;gt;-&amp;gt;* TO &amp;lt;fs_1&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Next step is to create a work area for our dynamic internal table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CREATE DATA new_line LIKE LINE OF &amp;lt;fs_1&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;A field-symbol to access that work area&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;ASSIGN new_line-&amp;gt;*  TO &amp;lt;fs_2&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;And to put the data in the internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;SELECT mandt carrid connid fldate price currency&lt;/P&gt;&lt;P&gt;  FROM sflight&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE &amp;lt;fs_1&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Access contents of internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT &amp;lt;fs_1&amp;gt; ASSIGNING &amp;lt;fs_2&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  ASSIGN COMPONENT 1 OF STRUCTURE &amp;lt;fs_2&amp;gt; TO &amp;lt;fs_3&amp;gt;.&lt;/P&gt;&lt;P&gt;  WRITE: / &amp;lt;fs_3&amp;gt;.&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;Regards,&lt;/P&gt;&lt;P&gt;Vimal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 13:23:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943487#M1334988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-21T13:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating internal table after each upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943488#M1334989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uhm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably, but it could be hard and wouldn't make a sense, probably u need to have the correct structure when u need to read every file, so while looping the table with file data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: TY_RECORD TYPE STRING.

TYPES: BEGIN OF TY_FILE,
         PATH TYPE STRING,
         DATA TYPE TY_RECORD OCCURS 0,
       END   OF TY_FILE.

DATA: T_FILE TYPE TABLE OF TY_FILE.

DATA: FILENAME TYPE STRING,
      T_DATA   TYPE TABLE OF TY_RECORD,
      W_FILE   TYPE TY_FILE.

DATA: WA TYPE STRING.

PARAMETERS: P_FILE(80).

AT SELECTION-SCREEN.

  MOVE P_FILE TO FILENAME.

  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      FILENAME = FILENAME
    TABLES
      DATA_TAB = T_DATA.

  REFRESH W_FILE-DATA.
  W_FILE-PATH   = FILENAME.
  W_FILE-DATA[] = T_DATA[].
  APPEND W_FILE TO T_FILE.

START-OF-SELECTION.

  LOOP AT T_FILE INTO W_FILE.
    LOOP AT W_FILE-DATA INTO WA.
"----&amp;gt; Move the data to a new table created dynamically?      
    ENDLOOP.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is how u can determine the right structure of the file you're reading&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 13:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943488#M1334989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-21T13:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating internal table after each upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943489#M1334990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Max...Thank you very much for the solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 13:34:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-internal-table-after-each-upload/m-p/5943489#M1334990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-21T13:34:38Z</dc:date>
    </item>
  </channel>
</rss>

