<?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: Question about buffered internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-buffered-internal-table/m-p/7607632#M1569003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alvin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you know what you do, if there is no function in this function group that initializes the internal table, you can use the dynamic assign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But before doing so, you should find out if it is possible to clear the internal table by calling the first FM with specific parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If want to use the dynamic assign, it goes like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'FM1'
*  ...
FIELD-SYMBOLS:
  &amp;lt;any&amp;gt; TYPE ANY.
ASSIGN  ('(''PROGNAME'')ITAB[]') TO &amp;lt;any&amp;gt;.
CLEAR &amp;lt;any&amp;gt;.
CALL FUNCTION 'FM2'
*  ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;where PROGNAME is the function group main program and itab is the name of the internal table declared globally in the function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Jan 2011 15:33:27 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2011-01-09T15:33:27Z</dc:date>
    <item>
      <title>Question about buffered internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-buffered-internal-table/m-p/7607627#M1568998</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;Need some advice. In my program, I'm calling 2 std FMs (from the same function group). Inside the first FM, it's populating a global internal table with some values. Then inside the 2nd FM, it's reading this internal table. How can I refresh this internal table (since this table doesn't belongs to my program) so that the 2nd FM will read an empty table? Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jan 2011 00:17:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-buffered-internal-table/m-p/7607627#M1568998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-09T00:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Question about buffered internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-buffered-internal-table/m-p/7607628#M1568999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think it is possible, unless you make the first function module as a custom one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jan 2011 03:05:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-buffered-internal-table/m-p/7607628#M1568999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-09T03:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Question about buffered internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-buffered-internal-table/m-p/7607629#M1569000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't. I need both FMs as how they are. I'm thinking if it will works if I use STARTING NEW TASK for the 2nd FM. I do not want to use Enhancement Point either. So, if there's any other method, please advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jan 2011 03:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-buffered-internal-table/m-p/7607629#M1569000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-09T03:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Question about buffered internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-buffered-internal-table/m-p/7607630#M1569001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alvin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to find out a function module from the same function group which can initialize the global internal tables and buffers of the function group. &lt;/P&gt;&lt;P&gt;If you cant find one then you can create a z function module to do the initialization and call in betwen the two FMs taht you are referring to.&lt;/P&gt;&lt;P&gt;This is relatively easy compared to handiling paraller processing.&lt;/P&gt;&lt;P&gt;To call the function module using STARTING NEW TASK it should be remotely enabled.&lt;/P&gt;&lt;P&gt;Each task ID defines a separate RFC connection with its own context,So if you want to use some other global data which was set by the first FM then  i think it will not be available for the second FM if you use paraller processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please correct me i may be wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jan 2011 13:52:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-buffered-internal-table/m-p/7607630#M1569001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-09T13:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Question about buffered internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-buffered-internal-table/m-p/7607631#M1569002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could certainly access the memory directly and kill it, but it's not a good approach.  Generally, when there's a dependency like that, the function group will have an initialization function to refresh all of the tables assigned to the group.  Have you checked?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jan 2011 14:34:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-buffered-internal-table/m-p/7607631#M1569002</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-01-09T14:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Question about buffered internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-buffered-internal-table/m-p/7607632#M1569003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alvin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you know what you do, if there is no function in this function group that initializes the internal table, you can use the dynamic assign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But before doing so, you should find out if it is possible to clear the internal table by calling the first FM with specific parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If want to use the dynamic assign, it goes like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'FM1'
*  ...
FIELD-SYMBOLS:
  &amp;lt;any&amp;gt; TYPE ANY.
ASSIGN  ('(''PROGNAME'')ITAB[]') TO &amp;lt;any&amp;gt;.
CLEAR &amp;lt;any&amp;gt;.
CALL FUNCTION 'FM2'
*  ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;where PROGNAME is the function group main program and itab is the name of the internal table declared globally in the function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jan 2011 15:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-buffered-internal-table/m-p/7607632#M1569003</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-01-09T15:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Question about buffered internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-buffered-internal-table/m-p/7607633#M1569004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to see if there's such FM in the function group. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens... I totally forgot about the dynamic assign. Will resort to that if there's no such FM to refresh the buffer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 01:24:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-buffered-internal-table/m-p/7607633#M1569004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-10T01:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Question about buffered internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-buffered-internal-table/m-p/7607634#M1569005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All, unfortunately, there's no FM to clear the buffer. I think dynamic assign is the way to go, as suggested by Clemens.&lt;/P&gt;&lt;P&gt;Thanks again to all, especially to Clemens!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 02:20:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-buffered-internal-table/m-p/7607634#M1569005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-10T02:20:39Z</dc:date>
    </item>
  </channel>
</rss>

