<?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: Regarding DATES in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dates/m-p/12166520#M1978577</link>
    <description>&lt;P&gt;The code is really simple &lt;/P&gt;&lt;P&gt;( I do real code, because your quarter does not correspond to the real quarter of SAP)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;methods get_quarter
  importing
    quarter type i
    year type gjahr
  returning 
    value(dates) type WCB_DATE_INTERVAL.


method get_quarter.
  data(lv_year) = cond #( when 4 then year + 1 else year ).
  dates-from = switch #( quarter when 1 then |{ lv_year }0401|
                                 when 2 then |{ lv_year }0701|
                                 when 3 then |{ lv_year }1001|
                                 when 4 then |{ lv_year }0101| ).
  dates-to   = switch #( quarter when 1 then |{ lv_year }0630|
                                 when 2 then |{ lv_year }0931|
                                 when 3 then |{ lv_year }1231|
                                 when 4 then |{ lv_year }3101| ).
endmethod.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 05 Mar 2020 09:01:14 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2020-03-05T09:01:14Z</dc:date>
    <item>
      <title>Regarding DATES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dates/m-p/12166516#M1978573</link>
      <description>&lt;P&gt;I have 4 condition related date please give me the suggestions &lt;/P&gt;
  &lt;P&gt;Quarter BOE Due Date betweenLast Date of Filing 1st Quarter1st April to 30th June31st July &lt;BR /&gt; 2nd Quarter1st July to 30th September31st Oct &lt;BR /&gt; 3rd Quarter1st October to 31st December31st Jan &lt;BR /&gt; 4th Quarter1st January to 31st March31st May &lt;BR /&gt; &lt;/P&gt;
  &lt;P&gt;Is there any function module to get the date as per above condition?????????????????&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 08:12:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dates/m-p/12166516#M1978573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-03-05T08:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding DATES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dates/m-p/12166517#M1978574</link>
      <description>&lt;P&gt;What do you want, giving a date as input, you want the fm to give you at which quarter it is?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 08:30:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dates/m-p/12166517#M1978574</guid>
      <dc:creator>venkateswaran_k</dc:creator>
      <dc:date>2020-03-05T08:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding DATES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dates/m-p/12166518#M1978575</link>
      <description>&lt;P&gt;Dear &lt;SPAN class="mention-scrubbed"&gt;pratikcej&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;You can make us of the FM &lt;STRONG&gt;HR_99S_GET_DATES_QUARTER, &lt;/STRONG&gt;here you have to give the Quarter and Year for which you need the dates. Below screen shot for example.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1786709-scn.png" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 08:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dates/m-p/12166518#M1978575</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2020-03-05T08:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding DATES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dates/m-p/12166519#M1978576</link>
      <description>&lt;P&gt;Hi Pratik,&lt;/P&gt;&lt;P&gt;FM - BKK_GET_QUARTER_DATE will fulfill the requirement. by passing date export parameter will be start date of quarter and end date of Quarter.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abinath S&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 08:58:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dates/m-p/12166519#M1978576</guid>
      <dc:creator>Abinathsiva</dc:creator>
      <dc:date>2020-03-05T08:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding DATES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dates/m-p/12166520#M1978577</link>
      <description>&lt;P&gt;The code is really simple &lt;/P&gt;&lt;P&gt;( I do real code, because your quarter does not correspond to the real quarter of SAP)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;methods get_quarter
  importing
    quarter type i
    year type gjahr
  returning 
    value(dates) type WCB_DATE_INTERVAL.


method get_quarter.
  data(lv_year) = cond #( when 4 then year + 1 else year ).
  dates-from = switch #( quarter when 1 then |{ lv_year }0401|
                                 when 2 then |{ lv_year }0701|
                                 when 3 then |{ lv_year }1001|
                                 when 4 then |{ lv_year }0101| ).
  dates-to   = switch #( quarter when 1 then |{ lv_year }0630|
                                 when 2 then |{ lv_year }0931|
                                 when 3 then |{ lv_year }1231|
                                 when 4 then |{ lv_year }3101| ).
endmethod.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:01:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dates/m-p/12166520#M1978577</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2020-03-05T09:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding DATES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dates/m-p/12166521#M1978578</link>
      <description>&lt;P&gt;Please verify your question, it's incorrectly formatted. You should use the CODE button so that to align the columns in your table. Example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Quarter      BOE Due Date between          Last Date of Filing
1st Quarter  1st April to 30th June        31st July
2nd Quarter  1st July to 30th September    31st Oct
3rd Quarter  1st October to 31st December  31st Jan
4th Quarter  1st January to 31st March     31st May&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:19:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dates/m-p/12166521#M1978578</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-03-05T09:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding DATES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dates/m-p/12166522#M1978579</link>
      <description>&lt;P&gt;You provide a table with values, but tell us what is the functional rule?&lt;/P&gt;&lt;P&gt;Given TABLE&lt;/P&gt;&lt;P&gt;When ???&lt;/P&gt;&lt;P&gt;Then ???&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:21:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dates/m-p/12166522#M1978579</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-03-05T09:21:35Z</dc:date>
    </item>
  </channel>
</rss>

