<?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 query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3847917#M925110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi do one thing..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if accgrp = 'Z001' or accgrp = 'Z008'  accgrp = 'Z009'  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select kunnr &lt;/P&gt;&lt;P&gt;          accgrp&lt;/P&gt;&lt;P&gt;          audat &lt;/P&gt;&lt;P&gt;from VBAK&lt;/P&gt;&lt;P&gt;into table it_vbrp &lt;/P&gt;&lt;P&gt;where kunnr in s_kunnr&lt;/P&gt;&lt;P&gt;and audat in  s_audat .&lt;/P&gt;&lt;P&gt;sort itab by audat .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;then you will get the recent record ..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*here you can use the read or loop statement..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;select vbeln &lt;/P&gt;&lt;P&gt;          kunnr &lt;/P&gt;&lt;P&gt;from VBPA&lt;/P&gt;&lt;P&gt;where vbeln in s_vbeln .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab1 by vbeln .&lt;/P&gt;&lt;P&gt;*here you can use the read or loop statement..&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;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2008 10:00:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-12T10:00:53Z</dc:date>
    <item>
      <title>select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3847916#M925109</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;i have a problem writing the select statement for a condition please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If account group = Z001, Z008, or Z009, Select from VBAK using KUNNR = Customer Account Number where AUDAT  is most recent.   &lt;/P&gt;&lt;P&gt;Else &lt;/P&gt;&lt;P&gt;Select from VBPA using KUNNR = Customer Account Number where Sales Order number is most recent.   Then select Sales Order VBAK where VBELN = VBPA-VBELN to obtain SO doc date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 09:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3847916#M925109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T09:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3847917#M925110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi do one thing..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if accgrp = 'Z001' or accgrp = 'Z008'  accgrp = 'Z009'  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select kunnr &lt;/P&gt;&lt;P&gt;          accgrp&lt;/P&gt;&lt;P&gt;          audat &lt;/P&gt;&lt;P&gt;from VBAK&lt;/P&gt;&lt;P&gt;into table it_vbrp &lt;/P&gt;&lt;P&gt;where kunnr in s_kunnr&lt;/P&gt;&lt;P&gt;and audat in  s_audat .&lt;/P&gt;&lt;P&gt;sort itab by audat .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;then you will get the recent record ..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*here you can use the read or loop statement..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;select vbeln &lt;/P&gt;&lt;P&gt;          kunnr &lt;/P&gt;&lt;P&gt;from VBPA&lt;/P&gt;&lt;P&gt;where vbeln in s_vbeln .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab1 by vbeln .&lt;/P&gt;&lt;P&gt;*here you can use the read or loop statement..&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;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 10:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3847917#M925110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T10:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3847918#M925111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i do not have anything on the selection screen . i need to format it in select query itself. base on for all entries in some itab[].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 10:06:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3847918#M925111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T10:06:00Z</dc:date>
    </item>
  </channel>
</rss>

