<?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: Dynamic internal tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-tables/m-p/4002740#M956282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;  Why do you want to create a NEW Internal table and not REUSE the same?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;move-correspoding itab to itab_new.&lt;/P&gt;&lt;P&gt;appen itab_new.&lt;/P&gt;&lt;P&gt;count = count + 1.&lt;/P&gt;&lt;P&gt;if count = 10000.&lt;/P&gt;&lt;P&gt;call function module.....&lt;/P&gt;&lt;P&gt;refresh itab_new.&lt;/P&gt;&lt;P&gt;count = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2008 14:12:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-10T14:12:04Z</dc:date>
    <item>
      <title>Dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-tables/m-p/4002739#M956281</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 have a file with 1 million records and I am getting all the records into a internal table.Now I am appending 10000 rows to another internal table.This internal table will be passed to an function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wnat to create a new internal table for every 10000 reocrds and pass it to function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do we achieve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 14:08:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-tables/m-p/4002739#M956281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T14:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-tables/m-p/4002740#M956282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;  Why do you want to create a NEW Internal table and not REUSE the same?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;move-correspoding itab to itab_new.&lt;/P&gt;&lt;P&gt;appen itab_new.&lt;/P&gt;&lt;P&gt;count = count + 1.&lt;/P&gt;&lt;P&gt;if count = 10000.&lt;/P&gt;&lt;P&gt;call function module.....&lt;/P&gt;&lt;P&gt;refresh itab_new.&lt;/P&gt;&lt;P&gt;count = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 14:12:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-tables/m-p/4002740#M956282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T14:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-tables/m-p/4002741#M956283</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 am doing parallel processing,calling FM in parallel processing mode to update internal table records into DB table.Actually my input file has millions of records and I want to update DB table using parallel processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please suggest me best approach to process six millons of records from single input file using Parallel processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 14:16:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-tables/m-p/4002741#M956283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T14:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-tables/m-p/4002742#M956284</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;Suggest me best approach for the above scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 15:03:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-tables/m-p/4002742#M956284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T15:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-tables/m-p/4002743#M956285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,  You can use Append Lines of option to append rows of one internal table to other..  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just try and enhance the below logic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE ITAB1 LINES zl_lines. (Get the total no. of lines)&lt;/P&gt;&lt;P&gt;ZL_DIV = ZL_LINES DIV 10000.  &lt;/P&gt;&lt;P&gt;ZL_REM = ZL_LINES MOD 10000. &lt;/P&gt;&lt;P&gt;IF ZL_REM &amp;gt; 0. &lt;/P&gt;&lt;P&gt;ZL_DIV = ZL_DIV + 1. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; zl_start = 1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DO ZL_DIV times. &lt;/P&gt;&lt;P&gt;zl_end = zl_start + 10000&lt;/P&gt;&lt;P&gt;"Append Lines of itab1 from zl_start to zl_end TO itab2".&lt;/P&gt;&lt;P&gt;zl_start = zl_end + 1. &lt;/P&gt;&lt;P&gt;CALL YOUR FM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swaroop Patri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 15:27:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-tables/m-p/4002743#M956285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T15:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-tables/m-p/4002744#M956286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swaroop,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing exactly the same as you suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point here is, I am calling the FM in parallel processing mode by passing the internal table say ITAB1.This will be executed in a different work process.meanwhile ,I want to process another set of records using ITAB2 and update the z-table in parallel proc mode using another workprocess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the right approach? Can we use same int tab (ITAB1) repeatedly in parallel processing. I am not sure abt this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 15:42:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-tables/m-p/4002744#M956286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T15:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-tables/m-p/4002745#M956287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srini, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you are refreshing Itab1 for each loop and calling the FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO ZL_DIV times. &lt;/P&gt;&lt;P&gt;zl_end = zl_start + 10000&lt;/P&gt;&lt;P&gt;Refresh Itab2. &lt;/P&gt;&lt;P&gt;"Append Lines of itab1 from zl_start to zl_end TO itab2".&lt;/P&gt;&lt;P&gt;zl_start = zl_end + 1. &lt;/P&gt;&lt;P&gt;CALL YOUR FM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should not have any effect until there is no dependency on the data which you are passing in the first run to the consecutive calls to the Fm. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swaroop patri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 15:50:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-tables/m-p/4002745#M956287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T15:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-tables/m-p/4002746#M956288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swarup,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing exctly the same. I am refreshing Internal table after calling FM and again appending another set of records to the same internal table to continue the process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after calling FM in parallel processing mode,Can we refersh the ITAB and use the same to append another set of records. Right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the logic i am using,&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ DATASET s_fname INTO &lt;STRONG&gt;it_item&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;some calculations&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Append it_item.&lt;/P&gt;&lt;P&gt;Count = Count + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF Count = 300k.&lt;/P&gt;&lt;P&gt;Call FM to update the DB table using parallel processing by passing &lt;STRONG&gt;it_item&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Clear it_item.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Refresh it_item.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Count = 0.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the above approach correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 16:06:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-tables/m-p/4002746#M956288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T16:06:50Z</dc:date>
    </item>
  </channel>
</rss>

