<?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: internal tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106309#M104880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that he is trying to upload from frontend, it just so happens that he is bringing from linux, hence the file path/name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Nov 2005 17:33:20 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-11-21T17:33:20Z</dc:date>
    <item>
      <title>internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106291#M104862</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;Can someone please give me the code for initializing an internal table.  Also, some code showing how to add data to or extract data from the table would also be helpful.  The table needs to have two fields that are string and another that is long integer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks-&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 13:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106291#M104862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-21T13:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106292#M104863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Module pool       YRT_TEST1&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM  YRT_TEST1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*parameters : date1 like sy-datum,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            date2 like sy-datum.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*data: days(3) type n.&lt;/P&gt;&lt;P&gt;*data: years(10) type p decimals 3.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*start-of-selection.&lt;/P&gt;&lt;P&gt;*days = date2 - date1.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*years = days / 365.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*write: / days,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        years.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;        str type string,&lt;/P&gt;&lt;P&gt;        inte type i,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-str = 'My name'.&lt;/P&gt;&lt;P&gt;itab-inte = 12.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-str = 'My address'.&lt;/P&gt;&lt;P&gt;itab-inte = 13.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start-of-selection.&lt;/P&gt;&lt;P&gt;*adding data&lt;/P&gt;&lt;P&gt;itab-str = 'additional data'.&lt;/P&gt;&lt;P&gt;itab-inte = 15.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*extracting data&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write:/ itab-str,&lt;/P&gt;&lt;P&gt;         itab-inte.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 13:46:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106292#M104863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-21T13:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106293#M104864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the following line to clear out all data in your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear itab.  refresh itab.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 13:48:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106293#M104864</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-21T13:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106294#M104865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: begin of itab ocuurs 0,&lt;/P&gt;&lt;P&gt;        field1 like tab1-field1,&lt;/P&gt;&lt;P&gt;        field2 like tab1-field2,&lt;/P&gt;&lt;P&gt;     end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear: itab[],&lt;/P&gt;&lt;P&gt;       itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select field1 field2 from itab into table itab &lt;/P&gt;&lt;P&gt;                  where &amp;lt;condition1&amp;gt; and &amp;lt;condition2&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 13:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106294#M104865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-21T13:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106295#M104866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what does "occurs 0" mean?  THANK YOU all!  This is very helpful!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 14:09:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106295#M104866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-21T14:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106296#M104867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;with occurs 0 you are specifing that your table doesn't have a predefinited size (number of record)&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;enzo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 14:10:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106296#M104867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-21T14:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106297#M104868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The OCCURS systax is obselete in newer version and in ABAP objects.  I would suggest starting to use the new syntax for creating internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Types: begin of ttab, 
       fld1 type c,
       fld2 type c,
       end of ttab.

data: itab type table of ttab.
data: wa type ttab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 14:13:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106297#M104868</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-21T14:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106298#M104869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, thanks.  &lt;/P&gt;&lt;P&gt;One more question... I just ran my program and got:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module "ALSM_EXCEL_TO_INTERNAL_TABLE" was called, but cannot be found in the function library.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the NW sneak preview on Linux have this function included?  I copied the Excel file to Linux and attempted to import it to my internal table.&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, 21 Nov 2005 14:26:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106298#M104869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-21T14:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106299#M104870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure.  Go to SE37,  enter ALSM_EXCEL_TO_INTERNAL_TABLE into the function module field and click display.  This will tell you if it exists of not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 14:28:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106299#M104870</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-21T14:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106300#M104871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does not exist.  Does it exist on the NW sneak preview for windows?  I need to get off Linux somehow, but I cannot change the name of my laptop on the Windows side.  Is there some work-around that allows you to install the free Netweaver without changing the computer name?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 14:32:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106300#M104871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-21T14:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106301#M104872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it does not exists in my sneak preview version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 14:42:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106301#M104872</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-21T14:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106302#M104873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, so the Windows sneak preview does not have this function module?  Am I trying to import data using deprecated code?  All I'm trying to do, really, is import data into SAP, preferably from an Excel table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 14:53:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106302#M104873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-21T14:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106303#M104874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the function module GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;Or the class/method,  CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They both exists in my sneak preview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 14:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106303#M104874</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-21T14:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106304#M104875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good, I have that one -thanks!  Do you happen to know the code for calling this?  My ABAP book doesn't mention it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 15:06:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106304#M104875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-21T15:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106305#M104876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA:      g_file     TYPE string.&lt;/P&gt;&lt;P&gt;DATA:      i_dataf     TYPE char2000   OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                      = g_file&lt;/P&gt;&lt;UL&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;    HAS_FIELD_SEPARATOR           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    HEADER_LENGTH                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    READ_BY_LINE                  = 'X'&lt;/P&gt;&lt;/LI&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;LI level="1" type="ul"&gt;&lt;P&gt;    HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                      = i_dataf&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_open_error               = 1&lt;/P&gt;&lt;P&gt;      file_read_error               = 2&lt;/P&gt;&lt;P&gt;      no_batch                      = 3&lt;/P&gt;&lt;P&gt;      gui_refuse_filetransfer       = 4&lt;/P&gt;&lt;P&gt;      invalid_type                  = 5&lt;/P&gt;&lt;P&gt;      no_authority                  = 6&lt;/P&gt;&lt;P&gt;      unknown_error                 = 7&lt;/P&gt;&lt;P&gt;      bad_data_format               = 8&lt;/P&gt;&lt;P&gt;      header_not_allowed            = 9&lt;/P&gt;&lt;P&gt;      separator_not_allowed         = 10&lt;/P&gt;&lt;P&gt;      header_too_long               = 11&lt;/P&gt;&lt;P&gt;      unknown_dp_error              = 12&lt;/P&gt;&lt;P&gt;      access_denied                 = 13&lt;/P&gt;&lt;P&gt;      dp_out_of_memory              = 14&lt;/P&gt;&lt;P&gt;      disk_full                     = 15&lt;/P&gt;&lt;P&gt;      dp_timeout                    = 16&lt;/P&gt;&lt;P&gt;      OTHERS                        = 17&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*error message &lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively you can call any Function module by pressing the Pattern button on the appl tool bar in se38 editor. and give the FM name.&lt;/P&gt;&lt;P&gt;It will give the code for you.&lt;/P&gt;&lt;P&gt;You need to uncomment the parameters which you need to pass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to call a method belonging to a class, the use the pattern button. select the ABAP Object patterns radio-button,&lt;/P&gt;&lt;P&gt;Give the class/interface name and the method name.&lt;/P&gt;&lt;P&gt;This will give you semi-finished code, for which you need to pass the required parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ravi Kanth Talagana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 15:09:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106305#M104876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-21T15:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106306#M104877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure.....I would suggest using comma delimited text files here.  Once you have them uploaded to the flat itab, then you can loop thru ITAB and SPLIT the record up into its individual fields using the SPLIT 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;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0001
       no standard page heading.

