<?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: selecting using pattern in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-using-pattern/m-p/3008761#M710961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;better you declare like this&lt;/P&gt;&lt;P&gt;tables : marc.&lt;/P&gt;&lt;P&gt;select-options : p_matnr for marc-matnr no-extension no intervals,&lt;/P&gt;&lt;P&gt;                       p_matnr for marc-werks no-extension no intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from marc where matnr in p_matnr and werks in p_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be easier other wise you have to write lot of codes to change the * in parameter  to %. And then you have to use in like.&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>Fri, 02 Nov 2007 06:48:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-02T06:48:12Z</dc:date>
    <item>
      <title>selecting using pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-using-pattern/m-p/3008758#M710958</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;&lt;/P&gt;&lt;P&gt; I want to use pattern while selecting data from the table .&lt;/P&gt;&lt;P&gt;Example.&lt;/P&gt;&lt;P&gt;p_matnr = abc12*&lt;/P&gt;&lt;P&gt;p_werks = *&lt;/P&gt;&lt;P&gt;select * from mara where matnr = p_matnr and werks = p_werks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how should be the coding while using the search pattern as given above p_matnr = abc12*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 06:29:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-using-pattern/m-p/3008758#M710958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T06:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: selecting using pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-using-pattern/m-p/3008759#M710959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use LIKE in the where condition to select the pattern related data like&lt;/P&gt;&lt;P&gt;select * from mara where matnr like 'ABC12%'.&lt;/P&gt;&lt;P&gt;see the correct syntax by pressing F1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 06:34:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-using-pattern/m-p/3008759#M710959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T06:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: selecting using pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-using-pattern/m-p/3008760#M710960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;select * from MARA into table IT_MARA where MATNR like 'ABC12%'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This can be used for ur purpose. Use of % gets all the Materials starting with ABC12%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 06:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-using-pattern/m-p/3008760#M710960</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-11-02T06:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: selecting using pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-using-pattern/m-p/3008761#M710961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;better you declare like this&lt;/P&gt;&lt;P&gt;tables : marc.&lt;/P&gt;&lt;P&gt;select-options : p_matnr for marc-matnr no-extension no intervals,&lt;/P&gt;&lt;P&gt;                       p_matnr for marc-werks no-extension no intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from marc where matnr in p_matnr and werks in p_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be easier other wise you have to write lot of codes to change the * in parameter  to %. And then you have to use in like.&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>Fri, 02 Nov 2007 06:48:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-using-pattern/m-p/3008761#M710961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T06:48:12Z</dc:date>
    </item>
  </channel>
</rss>

