<?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 on LIPS table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-on-lips-table/m-p/7694288#M1577266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, but the user don't want VBELN as mandatory field because they want to search delivery based on the material number and batch which will be given in selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i need to extract VBELN from LIPS when s_vbeln[]  is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if there are any other possibilities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kavya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Feb 2011 09:46:47 GMT</pubDate>
    <dc:creator>kavya_2017</dc:creator>
    <dc:date>2011-02-15T09:46:47Z</dc:date>
    <item>
      <title>Performance issue on LIPS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-on-lips-table/m-p/7694285#M1577263</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 need to know the delivery for particular batches and materials,Hence i am using the below select query in my program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln&lt;/P&gt;&lt;P&gt;             posnr&lt;/P&gt;&lt;P&gt;             matnr&lt;/P&gt;&lt;P&gt;             werks&lt;/P&gt;&lt;P&gt;             lgort&lt;/P&gt;&lt;P&gt;             charg&lt;/P&gt;&lt;P&gt;             lfimg&lt;/P&gt;&lt;P&gt;             meins FROM lips&lt;/P&gt;&lt;P&gt;            INTO TABLE int_lips&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN int_mchb&lt;/P&gt;&lt;P&gt;                     WHERE vbeln IN s_vbeln&lt;/P&gt;&lt;P&gt;                         AND pstyv IN s_pstyv&lt;/P&gt;&lt;P&gt;                         AND matnr EQ int_mchb-matnr&lt;/P&gt;&lt;P&gt;                         AND werks EQ int_mchb-werks&lt;/P&gt;&lt;P&gt;                        AND lgort EQ int_mchb-lgort&lt;/P&gt;&lt;P&gt;                        AND charg EQ int_mchb-charg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program is fine when delivery is given in the selection screen but it is taking lot of time when no delivery is entered in the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me how can i increase my program performance. Is there is any need to create the secondary index?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kavya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 07:44:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-on-lips-table/m-p/7694285#M1577263</guid>
      <dc:creator>kavya_2017</dc:creator>
      <dc:date>2011-02-15T07:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue on LIPS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-on-lips-table/m-p/7694286#M1577264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vbeln IN s_vbeln&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;slows down your query as the cost of IN operator is high. If it is empty then all records are processed. As this is the left most column in the table so it double slows down as the set of records can't be restrcited to smaller group before next fields are compared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best would be&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select-options s_vbeln ... obligatory.

"or
if s_vbeln[] is not initial.
  select ....
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 08:17:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-on-lips-table/m-p/7694286#M1577264</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2011-02-15T08:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue on LIPS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-on-lips-table/m-p/7694287#M1577265</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;Maybe it is better to use db view LIPS_VLPMA instead of LIPS for this looks via db table VLPMA with material number!&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;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 08:31:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-on-lips-table/m-p/7694287#M1577265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T08:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue on LIPS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-on-lips-table/m-p/7694288#M1577266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, but the user don't want VBELN as mandatory field because they want to search delivery based on the material number and batch which will be given in selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i need to extract VBELN from LIPS when s_vbeln[]  is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if there are any other possibilities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kavya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 09:46:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-on-lips-table/m-p/7694288#M1577266</guid>
      <dc:creator>kavya_2017</dc:creator>
      <dc:date>2011-02-15T09:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue on LIPS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-on-lips-table/m-p/7694289#M1577267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;kavya, why don't you use VLPMA table as suggested by Klaus?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When S_VBELN is empty you can get all the rowsfrom LIPS_VLPMA for all materials ... and if S_VBELN is not empty, you can use your existing query..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 16:49:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-on-lips-table/m-p/7694289#M1577267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T16:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue on LIPS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-on-lips-table/m-p/7694290#M1577268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must have 2 versions of the select statement.  One should be based on VBELN and one on Material number.  Simply add MATNR as a secondary index in SE11 and have 2 selects one with VBELN 1 without.  Use the hint option to make sure that your new MATNR index is picked up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 20:19:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-on-lips-table/m-p/7694290#M1577268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T20:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue on LIPS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-on-lips-table/m-p/7694291#M1577269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Klaus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion, it resolved my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 09:30:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-on-lips-table/m-p/7694291#M1577269</guid>
      <dc:creator>kavya_2017</dc:creator>
      <dc:date>2011-02-25T09:30:23Z</dc:date>
    </item>
  </channel>
</rss>

