<?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/2152440#M454525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : Begin of i_VBPA occurs 0,&lt;/P&gt;&lt;P&gt;               &lt;/P&gt;&lt;P&gt;             VBELN like VBPA-VBELN,&lt;/P&gt;&lt;P&gt;              PARVW like VBPA-PARVW,&lt;/P&gt;&lt;P&gt;           END OF i_VBPA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is for single search parameter...&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;Select  vbeln parvw into table i_vbpa from VBPA  Where PARVW eq  = 'Z8'.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;This is for all search parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select  vbeln parvw into table i_vbpa from VBPA&lt;/P&gt;&lt;P&gt;  Where PARVW  in ('ER','ZL','ER').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT i_VBPA by VBELN PARVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2007 03:48:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-03T03:48:57Z</dc:date>
    <item>
      <title>Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2152438#M454523</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;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a query to search on the below three fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)Product Company (VBPA-PERNR)&lt;/P&gt;&lt;P&gt;2)Network Company (VBPA-PERNR)&lt;/P&gt;&lt;P&gt;3)Account Manager (VBPA-PERNR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need to get VBELN field based on the search parameter given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here if we search on Product company then need to get all the VBELN where PARVW = 'ER' and in the same way if we search on network company then need to get all the VBELN where &lt;/P&gt;&lt;P&gt;PARVW = 'ZL' and for account manger PARVW = 'Z8'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can also pass all the three parameters at a time i.e. Product company, Network company and Account manager. We need to get all the VBELN based on the search condition given. Hope this is clear now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ram Mohan Naidu Thammineni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 03:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2152438#M454523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T03:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2152439#M454524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your requirement is not that much clear.as per my understanding check the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select  single PARVW  into VBPA-PARAW&lt;/P&gt;&lt;P&gt;         from VBPA&lt;/P&gt;&lt;P&gt;where conditions.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case  VBPA-PARAW.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;   WHEN  'ER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   WHEN  'ZL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN  'Z8'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 03:29:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2152439#M454524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T03:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2152440#M454525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : Begin of i_VBPA occurs 0,&lt;/P&gt;&lt;P&gt;               &lt;/P&gt;&lt;P&gt;             VBELN like VBPA-VBELN,&lt;/P&gt;&lt;P&gt;              PARVW like VBPA-PARVW,&lt;/P&gt;&lt;P&gt;           END OF i_VBPA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is for single search parameter...&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;Select  vbeln parvw into table i_vbpa from VBPA  Where PARVW eq  = 'Z8'.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;This is for all search parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select  vbeln parvw into table i_vbpa from VBPA&lt;/P&gt;&lt;P&gt;  Where PARVW  in ('ER','ZL','ER').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT i_VBPA by VBELN PARVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 03:48:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2152440#M454525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T03:48:57Z</dc:date>
    </item>
  </channel>
</rss>

