<?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: regarding import and export statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-import-and-export-statement/m-p/3255716#M777507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are those Type 1 programs ? Since SUBMIT will work only for those programs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, &lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jan 2008 02:41:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-11T02:41:13Z</dc:date>
    <item>
      <title>regarding import and export statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-import-and-export-statement/m-p/3255713#M777504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;how to import and export the internal table between programs...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nice solutins with maximum points.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 23:10:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-import-and-export-statement/m-p/3255713#M777504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T23:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: regarding import and export statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-import-and-export-statement/m-p/3255714#M777505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example of a program exporting an internal table to ABAP memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Prog 1&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters: pa_vbeln like vbak-vbeln.
data: itab type standard table of vbak.
* get data to fill the table
select * from vbak into table itab
            where vbeln = pa_vbeln.
* now store the internal table to ABAP memory
export itab to Memory ID 'table''.

* here we call another program, prog 2
submit prog2 and return.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Prog 2&lt;/U&gt;&lt;/STRONG&gt;  -&amp;gt; This imports the internal table exported by prog 1 and writes the content of the internal table to a list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: jtab type standard table of vbak,
       wa_vbak type vbak.

* importing the itab that was exported by prog1
import itab to jtab from memory id 'table'.

loop at jtab into wa_vbak.
 write:/ wa_vbak-vbeln,
        wa_vbak-erdat.
endloop.

* clear the specific memory id after required processing is complete
free memory id 'table'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sougata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subas,&lt;/P&gt;&lt;P&gt;Copy/paste your code, I'll have a look. First check if data is being selected before &lt;STRONG&gt;Export&lt;/STRONG&gt; command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sougata Chatterjee on Jan 11, 2008 12:31 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also make sure you create prog2 as an &lt;U&gt;executable program&lt;/U&gt;. Then, run prog1 with a valid Sales Order number. To understand it more clearly run it in debugging mode and step through. It should work fine in any system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sougata Chatterjee on Jan 11, 2008 12:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 00:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-import-and-export-statement/m-p/3255714#M777505</guid>
      <dc:creator>Sougata</dc:creator>
      <dc:date>2008-01-11T00:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: regarding import and export statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-import-and-export-statement/m-p/3255715#M777506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i use the same code what u given above but still&lt;/P&gt;&lt;P&gt;no data is exporting between the programs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 01:17:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-import-and-export-statement/m-p/3255715#M777506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-11T01:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: regarding import and export statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-import-and-export-statement/m-p/3255716#M777507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are those Type 1 programs ? Since SUBMIT will work only for those programs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, &lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 02:41:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-import-and-export-statement/m-p/3255716#M777507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-11T02:41:13Z</dc:date>
    </item>
  </channel>
</rss>

