<?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: select question in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838101#M356477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I use the combination of underscore and %.&lt;/P&gt;&lt;P&gt;like '___AAXY%'&lt;/P&gt;&lt;P&gt;i need to use underscore as the extraction position is fixed at position 4. is that correct?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jan 2007 08:12:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-16T08:12:27Z</dc:date>
    <item>
      <title>select question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838095#M356471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I would like to ask on select statement.&lt;/P&gt;&lt;P&gt;If I want to filter the data selection where the value is partly similar in 1 of the field, may I know how to write that?&lt;/P&gt;&lt;P&gt;for example in field A, I need to extract data where the position 4 with length 4 of the value in this field is AAXY. Actually the complete value i want to extract is&lt;/P&gt;&lt;P&gt;AAXY8530 , AAXY4532 and AAXY5643. Since only the first 4 letter the same, so may i know how to write it in select statement. i cannot use 'like' as i am afraid if AAXY not starts at position 4 also being extracted.&lt;/P&gt;&lt;P&gt;field A&lt;/P&gt;&lt;P&gt;012AAXY8530ZZZ&lt;/P&gt;&lt;P&gt;013AAXY4532AAA&lt;/P&gt;&lt;P&gt;014AAXY5643QQQ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select fieldA fieldB fieldC into table itab from table where fieldA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 07:23:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838095#M356471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T07:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: select question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838096#M356472</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;first get all the records and then use string operators &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use if conition with CO or CS to ur requirement inside a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 07:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838096#M356472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T07:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: select question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838097#M356473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select fieldA fieldB fieldC into table itab from table where fieldA like '%AAXY% .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will filter on fieldA if it contains 'AAXY' anywhere within fieldA value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 07:31:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838097#M356473</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-01-16T07:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: select question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838098#M356474</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;select fieldA fieldB fieldC into table itab from table where fieldA&lt;/P&gt;&lt;P&gt;like '___AAXY_______'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each character put underscore.So three underscores before AAXY and 7 underscores after AAXY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points by clicking the star on the left of reply,if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 07:39:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838098#M356474</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-01-16T07:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: select question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838099#M356475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First concatenate the '%' with the content u want.&lt;/P&gt;&lt;P&gt;For example u want some thing like 'AAXY', so u have to concatenate varible with 'AA' and '%' symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;CONCATENATE 'AA' '%' INTO l_v_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then next u can use like in the where clause of ur select statment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr matid zz08ol_at_kz zz08od_ers_dat AS zz08ol_ers_dat&lt;/P&gt;&lt;P&gt;                     FROM z08ol_material_1&lt;/P&gt;&lt;P&gt;                     INTO CORRESPONDING FIELDS OF TABLE p_it_agg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                  WHERE zz08ol_gruppennr LIKE l_v_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use something like the above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if u face any problem.&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, 16 Jan 2007 07:55:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838099#M356475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T07:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: select question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838100#M356476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use LIKE '____AAXY' in your select&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- sap online help -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f [NOT] LIKE g &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The condition is met for a table entry if the statement "f (does not) equal the pattern in g" is true for the values of f and g. f must always be a field descriptor, and g an ABAP field. If f has the value NULL, then the result of the check for the statement is unknown. Within a pattern, there are two special characters: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'_' (underscore) stands for any single character. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'%' (percentage sign) stands for any sequence of characters, including an empty string. &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, 16 Jan 2007 08:01:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838100#M356476</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-01-16T08:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: select question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838101#M356477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I use the combination of underscore and %.&lt;/P&gt;&lt;P&gt;like '___AAXY%'&lt;/P&gt;&lt;P&gt;i need to use underscore as the extraction position is fixed at position 4. is that correct?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 08:12:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838101#M356477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T08:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: select question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838102#M356478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 08:18:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838102#M356478</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-01-16T08:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: select question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838103#M356479</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;It is correct.Check my post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check here for further information.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/where.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/where.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points by clicking the star on the left of reply,if it helps.Close this thread by clicking blue star agaisnt the reply which solved your problem.If you solved on your own,click solved on my own.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 08:19:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838103#M356479</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-01-16T08:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: select question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838104#M356480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to put 4' _' for specifying you are matching with 5th onwards character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'_' means a single char and '%' means any no of character match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 08:19:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838104#M356480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T08:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: select question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838105#M356481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;thanks for helping. i will reward point accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 08:24:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-question/m-p/1838105#M356481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T08:24:52Z</dc:date>
    </item>
  </channel>
</rss>

