<?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: Read internal table in memory in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-in-memory/m-p/929289#M60498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jesus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no way, in my knowledge to do so, as you are accessing standard function module. But you can do one thing, copy that standard function module and give it your name and add one parameter for that table in that and pass your table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it, if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jan 2005 09:58:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-01-24T09:58:27Z</dc:date>
    <item>
      <title>Read internal table in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-in-memory/m-p/929283#M60492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!! Is there a way to read an internal table that's not available in a program, but it's in the memory?... let's say i have a program with an internal table ITAB, in the program i call a function module where i need information from that internal table, but been the program standard i can't send the ITAB to the function module... is there a way to access that ITAB from the function module? i don't know if i can do it with field symbols or something like it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2005 22:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-in-memory/m-p/929283#M60492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-20T22:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-in-memory/m-p/929284#M60493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you can't access the internal table of a function module. Try looking, maybe there could be another function module within the function group that exported the internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2005 22:11:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-in-memory/m-p/929284#M60493</guid>
      <dc:creator>nablan_umar</dc:creator>
      <dc:date>2005-01-20T22:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-in-memory/m-p/929285#M60494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you help clarify?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want to access an ITAB from a FM without passing the ITAB as a parameter?  Doesn't this imply that you can change the FM?  If you can change it, then you can add the ITAB as a parameter and mark it as optional if this is an issue with existing users of the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is some reason why you do not want to change the interface of the FM, you could EXPORT the ITAB from your program and IMPORT the table in the FM.  Do help on EXPORT and see the EXPORT TO MEMORY option.  This will export your ITAB to the ABAP Memory which is available across a program and the FMs that it calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this help or have I misunderstood your problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2005 22:28:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-in-memory/m-p/929285#M60494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-20T22:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-in-memory/m-p/929286#M60495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree entirely with what Charles Folwell has written but if there is a reason you can not do any of the suggestions he has made then there is a technique that may work using field symbols. This allows you to get data which is not directly available but is stored somewhere within the memory stack, i.e. available in the calling program. The code to do this is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create field symbol&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Assign value of variable from calling prog to field symbol&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ASSIGN ('(SAPMM06E)RM06E-BSART') TO &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPMM06E being the program where the field exists and RM06E-BSART being the actual field name. &amp;lt;F&amp;gt; will now contain its value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2005 23:25:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-in-memory/m-p/929286#M60495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-20T23:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-in-memory/m-p/929287#M60496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can read "out of context memory" in ABAP, although it is an unofficial feature - I believe.  You construct a field symbol, but include the variable's owning program name.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: plnum_field(120) type c.
field-symbols: &amp;lt;fs_plnum&amp;gt; type any.
move '(SAPLBARM)RM61B-PLNUM' to plnum_field.
assign (plnum_field) to &amp;lt;fs_plnum&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jan 2005 08:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-in-memory/m-p/929287#M60496</guid>
      <dc:creator>thomas_jung</dc:creator>
      <dc:date>2005-01-21T08:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-in-memory/m-p/929288#M60497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jesus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well... there is indeed another way to do so. You could try an "export itab to memory" to save the itab, and then "import itab from memory" to read it back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps. BR,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jan 2005 08:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-in-memory/m-p/929288#M60497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-21T08:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table in memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-in-memory/m-p/929289#M60498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jesus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no way, in my knowledge to do so, as you are accessing standard function module. But you can do one thing, copy that standard function module and give it your name and add one parameter for that table in that and pass your table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it, if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2005 09:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table-in-memory/m-p/929289#M60498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-24T09:58:27Z</dc:date>
    </item>
  </channel>
</rss>

