<?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: sql in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql/m-p/2095168#M436100</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;You can use the following two options:&lt;/P&gt;&lt;P&gt;A)&lt;/P&gt;&lt;P&gt;tables mara.&lt;/P&gt;&lt;P&gt;select single * from mara where matnr = p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B)&lt;/P&gt;&lt;P&gt;tables mara.&lt;/P&gt;&lt;P&gt;select sinle matnr from mara into mara-matnr where matnr = p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for error is when you are selecting some particular fields from a table you have to explicitly specify the target fields or variables.&lt;/P&gt;&lt;P&gt;You tried to select only the matnr field into the entire work area of table mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all useful answers. &lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Mar 2007 03:34:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-29T03:34:36Z</dc:date>
    <item>
      <title>sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql/m-p/2095166#M436098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;may i know why i got error for this? instead i must have into v_matnr then only is correct. i thought tables mara is already a working area defined, right?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables  mara.&lt;/P&gt;&lt;P&gt;select single matnr from mara where matnr = p_matnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 03:10:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql/m-p/2095166#M436098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T03:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql/m-p/2095167#M436099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tables mara.&lt;/P&gt;&lt;P&gt;select single matnr into mara-matnr from mara where matnr = p_matnr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes it is a table work area you have defined but for field selection in which field you want to store the value you have to specifically declare. or you can use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from mara where matnr = p_matnr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will fill all the corresponding fields in table work area mara.&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>Thu, 29 Mar 2007 03:18:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql/m-p/2095167#M436099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T03:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql/m-p/2095168#M436100</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;You can use the following two options:&lt;/P&gt;&lt;P&gt;A)&lt;/P&gt;&lt;P&gt;tables mara.&lt;/P&gt;&lt;P&gt;select single * from mara where matnr = p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B)&lt;/P&gt;&lt;P&gt;tables mara.&lt;/P&gt;&lt;P&gt;select sinle matnr from mara into mara-matnr where matnr = p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for error is when you are selecting some particular fields from a table you have to explicitly specify the target fields or variables.&lt;/P&gt;&lt;P&gt;You tried to select only the matnr field into the entire work area of table mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all useful answers. &lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2007 03:34:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql/m-p/2095168#M436100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-29T03:34:36Z</dc:date>
    </item>
  </channel>
</rss>

