<?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 Customer search in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-search/m-p/3988191#M952755</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have customers number like 2, 21, 22 and 23...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF LT_CUST OCCURS 0,
        KUNNR LIKE KNA1-KUNNR,
        NAME1 LIKE KNA1-NAME1,
      END OF LT_CUST.

PARAMETERS: I_CUST LIKE KNA1-kunnr.

REPLACE ALL OCCURRENCES OF '*' IN I_CUST WITH '%'.
SELECT KUNNR NAME1 FROM KNA1 INTO TABLE LT_CUST WHERE KUNNR LIKE I_CUST.

LOOP AT LT_CUST.
WRITE: / LT_CUST-KUNNR, LT_CUST-NAME1.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i pass 2 as parameter then i get 2 in basic list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i pass 2* as parameter, i am not getting any values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i pass *2 as parameter, i am getting 2 in basic list, thats fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to achieve 2* as search parameter and the result is 2, 21, 22 and 23.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jun 2008 16:21:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-19T16:21:40Z</dc:date>
    <item>
      <title>Customer search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-search/m-p/3988191#M952755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have customers number like 2, 21, 22 and 23...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF LT_CUST OCCURS 0,
        KUNNR LIKE KNA1-KUNNR,
        NAME1 LIKE KNA1-NAME1,
      END OF LT_CUST.

PARAMETERS: I_CUST LIKE KNA1-kunnr.

REPLACE ALL OCCURRENCES OF '*' IN I_CUST WITH '%'.
SELECT KUNNR NAME1 FROM KNA1 INTO TABLE LT_CUST WHERE KUNNR LIKE I_CUST.

LOOP AT LT_CUST.
WRITE: / LT_CUST-KUNNR, LT_CUST-NAME1.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i pass 2 as parameter then i get 2 in basic list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i pass 2* as parameter, i am not getting any values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i pass *2 as parameter, i am getting 2 in basic list, thats fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to achieve 2* as search parameter and the result is 2, 21, 22 and 23.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 16:21:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-search/m-p/3988191#M952755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T16:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Customer search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-search/m-p/3988192#M952756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's a normal result. Go to tcode SE16, choose table KNA1, and make the same testing. The result will be the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This happens because of the CONVERTION routine. There is no field with patern '2*'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To achive your goal, test with '000000002&lt;STRONG&gt;', instead of '2&lt;/STRONG&gt;'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 16:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-search/m-p/3988192#M952756</guid>
      <dc:creator>valter_oliveira</dc:creator>
      <dc:date>2008-06-19T16:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Customer search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-search/m-p/3988193#M952757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Giri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give the parameter value in range...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CUTOMER_RANGE2-SIGN = 'I'.
        CUTOMER_RANGE2-OPTION = 'CP'.
        CUTOMER_RANGE2-LOW = CUSTOMER_NUMBER.
        APPEND CUTOMER_RANGE2.


      SELECT KUNNR NAME1 FROM KNA1
                         INTO CORRESPONDING FIELDS OF TABLE
                         LT_KNA1
                         WHERE KUNNR IN CUTOMER_RANGE1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will solve ur problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 16:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-search/m-p/3988193#M952757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T16:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Customer search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-search/m-p/3988194#M952758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giri, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should get the expected output with that code, please check again and let me know. If the problem is resolved please close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yugandhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 17:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-search/m-p/3988194#M952758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T17:02:34Z</dc:date>
    </item>
  </channel>
</rss>

