<?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: EXPORT/IMPORT  Internal table.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table/m-p/3019347#M713758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA BEGIN OF lt1_int_edidd OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE edidd.&lt;/P&gt;&lt;P&gt;DATA END OF lt1_int_edidd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you fetch data to this internal table you can export to the memory when you leave from this progrmm to a different program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT lt1_int_edidd TO MEMORY ID 'ZINT_EDIDD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you return back you can inport the data from memory to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT lt1_int_edidd FROM MEMORY ID 'ZINT_EDIDD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you free the imemory ID after you import it.&lt;/P&gt;&lt;P&gt;            FREE MEMORY ID 'ZINT_EDIDD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopr this is what you were looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2007 17:26:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-31T17:26:49Z</dc:date>
    <item>
      <title>EXPORT/IMPORT  Internal table..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table/m-p/3019343#M713754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;   I have problem to export import the whole internal table,&lt;/P&gt;&lt;P&gt;   can any one help how to export/import internal tables..&lt;/P&gt;&lt;P&gt;   any sample code pls?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 17:19:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table/m-p/3019343#M713754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T17:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT/IMPORT  Internal table..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table/m-p/3019344#M713755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do u want to import/export from where?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To import from txt, look this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTXTTOTABLE                             .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: p_file   TYPE string value 'C:\teste.txt',&lt;/P&gt;&lt;P&gt;      BEGIN OF TI_table OCCURS 0,&lt;/P&gt;&lt;P&gt;        COD(5) TYPE C,&lt;/P&gt;&lt;P&gt;        NAME(40),&lt;/P&gt;&lt;P&gt;      END OF TI_table,&lt;/P&gt;&lt;P&gt;      a(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: sel_file(128) TYPE c&lt;/P&gt;&lt;P&gt;            default 'C:\teste.txt' OBLIGATORY LOWER CASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_file = sel_file.&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 = p_file&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab = ti_table[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format color COL_TOTAL INTENSIFIED ON.&lt;/P&gt;&lt;P&gt;loop at ti_table.&lt;/P&gt;&lt;P&gt;  write: / sy-vline, ti_table-cod, at 10 sy-vline, ti_table-name,&lt;/P&gt;&lt;P&gt;         at 60 sy-vline.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;write: / sy-uline(60).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR sel_file.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WS_FILENAME_GET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      def_filename     = ''&lt;/P&gt;&lt;P&gt;      def_path         = 'C:\'&lt;/P&gt;&lt;P&gt;      mask             = ',Documentos de texto (*.txt), *.txt.'&lt;/P&gt;&lt;P&gt;      mode             = ''&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      filename         = p_file&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      inv_winsys       = 1&lt;/P&gt;&lt;P&gt;      no_batch         = 2&lt;/P&gt;&lt;P&gt;      selection_cancel = 3&lt;/P&gt;&lt;P&gt;      selection_error  = 4&lt;/P&gt;&lt;P&gt;      OTHERS           = 5.&lt;/P&gt;&lt;P&gt;  find '.txt' IN p_file.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    concatenate p_file '.txt' into sel_file.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    sel_file = p_file.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;top-of-page.&lt;/P&gt;&lt;P&gt;  format color COL_HEADING INTENSIFIED ON.&lt;/P&gt;&lt;P&gt;  uline (60).&lt;/P&gt;&lt;P&gt;  write: / sy-vline, 'COD', at 10 sy-vline, 'NAME', at 60 sy-vline.&lt;/P&gt;&lt;P&gt;  write: / sy-uline(60).&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;&lt;/P&gt;&lt;P&gt;Allan Cristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 17:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table/m-p/3019344#M713755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T17:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT/IMPORT  Internal table..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table/m-p/3019345#M713756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to export to txt try it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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; Report  ZTABLETOTXT                                                 *&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;REPORT  ZTABLETOTXT                             .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ti_spfli LIKE STANDARD TABLE OF spfli WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      p_file   TYPE string value 'C:\spfli.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: sel_file(128) TYPE c&lt;/P&gt;&lt;P&gt;            default 'C:\spfli.txt' OBLIGATORY LOWER CASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM spfli INTO TABLE ti_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_file = sel_file.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME = p_file&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB = ti_spfli[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  MESSAGE I398(00) WITH 'Arquivo criado com sucesso!'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  MESSAGE E398(00) WITH 'Ocorreu um erro!'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR sel_file.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WS_FILENAME_GET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      def_filename     = ''&lt;/P&gt;&lt;P&gt;      def_path         = 'C:\'&lt;/P&gt;&lt;P&gt;      mask             = ',Documentos de texto (*.txt), *.txt.'&lt;/P&gt;&lt;P&gt;      mode             = ''&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      filename         = p_file&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      inv_winsys       = 1&lt;/P&gt;&lt;P&gt;      no_batch         = 2&lt;/P&gt;&lt;P&gt;      selection_cancel = 3&lt;/P&gt;&lt;P&gt;      selection_error  = 4&lt;/P&gt;&lt;P&gt;      OTHERS           = 5.&lt;/P&gt;&lt;P&gt;  find '.txt' IN p_file.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    concatenate p_file '.txt' into sel_file.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    sel_file = p_file.&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;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Allan Cristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 17:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table/m-p/3019345#M713756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T17:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT/IMPORT  Internal table..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table/m-p/3019346#M713757</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; go through these links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3568536"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/export01.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/export01.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 17:25:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table/m-p/3019346#M713757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T17:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT/IMPORT  Internal table..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table/m-p/3019347#M713758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA BEGIN OF lt1_int_edidd OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE edidd.&lt;/P&gt;&lt;P&gt;DATA END OF lt1_int_edidd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you fetch data to this internal table you can export to the memory when you leave from this progrmm to a different program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT lt1_int_edidd TO MEMORY ID 'ZINT_EDIDD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you return back you can inport the data from memory to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT lt1_int_edidd FROM MEMORY ID 'ZINT_EDIDD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you free the imemory ID after you import it.&lt;/P&gt;&lt;P&gt;            FREE MEMORY ID 'ZINT_EDIDD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopr this is what you were looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 17:26:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table/m-p/3019347#M713758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T17:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT/IMPORT  Internal table..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table/m-p/3019348#M713759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Your right what mean but  i am aunable to import data to internal tablefrom memory ID..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem:  I have to export the intertable to memory in Some user exit of the Transaction  and then import the same internal table from Memory id in other user exit for the same transaction.. thats means that it is internal session only right..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waht i am facing now;&lt;/P&gt;&lt;P&gt;I am exporting the internal table to memoty id and i have to import the same internal table data some where in User exit in the same transaction, but i didnt get even single record from there..  Is there any other way to do this.. pls its urgent..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used like below, just example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab like mara occurs o with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do some data mani plication and store the records in Itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and   Export to memeory  like below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export itab to memory id 'YFI_ITB'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i am traying to imprt it from other userexit.. like below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import itab from memory id 'YFI_ITB'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its not giving the records..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&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;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 17:54:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table/m-p/3019348#M713759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-31T17:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT/IMPORT  Internal table..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table/m-p/3019349#M713760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to keep the same strcutres for both ITAB, while exporting and while imorting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 19:07:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-import-internal-table/m-p/3019349#M713760</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-10-31T19:07:26Z</dc:date>
    </item>
  </channel>
</rss>

