<?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: selection based on date in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-based-on-date/m-p/2503223#M565721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the reply ... I will even try with t009 and one more thing i have to get period based on posting date . If it is september i have to give period in i_covp as 1 and for oct i have to give 2  and so on . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_covp.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i have to get month in budat and calculate new period&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i_covp-perio = new period.&lt;/P&gt;&lt;P&gt;append i_covp.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do i do that ? i appreciate very much for your valuable time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jul 2007 19:53:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-10T19:53:55Z</dc:date>
    <item>
      <title>selection based on date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-based-on-date/m-p/2503220#M565718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have to select data from covp table based on posting date instead of fiscal year as per my requirement .  How do i give that in the where clause ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select kokrs belnr buzei perio&lt;/P&gt;&lt;P&gt;           wogbtr lednr objnr gjahr&lt;/P&gt;&lt;P&gt;           wrttp versn kstar owaer budat&lt;/P&gt;&lt;P&gt;      from covp into table i_covp&lt;/P&gt;&lt;P&gt;                        where kokrs = i_prps-pkokr and lednr = '00' and&lt;/P&gt;&lt;P&gt;                                               objnr = i_prps-objnr and&lt;/P&gt;&lt;P&gt;                                                 gjahr ge yprevyear and&lt;/P&gt;&lt;P&gt;                                         wrttp = '04' and versn = '000'&lt;/P&gt;&lt;P&gt;                                               and kstar not in s_kstar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to remove gjahr ge yprevyear and give posting date .&lt;/P&gt;&lt;P&gt;Say if the year is 2007 then i have to use dates from sep 1st 2006 to aug 31st 2007 and so on.&lt;/P&gt;&lt;P&gt;I appreciate your responses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 19:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-based-on-date/m-p/2503220#M565718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T19:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: selection based on date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-based-on-date/m-p/2503221#M565719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I answered this in an earlier post. You get the relationship in table T009B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 19:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-based-on-date/m-p/2503221#M565719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T19:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: selection based on date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-based-on-date/m-p/2503222#M565720</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;Please try this and build selection screen for GJAHR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
tables: covp.

parameters: p_gjahr like covp-gjahr.

ranges: r_budat for covp-budat.

r_budat-sign = 'I'.
r_budat-option = 'BT'.
r_budat-low(4) = p_gjahr - 1.
r_budat-low+4(4) = '0901'.
r_budat-high(4) = p_gjahr.
r_budat-high+4(4) = '0831'. 
append r_budat.

select kokrs belnr buzei perio
wogbtr lednr objnr gjahr
wrttp versn kstar owaer budat
from covp into table i_covp
where kokrs = i_prps-pkokr and lednr = '00' and
objnr = i_prps-objnr and
budat in r_budat and                        "Change here
wrttp = '04' and versn = '000'
and kstar not in s_kstar.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 19:41:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-based-on-date/m-p/2503222#M565720</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-07-10T19:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: selection based on date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-based-on-date/m-p/2503223#M565721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the reply ... I will even try with t009 and one more thing i have to get period based on posting date . If it is september i have to give period in i_covp as 1 and for oct i have to give 2  and so on . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_covp.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i have to get month in budat and calculate new period&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i_covp-perio = new period.&lt;/P&gt;&lt;P&gt;append i_covp.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do i do that ? i appreciate very much for your valuable time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 19:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-based-on-date/m-p/2503223#M565721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T19:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: selection based on date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-based-on-date/m-p/2503224#M565722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just hard coding it with the case statement or any other easy way .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 19:54:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-based-on-date/m-p/2503224#M565722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T19:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: selection based on date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-based-on-date/m-p/2503225#M565723</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;You can use case statement to assign period based on posting date.&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 20:00:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-based-on-date/m-p/2503225#M565723</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-07-10T20:00:48Z</dc:date>
    </item>
  </channel>
</rss>