types: begin of ttab,
       rec(1000) type c,
       end of ttab.

parameters: p_file type localfile.

data: itab type table of ttab.
data: file_str type string.


file_str = p_file.

call function 'GUI_UPLOAD'
     exporting
          filename                = file_str
     tables
          data_tab                = itab
     exceptions
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          others                  = 17.



*  - OR -

call method cl_gui_frontend_services=&amp;gt;gui_upload
  exporting
    filename                = file_str
  changing
    data_tab                = itab
  exceptions
    file_open_error         = 1
    file_read_error         = 2
    no_batch                = 3
    gui_refuse_filetransfer = 4
    invalid_type            = 5
    no_authority            = 6
    unknown_error           = 7
    bad_data_format         = 8
    header_not_allowed      = 9
    separator_not_allowed   = 10
    header_too_long         = 11
    unknown_dp_error        = 12
    access_denied           = 13
    dp_out_of_memory        = 14
    disk_full               = 15
    dp_timeout              = 16
    others                  = 17.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remember to award points for helpful answers.  Thanks.&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;Rich HEilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 15:13:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106306#M104877</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-21T15:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106307#M104878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot get this code to work... any ideas?  The error is "cannot interpret data in file" and then it takes me completely out of the abap editor!  How do I modify the code so when I hit the green check, it takes me back to the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My text file is simply this (tab delimited):&lt;/P&gt;&lt;P&gt;Joe	Bloggs	25&lt;/P&gt;&lt;P&gt;Dave	Smith	36&lt;/P&gt;&lt;P&gt;Jane	Walker	23&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;REPORT  Z_SECOND_PROGRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Data Declarations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Declare the internal table data structure&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;  str1 type string,&lt;/P&gt;&lt;P&gt;  str2 type string,&lt;/P&gt;&lt;P&gt;  int1 type i,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: g_file TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Initialize the table&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;itab-str1 = 'Kevin was here'.&lt;/P&gt;&lt;P&gt;itab-str2 = 'Another string'.&lt;/P&gt;&lt;P&gt;itab-int1 = 23.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Display the table&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write:/ itab-str1,&lt;/P&gt;&lt;P&gt;          itab-str2,&lt;/P&gt;&lt;P&gt;          itab-int1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear itab. refresh itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filename = '/root/datafile1'&lt;/P&gt;&lt;P&gt;*HAS_FIELD_SEPARATOR='|'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = itab&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;file_open_error=1&lt;/P&gt;&lt;P&gt;file_read_error=2&lt;/P&gt;&lt;P&gt;no_batch=3&lt;/P&gt;&lt;P&gt;gui_refuse_filetransfer=4&lt;/P&gt;&lt;P&gt;invalid_type=5&lt;/P&gt;&lt;P&gt;no_authority=6&lt;/P&gt;&lt;P&gt;unknown_error=7&lt;/P&gt;&lt;P&gt;bad_data_format=8&lt;/P&gt;&lt;P&gt;header_not_allowed=9&lt;/P&gt;&lt;P&gt;separator_not_allowed=10&lt;/P&gt;&lt;P&gt;header_too_long=11&lt;/P&gt;&lt;P&gt;unknown_dp_error=12&lt;/P&gt;&lt;P&gt;access_denied=13&lt;/P&gt;&lt;P&gt;dp_out_of_memory=14&lt;/P&gt;&lt;P&gt;disk_full=15&lt;/P&gt;&lt;P&gt;dp_timeout=16&lt;/P&gt;&lt;P&gt;OTHERS=17&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*error message&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Redisplay the table&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write:/ itab-str1,&lt;/P&gt;&lt;P&gt;          itab-str2,&lt;/P&gt;&lt;P&gt;          itab-int1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 16:19:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106307#M104878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-21T16:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106308#M104879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Please do not use the FM's with name GUI* to interact with the application server. As the name clearly suggests, GUI_UPLOAD or the method suggested by Rich are to upload data from the local system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kalidas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 17:31:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106308#M104879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-21T17:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106309#M104880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that he is trying to upload from frontend, it just so happens that he is bringing from linux, hence the file path/name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 17:33:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106309#M104880</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-21T17:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106310#M104881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just recopied your code and got it to work.  I needed to add "with header line" to itab.  It does not display the field names when I print using:&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  write / itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how to do so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2005 19:04:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1106310#M104881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-21T19:04:20Z</dc:date>
    </item>
  </channel>
</rss>

