<?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: Performance issue while fetching AFRU Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-afru-table/m-p/9330165#M1729199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Frisoni,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; Using the below query am getting error like: "When you use the addition "FOR ALL ENTRIES IN itab", the fields "CHARG"&amp;nbsp; and "GIT_MSEG_CONV-CHARG" must have the same type and the same length." &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I think CHARG.- is 10&amp;nbsp; But LTXA1 is 40???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SELECT charg&lt;/P&gt;&lt;P&gt;FROM afpo&lt;/P&gt;&lt;P&gt;INTO TABLE git_afpo&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN git_mseg_conv&lt;/P&gt;&lt;P&gt;WHERE charg = git_mseg_conv-charg.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Mar 2013 16:15:27 GMT</pubDate>
    <dc:creator>vijay_kumar134</dc:creator>
    <dc:date>2013-03-27T16:15:27Z</dc:date>
    <item>
      <title>Performance issue while fetching AFRU Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-afru-table/m-p/9330160#M1729194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The below query's are taking more time for execution, please guide me for performance improvement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;if git_mseg_conv is not initial.&lt;/P&gt;&lt;P&gt;open cursor l_cl for&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;select ltxa1 rueck&amp;nbsp; rmzhl &lt;BR /&gt;from afru&lt;/P&gt;&lt;P&gt;for all entries in git_mseg_conv&lt;/P&gt;&lt;P&gt;where ltxa1 = git_mseg_conv-charg and&lt;/P&gt;&lt;P&gt;werks = p_werks&lt;/P&gt;&lt;P&gt;%_hints oracle 'INDEX("AFRU" "AFRU~MS2")'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if l_cl is not initial.&lt;/P&gt;&lt;P&gt;fetch next cursor l_cl into table git_afru_cast.&lt;/P&gt;&lt;P&gt;close cursor l_cl.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;endif.&lt;/P&gt;&lt;P&gt;----&lt;BR /&gt;if not git_aufk is initial.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select rueck rmzhl ltxa1 aufnr&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from afru&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into table git_afru&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for all entries in git_aufk&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where aufnr = git_aufk-aufnr and&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ltxa1 in s_charg.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&amp;nbsp; endif.&lt;BR /&gt;&amp;nbsp; delete git_afru where ltxa1 eq ' '.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Viji.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 11:54:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-afru-table/m-p/9330160#M1729194</guid>
      <dc:creator>vijay_kumar134</dc:creator>
      <dc:date>2013-03-27T11:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while fetching AFRU Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-afru-table/m-p/9330161#M1729195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems that if you don't have any ordem in git_aufk you need to get Order Confirmation for a batch in a whole plant. It mens you are need to search for all entries in afru to check the batch.&lt;/P&gt;&lt;P&gt;You can certainly create an index in AFRU-CHARG, but maybe you should try another approach.&lt;/P&gt;&lt;P&gt;You can try like this:&lt;/P&gt;&lt;P&gt;Fetch AFPO by CHARG. (maybe create an index by charg)&lt;/P&gt;&lt;P&gt;Fetch AFKO by WERKS with AFPO entries found (AUFNR)&lt;/P&gt;&lt;P&gt;Fetch AFVC by AUFPL with AFKO entries found (AUFPL)&lt;/P&gt;&lt;P&gt;Fetch AFRU by RUECK with AFVC entries found (RUECK)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Certainly are other options, you just need to find the one with fewer results in first selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Frisoni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 13:23:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-afru-table/m-p/9330161#M1729195</guid>
      <dc:creator>guilherme_frisoni</dc:creator>
      <dc:date>2013-03-27T13:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while fetching AFRU Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-afru-table/m-p/9330162#M1729196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your reply Frisoni .&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Am not understand your alternative way you suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 13:39:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-afru-table/m-p/9330162#M1729196</guid>
      <dc:creator>vijay_kumar134</dc:creator>
      <dc:date>2013-03-27T13:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while fetching AFRU Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-afru-table/m-p/9330163#M1729197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, let's try another explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are selection AFRU by LTXA1 = CHARG.&lt;/P&gt;&lt;P&gt;Probably in any point AFRU-LTXA1 is filled with CHARG. But LTXA1 is a text field without index, and a search by it can be very bad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, let's try to get this charg in another way, and then select AFRU by it's index field RUECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can start selection all orders that have CHARG meeting our conditions.&lt;/P&gt;&lt;P&gt;Select *&lt;/P&gt;&lt;P&gt;&amp;nbsp; from AFPO&lt;/P&gt;&lt;P&gt;&amp;nbsp; into IT_AFPO&lt;/P&gt;&lt;P&gt;&amp;nbsp; for all entries in git_mseg_conv&lt;/P&gt;&lt;P&gt;&amp;nbsp; where CHARG = git_mseg_conv-charg.&lt;/P&gt;&lt;P&gt;" For now we have all orders with your batchs (CHARG).&lt;/P&gt;&lt;P&gt;Select *&lt;/P&gt;&lt;P&gt;&amp;nbsp; from AFKO&lt;/P&gt;&lt;P&gt;&amp;nbsp; into IT_AFKO&lt;/P&gt;&lt;P&gt;&amp;nbsp; for all entries in IT_AFPO&lt;/P&gt;&lt;P&gt;&amp;nbsp; where AUFNR = IT_AFPO-AUFNR and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WERKS = p_werks.&lt;BR /&gt;" Now we all orders filtered by werks too&lt;/P&gt;&lt;P&gt;Select *&lt;/P&gt;&lt;P&gt;&amp;nbsp; from afvc&lt;/P&gt;&lt;P&gt;&amp;nbsp; into IT_AFVC&lt;/P&gt;&lt;P&gt;&amp;nbsp; for all entries in IT_AFPO&lt;/P&gt;&lt;P&gt;&amp;nbsp; where AUFPL = IT_AFPO-AUFPL.&lt;/P&gt;&lt;P&gt;" Now we have all operations that match CHARG and WERKS parameters&lt;/P&gt;&lt;P&gt;Select *&lt;/P&gt;&lt;P&gt;&amp;nbsp; from AFRU&lt;/P&gt;&lt;P&gt;&amp;nbsp; into IT_AFRU&lt;/P&gt;&lt;P&gt;&amp;nbsp; for all entries in IT_AFVC&lt;/P&gt;&lt;P&gt;&amp;nbsp; where RUECK = IT_AFVC-RUECK.&lt;/P&gt;&lt;P&gt;" Now, we should get the same results you need. All Confirmations that match initial CHARG and WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in this scenario, we used most key fields, and all search have been doing with few entries each time we go forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Frisoni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 13:56:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-afru-table/m-p/9330163#M1729197</guid>
      <dc:creator>guilherme_frisoni</dc:creator>
      <dc:date>2013-03-27T13:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while fetching AFRU Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-afru-table/m-p/9330164#M1729198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try this way and let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways&amp;nbsp; thank you for your effort.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 14:36:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-afru-table/m-p/9330164#M1729198</guid>
      <dc:creator>vijay_kumar134</dc:creator>
      <dc:date>2013-03-27T14:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while fetching AFRU Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-afru-table/m-p/9330165#M1729199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Frisoni,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; Using the below query am getting error like: "When you use the addition "FOR ALL ENTRIES IN itab", the fields "CHARG"&amp;nbsp; and "GIT_MSEG_CONV-CHARG" must have the same type and the same length." &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I think CHARG.- is 10&amp;nbsp; But LTXA1 is 40???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SELECT charg&lt;/P&gt;&lt;P&gt;FROM afpo&lt;/P&gt;&lt;P&gt;INTO TABLE git_afpo&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN git_mseg_conv&lt;/P&gt;&lt;P&gt;WHERE charg = git_mseg_conv-charg.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 16:15:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-afru-table/m-p/9330165#M1729199</guid>
      <dc:creator>vijay_kumar134</dc:creator>
      <dc:date>2013-03-27T16:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while fetching AFRU Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-afru-table/m-p/9330166#M1729200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Frisoni,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; Using the below query am getting error like: "When you use the addition "FOR ALL ENTRIES IN itab", the fields "CHARG"&amp;nbsp; and "GIT_MSEG_CONV-CHARG" must have the same type and the same length." &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I think CHARG.- is 10&amp;nbsp; But LTXA1 is 40???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SELECT charg&lt;/P&gt;&lt;P&gt;FROM afpo&lt;/P&gt;&lt;P&gt;INTO TABLE git_afpo&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN git_mseg_conv&lt;/P&gt;&lt;P&gt;WHERE charg = git_mseg_conv-charg.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 16:15:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-afru-table/m-p/9330166#M1729200</guid>
      <dc:creator>vijay_kumar134</dc:creator>
      <dc:date>2013-03-27T16:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while fetching AFRU Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-afru-table/m-p/9330167#M1729201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Frisoni,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; Using the below query am getting error like: "When you use the addition "FOR ALL ENTRIES IN itab", the fields "CHARG"&amp;nbsp; and "GIT_MSEG_CONV-CHARG" must have the same type and the same length." &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I think CHARG.- is 10&amp;nbsp; But LTXA1 is 40???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SELECT charg&lt;/P&gt;&lt;P&gt;FROM afpo&lt;/P&gt;&lt;P&gt;INTO TABLE git_afpo&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN git_mseg_conv&lt;/P&gt;&lt;P&gt;WHERE charg = git_mseg_conv-charg.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SELECT charg&lt;/P&gt;&lt;P&gt;FROM afpo&lt;/P&gt;&lt;P&gt;INTO TABLE git_afpo&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN git_mseg_conv&lt;/P&gt;&lt;P&gt;WHERE charg = git_mseg_conv-charg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 16:17:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-afru-table/m-p/9330167#M1729201</guid>
      <dc:creator>vijay_kumar134</dc:creator>
      <dc:date>2013-03-27T16:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue while fetching AFRU Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-afru-table/m-p/9330168#M1729202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do you get GIT_MSEG_CONV-CHARG? If it comes from MSEG its type is already CHAR10. Try to change GIT_MSEG_CONV-CHARG type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frisoni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 16:23:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-afru-table/m-p/9330168#M1729202</guid>
      <dc:creator>guilherme_frisoni</dc:creator>
      <dc:date>2013-03-27T16:23:25Z</dc:date>
    </item>
  </channel>
</rss>

