<?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: urgent -performance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769651#M907054</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;  IF NOT i_mara[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT mblnr                       " Material document&lt;/P&gt;&lt;P&gt;             mjahr                       " Material doc. year&lt;/P&gt;&lt;P&gt;             zeile                       " Item in material document&lt;/P&gt;&lt;P&gt;             bwart                       " Movement type&lt;/P&gt;&lt;P&gt;             matnr                       " Material number&lt;/P&gt;&lt;P&gt;             werks                       " Plant&lt;/P&gt;&lt;P&gt;             shkzg                       " Credit/Debit indicator&lt;/P&gt;&lt;P&gt;             dmbtr                       " Amount in loc. currency&lt;/P&gt;&lt;P&gt;             menge                       " Quantity&lt;/P&gt;&lt;P&gt;        FROM mseg&lt;/P&gt;&lt;P&gt;        INTO TABLE i_mseg&lt;/P&gt;&lt;P&gt;         FOR ALL ENTRIES IN i_mara&lt;/P&gt;&lt;P&gt;       WHERE matnr EQ i_mara-matnr&lt;/P&gt;&lt;P&gt;         AND werks EQ p_werks&lt;/P&gt;&lt;P&gt;         AND lgort IN r_lgort&lt;/P&gt;&lt;P&gt;         AND bwart IN r_bwart&lt;/P&gt;&lt;P&gt;         AND sobkz IN r_sobkz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This uses secondary index on mseg table......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u select more records... u program performance goes down....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No alternate for mseg table , I have tried a lot but no answers from any one...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to improve performance on the other part of ur program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2008 09:36:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-29T09:36:32Z</dc:date>
    <item>
      <title>urgent -performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769650#M907053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select a&lt;SUB&gt;mblnr a&lt;/SUB&gt;mjahr a&lt;SUB&gt;zeile a&lt;/SUB&gt;matnr a&lt;SUB&gt;lifnr a&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;           a&lt;SUB&gt;werks a&lt;/SUB&gt;menge&lt;/P&gt;&lt;P&gt;           b~budat&lt;/P&gt;&lt;P&gt;      from mseg as a join mkpf as b on a&lt;SUB&gt;mblnr = b&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;                                   and a&lt;SUB&gt;mjahr = b&lt;/SUB&gt;mjahr&lt;/P&gt;&lt;P&gt;      into corresponding fields of table it_mseg&lt;/P&gt;&lt;P&gt;      for all entries in it_vbap&lt;/P&gt;&lt;P&gt;      where a~werks = p_werks&lt;/P&gt;&lt;P&gt;        and a~bwart = '122'&lt;/P&gt;&lt;P&gt;        and b~budat in s_budat&lt;/P&gt;&lt;P&gt;        and a~matnr = it_vbap-matnr&lt;/P&gt;&lt;P&gt;        and a~werks = it_vbap-werks.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;can any one give alternate for this.........plz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 09:29:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769650#M907053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T09:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: urgent -performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769651#M907054</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;  IF NOT i_mara[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT mblnr                       " Material document&lt;/P&gt;&lt;P&gt;             mjahr                       " Material doc. year&lt;/P&gt;&lt;P&gt;             zeile                       " Item in material document&lt;/P&gt;&lt;P&gt;             bwart                       " Movement type&lt;/P&gt;&lt;P&gt;             matnr                       " Material number&lt;/P&gt;&lt;P&gt;             werks                       " Plant&lt;/P&gt;&lt;P&gt;             shkzg                       " Credit/Debit indicator&lt;/P&gt;&lt;P&gt;             dmbtr                       " Amount in loc. currency&lt;/P&gt;&lt;P&gt;             menge                       " Quantity&lt;/P&gt;&lt;P&gt;        FROM mseg&lt;/P&gt;&lt;P&gt;        INTO TABLE i_mseg&lt;/P&gt;&lt;P&gt;         FOR ALL ENTRIES IN i_mara&lt;/P&gt;&lt;P&gt;       WHERE matnr EQ i_mara-matnr&lt;/P&gt;&lt;P&gt;         AND werks EQ p_werks&lt;/P&gt;&lt;P&gt;         AND lgort IN r_lgort&lt;/P&gt;&lt;P&gt;         AND bwart IN r_bwart&lt;/P&gt;&lt;P&gt;         AND sobkz IN r_sobkz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This uses secondary index on mseg table......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u select more records... u program performance goes down....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No alternate for mseg table , I have tried a lot but no answers from any one...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to improve performance on the other part of ur program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 09:36:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769651#M907054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T09:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: urgent -performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769652#M907055</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;1. avoid into corresponding&lt;/P&gt;&lt;P&gt;2. split the join. first fetch the data from mseg. then based on the mblnr, mjahr and s_budat fetch the data from mkpf.&lt;/P&gt;&lt;P&gt;3. try to populate a range table for all werks put together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 09:48:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769652#M907055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T09:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: urgent -performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769653#M907056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;thanks.. today my first day of work... can u help me to optimize if i send u my program..plz plz...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 09:54:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769653#M907056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T09:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: urgent -performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769654#M907057</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;You can create a database view with this two tables and than select data from this view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For my case and with this same tables, worked fine.&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;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 14:44:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769654#M907057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T14:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: urgent -performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769655#M907058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi meena...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your total Select Query is incorrect Could You tell Wht You need  do actually...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 02:07:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769655#M907058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T02:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: urgent -performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769656#M907059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if not it_vbap[] is initial.&lt;/P&gt;&lt;P&gt;    select a&lt;SUB&gt;mblnr a&lt;/SUB&gt;mjahr a&lt;SUB&gt;zeile a&lt;/SUB&gt;matnr a&lt;SUB&gt;lifnr a&lt;/SUB&gt;ebeln   &lt;/P&gt;&lt;P&gt;              a&lt;SUB&gt;werks a&lt;/SUB&gt;menge b~budat&lt;/P&gt;&lt;P&gt;           into corresponding fields of table it_mseg&lt;/P&gt;&lt;P&gt;           from mseg as a&lt;/P&gt;&lt;P&gt;           inner join mkpf as b on a&lt;SUB&gt;mblnr = b&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;                                and a&lt;SUB&gt;mjahr = b&lt;/SUB&gt;mjahr&lt;/P&gt;&lt;P&gt;                                for all entries in it_vbap&lt;/P&gt;&lt;P&gt;                                where a~werks = p_werks&lt;/P&gt;&lt;P&gt;                                  and a~bwart = '122'&lt;/P&gt;&lt;P&gt;                                  and b~budat in s_budat&lt;/P&gt;&lt;P&gt;                                  and a~matnr = it_vbap-matnr&lt;/P&gt;&lt;P&gt;                                  and a~werks = it_vbap-werks.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This could correct but I suggest You not to Hard Code Movement type and try to declare a type wht Fields You need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 02:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769656#M907059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T02:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: urgent -performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769657#M907060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ..&lt;/P&gt;&lt;P&gt;thanks ..its vendor performance report. it takes 20 hrs to run. i need to optimize...&lt;/P&gt;&lt;P&gt;i tried to run but its not showing any output... how to check..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2008 13:18:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769657#M907060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-01T13:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: urgent -performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769658#M907061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Meena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is only this Select query You are Using in your whole program, the better way to check is ...try to select the data separetly from one one table using For all entries then you wil come to know whether the data is selecting or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try out..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 02:48:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769658#M907061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T02:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: urgent -performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769659#M907062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Meena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One quick question, have you limited the data going into the select?  I noticed that your for all entries table implies it's from VBAP (it_vbap) which could contain many entries for the same material/plant combinations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you limited this table (or a subset) to contain only a SINGLE entry for each material/plant code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Just a thought).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck with your tuning effort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 02:59:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769659#M907062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T02:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: urgent -performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769660#M907063</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;1. Get the index of each table.&lt;/P&gt;&lt;P&gt;2. Used the field order selection from top to bottom if no table  &lt;/P&gt;&lt;P&gt;    index created in each table.&lt;/P&gt;&lt;P&gt;3. Select to table consuidering the foreign key first before &lt;/P&gt;&lt;P&gt;    secondary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try out this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not it_vbap[] is initial.&lt;/P&gt;&lt;P&gt;  select a&lt;SUB&gt;mblnr a&lt;/SUB&gt;mjahr a&lt;SUB&gt;zeile a&lt;/SUB&gt;matnr a&lt;SUB&gt;lifnr a&lt;/SUB&gt;ebeln a&lt;SUB&gt;werks a&lt;/SUB&gt;menge b~budat&lt;/P&gt;&lt;P&gt;                        into table it_mseg&lt;/P&gt;&lt;P&gt;                        from mseg as a&lt;/P&gt;&lt;P&gt;                        inner join mkpf as b  &lt;/P&gt;&lt;P&gt;                                        on a&lt;SUB&gt;mandt = b&lt;/SUB&gt;mandt&lt;/P&gt;&lt;P&gt;                                       and a&lt;SUB&gt;mblnr = b&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;                                       and a&lt;SUB&gt;mjahr = b&lt;/SUB&gt;mjahr&lt;/P&gt;&lt;P&gt;                                      for all entries in it_vbap&lt;/P&gt;&lt;P&gt;                                      where a~werks = p_werks&lt;/P&gt;&lt;P&gt;                                      and   a~bwart = '122'&lt;/P&gt;&lt;P&gt;                                      and   b~budat in s_budat&lt;/P&gt;&lt;P&gt;                                      and   a~matnr = it_vbap-matnr&lt;/P&gt;&lt;P&gt;                                      and   a~werks = it_vbap-werks.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 03:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769660#M907063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T03:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: urgent -performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769661#M907064</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;MSEG&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;MANDT&lt;/P&gt;&lt;P&gt;MATNR&lt;/P&gt;&lt;P&gt;WERKS&lt;/P&gt;&lt;P&gt;BWART&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MKPF&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;MANDT&lt;/P&gt;&lt;P&gt;BUDAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no index exists on the above fields, please create secondary index for the &lt;/P&gt;&lt;P&gt;above tables for improving the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please create histograms for tables MKPF and MSEG tables as mentioned in SAP Notes 902675 and 921164.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also please ensure you have the value 5 for the following parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rsdb/max_blocking_factor&lt;/P&gt;&lt;P&gt;rsdb/min_in_blocking_factor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dileep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 10:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-performance/m-p/3769661#M907064</guid>
      <dc:creator>former_member251078</dc:creator>
      <dc:date>2008-05-02T10:05:28Z</dc:date>
    </item>
  </channel>
</rss>

