<?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: Transferring an Internal table from one Function Module to another in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-an-internal-table-from-one-function-module-to-another/m-p/3078890#M730175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd agree with April that the easiest way to pass data directly from FM1 to FM2 is via "tables", but what is your overall code structure i.e. are you going:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Program
  Call Function FM1
back to Program
  Call Function FM1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or are you going:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Program 
  Call Function FM1
    Call Function FM2 from FM1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;In either case, I would expect the export / import to be working fine, at least it seem to when I tried it using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;export lt_data from lt_data to memory id 'Z:1234'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import lt_data to lt_data from memory id 'Z:1234'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Nov 2007 02:54:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-22T02:54:42Z</dc:date>
    <item>
      <title>Transferring an Internal table from one Function Module to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-an-internal-table-from-one-function-module-to-another/m-p/3078884#M730169</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;I need to transfer an Internal Table from one FM to another. I've tried the statements IMPORT IT from Memory ID and EXPORT IT to Memory ID, but this is not working. I think the reason is different session or diff LUW, I can not use SET and GET Parametr syntax, as I will not be able to pass Internal Tables through it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any1 please give a solution on this?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 07:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-an-internal-table-from-one-function-module-to-another/m-p/3078884#M730169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T07:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring an Internal table from one Function Module to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-an-internal-table-from-one-function-module-to-another/m-p/3078885#M730170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abhishek,&lt;/P&gt;&lt;P&gt;Use IMPORT IT from Memory ID and EXPORT IT to Memory ID &amp;amp; free memory id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do reward if it is helpfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srimanta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 07:17:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-an-internal-table-from-one-function-module-to-another/m-p/3078885#M730170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T07:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring an Internal table from one Function Module to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-an-internal-table-from-one-function-module-to-another/m-p/3078886#M730171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srimanta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As written, I've already tried it and it is not working eventhough the table names used are the same in both the FMs, the reason is that there is no interlink between the FMs like a SUBMIT program or something like that, hence the same LUW is not there and that is why I am unable to get the IT data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 07:30:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-an-internal-table-from-one-function-module-to-another/m-p/3078886#M730171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T07:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring an Internal table from one Function Module to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-an-internal-table-from-one-function-module-to-another/m-p/3078887#M730172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If IMPORT/EXPORT isn't working as you say, because the two FM are in different memory sessions, then you'll need to write/read the data to/from a db table.  If you're feeling brave, you could use the persistent object framework.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 07:37:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-an-internal-table-from-one-function-module-to-another/m-p/3078887#M730172</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-11-21T07:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring an Internal table from one Function Module to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-an-internal-table-from-one-function-module-to-another/m-p/3078888#M730173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;How did you write the import / export statements ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this code&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;" in the calling program / function
 
DATA: wa_indx TYPE indx.
 EXPORT tab = itab TO DATABASE indx(xy)
    FROM wa_indx
    CLIENT sy-mandt
    ID 'DETAILLIST'.
 
 
" in the called program / function
 
DATA wa_indx LIKE indx.
* imports from database the list sent by the calling program
    IMPORT tab = itab FROM DATABASE indx(xy) TO wa_indx CLIENT sy-mandt
      ID 'DETAILLIST'.
 
* deletes the data to save wastage of memory
    DELETE FROM DATABASE indx(xy)
      CLIENT sy-mandt
      ID 'DETAILLIST'.&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;" note that the declaration of itab must be present in both programs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 07:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-an-internal-table-from-one-function-module-to-another/m-p/3078888#M730173</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-11-21T07:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring an Internal table from one Function Module to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-an-internal-table-from-one-function-module-to-another/m-p/3078889#M730174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there.  Are these custom function modules or standard ones?  If they are custom ones, could you just add a table to the "Tables" tab of your function module (whichever one you need to pass it to) and pass the values directly to the second function module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- April King&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 20:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-an-internal-table-from-one-function-module-to-another/m-p/3078889#M730174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T20:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Transferring an Internal table from one Function Module to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-an-internal-table-from-one-function-module-to-another/m-p/3078890#M730175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd agree with April that the easiest way to pass data directly from FM1 to FM2 is via "tables", but what is your overall code structure i.e. are you going:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Program
  Call Function FM1
back to Program
  Call Function FM1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or are you going:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Program 
  Call Function FM1
    Call Function FM2 from FM1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;In either case, I would expect the export / import to be working fine, at least it seem to when I tried it using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;export lt_data from lt_data to memory id 'Z:1234'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import lt_data to lt_data from memory id 'Z:1234'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2007 02:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transferring-an-internal-table-from-one-function-module-to-another/m-p/3078890#M730175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-22T02:54:42Z</dc:date>
    </item>
  </channel>
</rss>

