<?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: problem wid export / import internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-wid-export-import-internal-table/m-p/2182284#M464273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sudheer Junnuthula&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2007 06:41:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-24T06:41:26Z</dc:date>
    <item>
      <title>problem wid export / import internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-wid-export-import-internal-table/m-p/2182280#M464269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;standard report RFTBCF00 .&lt;/P&gt;&lt;P&gt;in the copy of standard report(ZRFTBCF00_BW ) i added the following as suggested.&lt;/P&gt;&lt;P&gt;export thead to memory id '001'.&lt;/P&gt;&lt;P&gt;export titem to memory id '002'.&lt;/P&gt;&lt;P&gt;submit ZRFTBCF00_BW and return exporting list to memory .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in other program i added&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import thead FROM MEMORY id '001'.&lt;/P&gt;&lt;P&gt;import titem from memory id '002'.&lt;/P&gt;&lt;P&gt;but wen i m checking the data the thead and titem both are initial.&lt;/P&gt;&lt;P&gt;plz letme know where m rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 04:51:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-wid-export-import-internal-table/m-p/2182280#M464269</guid>
      <dc:creator>former_member189410</dc:creator>
      <dc:date>2007-04-24T04:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: problem wid export / import internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-wid-export-import-internal-table/m-p/2182281#M464270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can any one let me know the reason why data is not coming&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx,&lt;/P&gt;&lt;P&gt;points will b assigned&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 05:39:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-wid-export-import-internal-table/m-p/2182281#M464270</guid>
      <dc:creator>former_member189410</dc:creator>
      <dc:date>2007-04-24T05:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: problem wid export / import internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-wid-export-import-internal-table/m-p/2182282#M464271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nishu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THEAD and TITEM are defined as itabs with header lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;************************************************************************
* Internal tables
************************************************************************
data:
   tfha     like vtbfha occurs 0,
   tfhapo   like vtbfhapo occurs 0,
   begin of thead occurs 0.
        include structure vtbfha.
data:
   xgsart(30) type c,
   xfhaart(30) type c,
end of thead,
begin of titem occurs 0.
        include structure vtbfhapo.
data:
   vgtyp(30) type c,
   xbewebe(30) type c,
   xbewart(30) type c,
   whwbetr like vtbfhapo-wzbetr,
end of titem.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, if you export THEAD (or TITEM) you are exporting the &amp;lt;b&amp;gt;header line&amp;lt;/b&amp;gt; which apprently is empty.&lt;/P&gt;&lt;P&gt;To export the itab body use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EXPORT thead[] TO MEMORY ID '001'.
EXPORT titem[] TO MEMORY ID '001'.&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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 05:54:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-wid-export-import-internal-table/m-p/2182282#M464271</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-04-24T05:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: problem wid export / import internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-wid-export-import-internal-table/m-p/2182283#M464272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnx,&lt;/P&gt;&lt;P&gt;but still wen i m importing the table its coming empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will b assigned&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 06:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-wid-export-import-internal-table/m-p/2182283#M464272</guid>
      <dc:creator>former_member189410</dc:creator>
      <dc:date>2007-04-24T06:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: problem wid export / import internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-wid-export-import-internal-table/m-p/2182284#M464273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sudheer Junnuthula&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 06:41:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-wid-export-import-internal-table/m-p/2182284#M464273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T06:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem wid export / import internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-wid-export-import-internal-table/m-p/2182285#M464274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you use these EXPORT and IMPORT atatment directly then that won't work in another Program, you need to use the DATABASE ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can at this link, you need to use the DATABASE Index for this &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;&lt;/P&gt;&lt;P&gt;After writing this write FREE &amp;lt;Database_ID&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 06:45:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-wid-export-import-internal-table/m-p/2182285#M464274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T06:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: problem wid export / import internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-wid-export-import-internal-table/m-p/2182286#M464275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nishu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not read your posting carefully enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are exporting a list using SUBMIT &amp;lt;reportname&amp;gt; ... EXPORTING LIST TO MEMORY then you have to use function module &amp;lt;b&amp;gt;LIST_FROM_MEMORY&amp;lt;/b&amp;gt; to fetch the list again.&lt;/P&gt;&lt;P&gt;However, this works only if you fetch the list in the program which is calling report ZRFTBCF00_BW via SUBMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need the list in a completely different program then you have to store it in a &amp;lt;b&amp;gt;persistent&amp;lt;/b&amp;gt; way, e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EXPORT thead[] titem[] TO DATABASE indx(zy) ID '&amp;lt;my id&amp;gt;'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 06:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-wid-export-import-internal-table/m-p/2182286#M464275</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-04-24T06:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: problem wid export / import internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-wid-export-import-internal-table/m-p/2182287#M464276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnx for ur reply&lt;/P&gt;&lt;P&gt;i used da same n wen i m importing it in other program&lt;/P&gt;&lt;P&gt;import thead[] titem[] from DATABASE indx(zy) ID '&amp;lt;my id&amp;gt;'.&lt;/P&gt;&lt;P&gt;m getting empty tables can u letme know why data is not coming&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 07:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-wid-export-import-internal-table/m-p/2182287#M464276</guid>
      <dc:creator>former_member189410</dc:creator>
      <dc:date>2007-04-24T07:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: problem wid export / import internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-wid-export-import-internal-table/m-p/2182288#M464277</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;Try decalring the internal tables in same way at the sender &amp;amp; receiver and it must work. But don't forget to Free the memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used in a BADI (OO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TYPES: BEGIN OF it_cert,&lt;/P&gt;&lt;P&gt;             ebelp  TYPE ebelp,&lt;/P&gt;&lt;P&gt;             matnr  TYPE matnr,&lt;/P&gt;&lt;P&gt;             charg  TYPE charg_d,&lt;/P&gt;&lt;P&gt;             lichn  TYPE lichn,&lt;/P&gt;&lt;P&gt;             cert(4)   TYPE c,&lt;/P&gt;&lt;P&gt;           END OF it_cert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Data: ws_memid(10) TYPE c.&lt;/P&gt;&lt;P&gt;  DATA wa_cert TYPE it_cert.&lt;/P&gt;&lt;P&gt;  DATA t_cert TYPE STANDARD TABLE OF it_cert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ... After processing the internal table&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  ws_memid = 'CERT'.&lt;/P&gt;&lt;P&gt;  EXPORT t_cert FROM t_cert TO MEMORY ID ws_memid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In other BADI declaration is same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ws_memid = 'CERT'.&lt;/P&gt;&lt;P&gt;  IMPORT t_cert TO t_cert FROM MEMORY ID ws_memid.&lt;/P&gt;&lt;P&gt;  FREE MEMORY ID 'CERT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Try to use this code.. I was able to Export the table &amp;amp; Imported by using in this BADI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 15:17:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-wid-export-import-internal-table/m-p/2182288#M464277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T15:17:14Z</dc:date>
    </item>
  </channel>
</rss>

