<?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: Internal table refreshing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-refreshing/m-p/2729753#M633623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example,  lets look at program ZRICH_0001, here  I am calling a PERFORM which is in program ZRICH_0002 and then pulling that internal table out of the memory stack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report  zrich_0001.

types: tt001 type table of t001.

field-symbols: &amp;lt;it001&amp;gt; type tt001.

data: pointer_string type string.
data: xt001 like line of &amp;lt;it001&amp;gt;.

start-of-selection.

* Call the perform in other program
  perform fill_up_it001 in program zrich_0002.

* Assign an internal table
  pointer_string = '(ZRICH_0002)IT001[]'.
  assign (pointer_string) to &amp;lt;it001&amp;gt;.

  loop at &amp;lt;it001&amp;gt; into xt001.
    write: / xt001-bukrs, xt001-butxt..
  endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the code for the second program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002 .

data: it001 type table of t001.

*---------------------------------------------------------------------*
*       FORM fill_up_it001                                            *
*---------------------------------------------------------------------*
form fill_up_it001.

  select * into table it001 from t001.

endform.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I think this will work for you, but the internal table from the PERFORM must be global variable in the main program, not local to the FORM, if it is local to the FORM, then this will not work.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Aug 2007 15:44:06 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-08-30T15:44:06Z</dc:date>
    <item>
      <title>Internal table refreshing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-refreshing/m-p/2729748#M633618</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;&lt;/P&gt;&lt;P&gt;   I  copyed the me2k(RM06EK00) program to Zprogram and doing some&lt;/P&gt;&lt;P&gt;modification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; My problem is I declared the internal table and some values are populating to&lt;/P&gt;&lt;P&gt;the internal table in the subroute PERFORM ekpo_ausgabe(sapfm06l).&lt;/P&gt;&lt;P&gt;(This is last perform statement before END-OF-Selection),&lt;/P&gt;&lt;P&gt;when it comes out of the perform statement and before End-of- selection my internal table values are refreshed automatically, I didn't refreshed the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me to get the values without refreshing my IT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 15:26:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-refreshing/m-p/2729748#M633618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T15:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table refreshing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-refreshing/m-p/2729749#M633619</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; May be this internal table local to that perform.. check and see...and also i see that you are using perform to call a subroutine that is part of other program... ensure that you have this internal table global to the entire program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 15:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-refreshing/m-p/2729749#M633619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T15:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table refreshing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-refreshing/m-p/2729750#M633620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that the internal table that is being fill in the PERFORM, is not the same memory area as the internal table in your calling program, you would need to pass this internal table back to the caller either by using the TABLES interface of the PERFORM, or using the EXPORT/IMPORT statements to pass it thru memory.  You would EXPORT the internal table in the PEFORM, and IMPORT in the calling program.   I gues this is an issue for you since,  the PERFORM actually is in program sapfm06l which you probably don't want to modify, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe we can access via a field symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 15:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-refreshing/m-p/2729750#M633620</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-30T15:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table refreshing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-refreshing/m-p/2729751#M633621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you declare the internal table in the subroutine???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, please declare the internal table globally.. When a subroutine is complete, the local variables of the subroutine are not accessible..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Vikas Bittera.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;Reward if useful&lt;/STRONG&gt;**&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 15:33:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-refreshing/m-p/2729751#M633621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T15:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table refreshing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-refreshing/m-p/2729752#M633622</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;Define your internal table in the include FM06LCEK. I think that will solve your issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 15:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-refreshing/m-p/2729752#M633622</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-08-30T15:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table refreshing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-refreshing/m-p/2729753#M633623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example,  lets look at program ZRICH_0001, here  I am calling a PERFORM which is in program ZRICH_0002 and then pulling that internal table out of the memory stack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report  zrich_0001.

types: tt001 type table of t001.

field-symbols: &amp;lt;it001&amp;gt; type tt001.

data: pointer_string type string.
data: xt001 like line of &amp;lt;it001&amp;gt;.

start-of-selection.

* Call the perform in other program
  perform fill_up_it001 in program zrich_0002.

* Assign an internal table
  pointer_string = '(ZRICH_0002)IT001[]'.
  assign (pointer_string) to &amp;lt;it001&amp;gt;.

  loop at &amp;lt;it001&amp;gt; into xt001.
    write: / xt001-bukrs, xt001-butxt..
  endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the code for the second program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002 .

data: it001 type table of t001.

*---------------------------------------------------------------------*
*       FORM fill_up_it001                                            *
*---------------------------------------------------------------------*
form fill_up_it001.

  select * into table it001 from t001.

endform.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I think this will work for you, but the internal table from the PERFORM must be global variable in the main program, not local to the FORM, if it is local to the FORM, then this will not work.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 15:44:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-refreshing/m-p/2729753#M633623</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-30T15:44:06Z</dc:date>
    </item>
  </channel>
</rss>

