<?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/3720060#M895504</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;  Use this FM 'PERIOD_DAY_DETERMINE' and pass fiscal year, month and period then it will return first day in month and last day in month. Using these both you can find the sales orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 May 2008 10:31:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-07T10:31:50Z</dc:date>
    <item>
      <title>select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3720059#M895503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    I am doing one report. In selection screen i have given the company code , month, year.My requirement is based on the month &amp;amp; year it should display the sales document number generated in that month &amp;amp; year. That means it should generate whole month sales document numbers (ie. starting from 1st to 30 or 31st). Can anyone help me for this. I dont know how to write code for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 10:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3720059#M895503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T10:28: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/3720060#M895504</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;  Use this FM 'PERIOD_DAY_DETERMINE' and pass fiscal year, month and period then it will return first day in month and last day in month. Using these both you can find the sales orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 10:31:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3720060#M895504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T10:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3720061#M895505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHAT WILL PASS IN PERIOD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 10:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3720061#M895505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T10:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3720062#M895506</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;u cannot use it directly in select statement.&lt;/P&gt;&lt;P&gt;check the condition in select...endselect like below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
tables:vbak.
PARAMETERS:mon1(2),year1(4),mon2(2),year2(4).

select * from vbak.
  IF vbak-erdat+4(2) &amp;gt; mon1 and vbak-erdat+4(2) &amp;lt; mon2 and
            vbak-erdat(4) &amp;gt; year1 and vbak-erdat(4) &amp;lt; year2.
"your code    
  ENDIF.
ENDSELECT.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 10:38:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3720062#M895506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T10:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3720063#M895507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi use this code:&lt;/P&gt;&lt;P&gt;if u have ccode, month and year field than use this quiry:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from vbak into table itab where erdat&lt;EM&gt;4(2) eq month and erdat&lt;/EM&gt;0(4) eq year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;if you r giving date as parameter then first u have to get month and year. like this.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;month = date+4(2).&lt;/P&gt;&lt;P&gt;year = date+0(2). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now use same query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 10:50:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3720063#M895507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T10:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3720064#M895508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hima ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u send me the default date setting u have.&lt;/P&gt;&lt;P&gt;i.e how your date is stored either in ddmmyyy or mmddyy.&lt;/P&gt;&lt;P&gt;or yyyyddmm.&lt;/P&gt;&lt;P&gt;i will send coding if you can send me the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward points if found helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Rajeshwar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2008 10:52:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3720064#M895508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-07T10:52:14Z</dc:date>
    </item>
  </channel>
</rss>

