<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2209557#M473087</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While using select single you need to give all the key fields in the where condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_bkpf like bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from bkpf into corresponding fields of wa_bkpf.&lt;/P&gt;&lt;P&gt;where bukrs eq p_bukrs &lt;/P&gt;&lt;P&gt;        belnr= p_belnr and&lt;/P&gt;&lt;P&gt;        gjahr = p_gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from bseg into table itab&lt;/P&gt;&lt;P&gt;where belnr= wa_belnr-belnr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but BSEG is a big tab;e , may cause performance issues&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2007 12:45:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-09T12:45:35Z</dc:date>
    <item>
      <title>select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2209554#M473084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is my select statement:&lt;/P&gt;&lt;P&gt;It is not working. Could you make it right. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_bkpf like bkpf.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  select single * from bkpf into corresponding field of wa_bkpf.&lt;/P&gt;&lt;P&gt;  where belnr= p_belnr.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  select * from bseg into table itab&lt;/P&gt;&lt;P&gt;  where belnr= wa_belnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 12:41:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2209554#M473084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T12:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2209555#M473085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: wa_bkpf like bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"here you should add bukrs and gjahr to where-clause&lt;/P&gt;&lt;P&gt;select single * from bkpf into corresponding field of wa_bkpf.&lt;/P&gt;&lt;P&gt;where belnr= p_belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from bseg into table itab&lt;/P&gt;&lt;P&gt;where belnr = wa_bkpf-belnr&lt;/P&gt;&lt;P&gt;   and bukrs = wa_bkpf-bukrs&lt;/P&gt;&lt;P&gt;   and bukrs = wa_bkpf-gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Andreas Mann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 12:44:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2209555#M473085</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2007-05-09T12:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2209556#M473086</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;data: wa_bkpf like bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from bkpf into corresponding field of wa_bkpf.&lt;/P&gt;&lt;P&gt;where belnr= p_belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from bseg into table itab&lt;/P&gt;&lt;P&gt;where belnr= wa_bkpf-belnr     "&amp;lt;&amp;lt;&amp;lt; add here&lt;/P&gt;&lt;P&gt;and gjahr = wa_bkpf-gjahr      "&amp;lt;&amp;lt;&amp;lt; add here&lt;/P&gt;&lt;P&gt;and bukrs = wa_bkpf-bukrs.     "&amp;lt;&amp;lt;&amp;lt; add here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 12:45:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2209556#M473086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T12:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2209557#M473087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While using select single you need to give all the key fields in the where condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_bkpf like bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from bkpf into corresponding fields of wa_bkpf.&lt;/P&gt;&lt;P&gt;where bukrs eq p_bukrs &lt;/P&gt;&lt;P&gt;        belnr= p_belnr and&lt;/P&gt;&lt;P&gt;        gjahr = p_gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from bseg into table itab&lt;/P&gt;&lt;P&gt;where belnr= wa_belnr-belnr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but BSEG is a big tab;e , may cause performance issues&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 12:45:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2209557#M473087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T12:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2209558#M473088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhay,&lt;/P&gt;&lt;P&gt;             Try this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_bkpf like bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from bkpf into corresponding field of wa_bkpf.&lt;/P&gt;&lt;P&gt;where belnr= p_belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from bseg into corresponding fields of   itab&lt;/P&gt;&lt;P&gt;where belnr= wa_bkpf-belnr. &lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hemant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 12:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2209558#M473088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T12:48:53Z</dc:date>
    </item>
  </channel>
</rss>

