<?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: how we replace '0000%' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237910#M1210431</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;instead of passing the hardcoded values ,first declare like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : val1 type c value '00005%'.and then use val one in the final select querry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Feb 2009 08:50:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-20T08:50:38Z</dc:date>
    <item>
      <title>how we replace '0000%'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237905#M1210426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , how to replaece LIKE '0005%' to improve the performance of quarry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT BELNR  WRBTR ZUONR HKONT SHKZG BUZEI&lt;/P&gt;&lt;P&gt;      INTO TABLE I_BSEG&lt;/P&gt;&lt;P&gt;      FROM BSEG&lt;/P&gt;&lt;P&gt;       FOR ALL ENTRIES IN I_BKPF&lt;/P&gt;&lt;P&gt;     WHERE BUKRS = P_BUKRS&lt;/P&gt;&lt;P&gt;       AND BELNR = I_BKPF-BELNR&lt;/P&gt;&lt;P&gt;       AND GJAHR IN S_GJAHR&lt;/P&gt;&lt;P&gt;       AND HKONT LIKE '00005%'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 04:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237905#M1210426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T04:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: how we replace '0000%'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237906#M1210427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Insteat you can remove the condition on SELECT statement and once you get the data and into internal table then filter out from it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;you can write like the below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : Var1 type c value '00005'.&lt;/P&gt;&lt;P&gt;concatenate  Var1 '%' into FINAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use the FINAL variable in the select WHERE cond..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sravan Kumar on Feb 20, 2009 5:36 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sravan Kumar on Feb 20, 2009 5:38 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 04:24:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237906#M1210427</guid>
      <dc:creator>former_member242255</dc:creator>
      <dc:date>2009-02-20T04:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: how we replace '0000%'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237907#M1210428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT belnr 
              wrbtr 
              zuonr
              hkont
              shkzg
              buzei  NTO TABLE i_bseg
                        FROM bseg
                        FOR ALL ENTRIES IN i_bkpf
                        WHERE bukrs = p_bukrs
                        AND belnr = i_bkpf-belnr
                        AND gjahr IN s_gjahr
                        AND hkont IN s_hkont.        " Declare a Select-option of HKONT and give full value '00005*'

LOOP AT i_bseg INTO wa_bseg.

IF wa_besg-hkont+0(5) = '00005'.
wa_bseg-flag = 'X'.                             " In your i_bseg internal table declare a field flag.
MODIFY i_bseg FROM wa_bseg INDEX sy-tabix TRANSPORTING flag.
ENDIF.

ENDLOOP.

DELETE i_bseg WHERE flag = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 04:41:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237907#M1210428</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2009-02-20T04:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: how we replace '0000%'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237908#M1210429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi , how to replaece LIKE '0005%' to improve the performance of quarry.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection is fine,ensure I_BKPF []  IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 08:04:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237908#M1210429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T08:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: how we replace '0000%'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237909#M1210430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;these variables determine your performance &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
WHERE BUKRS = P_BUKRS
AND BELNR = I_BKPF-BELNR
AND GJAHR IN S_GJAHR
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 08:46:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237909#M1210430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T08:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: how we replace '0000%'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237910#M1210431</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;instead of passing the hardcoded values ,first declare like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : val1 type c value '00005%'.and then use val one in the final select querry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 08:50:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237910#M1210431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T08:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: how we replace '0000%'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237911#M1210432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And to add to that do not include % in data declaration .i included that by mistake.&lt;/P&gt;&lt;P&gt;after declaring concatenate % into final_val.&lt;/P&gt;&lt;P&gt;then pass this final_val in where condition of select querry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 09:02:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237911#M1210432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T09:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: how we replace '0000%'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237912#M1210433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; And to add to that do not include % in data declaration .i included that by mistake.&lt;/P&gt;&lt;P&gt;&amp;gt; after declaring concatenate % into final_val.&lt;/P&gt;&lt;P&gt;&amp;gt; then pass this final_val in where condition of select querry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry, that is complete waste of time with zero impact.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 14:21:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237912#M1210433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T14:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: how we replace '0000%'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237913#M1210434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; sorry, that is complete waste of time with zero impact.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Ahh Siegfried - you do have a way with words &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, not wishing to pour more gasoline on the fire, I'll just add that it doesn't make much sense to use&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AND GJAHR IN S_GJAHR&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It was there in BKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Feb 20, 2009 9:31 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 14:30:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237913#M1210434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T14:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: how we replace '0000%'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237914#M1210435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Rob &lt;/P&gt;&lt;P&gt;I know ... sometimes I get the feeling, that clearer words help. I know that I will never have your patience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 15:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237914#M1210435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T15:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: how we replace '0000%'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237915#M1210436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now that they made me a moderator, I find that I have to bite my tongue a lot more often.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 15:55:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237915#M1210436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T15:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: how we replace '0000%'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237916#M1210437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sometimes you just have to be a bit &lt;EM&gt;boes&lt;/EM&gt; to get the message across &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 16:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237916#M1210437</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-02-20T16:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: how we replace '0000%'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237917#M1210438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi , how to replaece LIKE '0005%' to improve the performance of quarry.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;        AND HKONT LIKE '00005%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you don't have to!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your access pattern is best to express with a wildcard , just use it.&lt;/P&gt;&lt;P&gt;And if you put it &lt;STRONG&gt;at the trailing&lt;/STRONG&gt; end the use of an index is supported if your filter expression&lt;/P&gt;&lt;P&gt;is selective enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Siegfried already pointed out your problem are the other fields in the WHERE condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also look at the size of your FAE table - the used fields here should be supported by an appropriate index even more if it's huge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 10:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-we-replace-0000/m-p/5237917#M1210438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T10:43:39Z</dc:date>
    </item>
  </channel>
</rss>

