<?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: About Select Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-statement/m-p/4819583#M1127935</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;I guess this code should help you to get the data starting with M as first letter in MATNR. I have bolded the where condition in which you have to use a variable where you concatenate the first letter and % for the selection. % is something like * when you are searching. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_mara TYPE TABLE OF mara.&lt;/P&gt;&lt;P&gt;DATA: wa_mara TYPE mara.&lt;/P&gt;&lt;P&gt;DATA: l_variable(2) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'M' '%' INTO l_variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM mara&lt;/P&gt;&lt;P&gt;         INTO TABLE it_mara&lt;/P&gt;&lt;P&gt;         &lt;STRONG&gt;WHERE matnr LIKE l_variable.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2008 13:05:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-24T13:05:27Z</dc:date>
    <item>
      <title>About Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-statement/m-p/4819580#M1127932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to select records from mara table which first letter starts with "M". how should i write it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Kumar m&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 12:55:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-statement/m-p/4819580#M1127932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-24T12:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: About Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-statement/m-p/4819581#M1127933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am wating for answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 13:02:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-statement/m-p/4819581#M1127933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-24T13:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: About Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-statement/m-p/4819582#M1127934</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;  Which field would you like to choose?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You may try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select field1 field2 ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  into table i_tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  from mara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  where condition_field like 'M%'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 13:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-statement/m-p/4819582#M1127934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-24T13:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: About Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-statement/m-p/4819583#M1127935</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;I guess this code should help you to get the data starting with M as first letter in MATNR. I have bolded the where condition in which you have to use a variable where you concatenate the first letter and % for the selection. % is something like * when you are searching. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_mara TYPE TABLE OF mara.&lt;/P&gt;&lt;P&gt;DATA: wa_mara TYPE mara.&lt;/P&gt;&lt;P&gt;DATA: l_variable(2) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'M' '%' INTO l_variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM mara&lt;/P&gt;&lt;P&gt;         INTO TABLE it_mara&lt;/P&gt;&lt;P&gt;         &lt;STRONG&gt;WHERE matnr LIKE l_variable.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 13:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-statement/m-p/4819583#M1127935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-24T13:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: About Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-statement/m-p/4819584#M1127936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;      Do u mean to say that u want records from mara with perticular firlds (e.g. matnr) start with M.&lt;/P&gt;&lt;P&gt;Then u can try following,&lt;/P&gt;&lt;P&gt; select all data from mara into itab.&lt;/P&gt;&lt;P&gt;str = 'M*'.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;if itab-matnr = str1.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;delete itab index sy-tabix.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 13:08:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-select-statement/m-p/4819584#M1127936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-24T13:08:25Z</dc:date>
    </item>
  </channel>
</rss>

