<?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 statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1827166#M352782</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 if konw vbpa-vbeln and vbpa-posnr then based on vbpa-parvw u can get vbpa-kunnr with out INOT clause...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here your can use select single statement to get the required data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single kunnr into gv_kunnr&lt;/P&gt;&lt;P&gt;   from vbpa&lt;/P&gt;&lt;P&gt;   where vbeln = vbeln&lt;/P&gt;&lt;P&gt;     and  posnr = posnr&lt;/P&gt;&lt;P&gt;     and  parvw = parvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;   komkcv-zzkunnr = gv_kunnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jan 2007 09:57:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-22T09:57:49Z</dc:date>
    <item>
      <title>Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1827161#M352777</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 would like to fetch VBPA-KUNNR based on VBPA-PARVW = 'SH'.&lt;/P&gt;&lt;P&gt;Then i need to move VBPA-KUNNR to KOMKCV-ZZKUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible for me to write the SELECT statement  without using INTO clause..???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If YES, how to write the code,...?????? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 09:38:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1827161#M352777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T09:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1827162#M352778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to use select without into clause then u need to create the workarea for the table using tables statament. Try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select single * from mara where matnr = 'ABACD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful reward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 09:41:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1827162#M352778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T09:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1827163#M352779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i dont find any filed named ZZKUNNR, is it right field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 09:42:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1827163#M352779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T09:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1827164#M352780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT kunnr from
             vbpa
            INTO v_kunnr
           WHERE parvw = 'SH'.

IF sy-subrc = 0.
   KOMKCV-ZZKUNNR = v_kunnr.
 Pass the other values and 
  UPDATE TABLE KOMKCV. (check syntax)
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any way u have to use INTO either a variable or internal table o workarea.&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 09:43:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1827164#M352780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T09:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1827165#M352781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select * from VBPA where PARVW = 'SH'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;so data gets selected into header of VBPA&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;  komkcv-zzkunnr = vbpa-kunnr.&lt;/P&gt;&lt;P&gt;  update table komkcv where zzkunnr = vbpa-kunnr.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award Points....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 09:51:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1827165#M352781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T09:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1827166#M352782</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 if konw vbpa-vbeln and vbpa-posnr then based on vbpa-parvw u can get vbpa-kunnr with out INOT clause...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here your can use select single statement to get the required data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single kunnr into gv_kunnr&lt;/P&gt;&lt;P&gt;   from vbpa&lt;/P&gt;&lt;P&gt;   where vbeln = vbeln&lt;/P&gt;&lt;P&gt;     and  posnr = posnr&lt;/P&gt;&lt;P&gt;     and  parvw = parvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;   komkcv-zzkunnr = gv_kunnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2007 09:57:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1827166#M352782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-22T09:57:49Z</dc:date>
    </item>
  </channel>
</rss>

