<?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 Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1724418#M315948</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;I need a functional module which converts date to particular quarter..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Input date : 11/22/2206&lt;/P&gt;&lt;P&gt;Output     :  200601 (YYYYQQ)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Ie.,    here oct,nov &amp;amp; Dec are   Q1&lt;/P&gt;&lt;P&gt;               Jan,feb,mar            Q2 ect&amp;#133;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Nov 2006 08:04:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-22T08:04:03Z</dc:date>
    <item>
      <title>Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1724418#M315948</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;I need a functional module which converts date to particular quarter..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Input date : 11/22/2206&lt;/P&gt;&lt;P&gt;Output     :  200601 (YYYYQQ)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Ie.,    here oct,nov &amp;amp; Dec are   Q1&lt;/P&gt;&lt;P&gt;               Jan,feb,mar            Q2 ect&amp;#133;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 08:04:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1724418#M315948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T08:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1724419#M315949</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;Check this out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report ztest_0001.
 
data: xspbup type spbup.
 
data: xgjahr type bkpf-gjahr.
data: xpoper type t009b-poper.
data: check_spbup type spbup.
 
 
ranges: q1 for xspbup.
ranges: q2 for xspbup.
ranges: q3 for xspbup.
ranges: q4 for xspbup.
 
q1-sign = 'I'.
q1-option = 'BT'.
q1-low+0(4) = sy-datum+0(4).
q1-low+4(2) = '01'.
q1-high+0(4) = sy-datum+0(4).
q1-high+4(2) = '03'.
append q1.
 
q2-sign = 'I'.
q2-option = 'BT'.
q2-low+0(4) = sy-datum+0(4).
q2-low+4(2) = '04'.
q2-high+0(4) = sy-datum+0(4).
q2-high+4(2) = '06'.
append q2.
 
q3-sign = 'I'.
q3-option = 'BT'.
q3-low+0(4) = sy-datum+0(4).
q3-low+4(2) = '07'.
q3-high+0(4) = sy-datum+0(4).
q3-high+4(2) = '09'.
append q3.
 
q4-sign = 'I'.
q4-option = 'BT'.
q4-low+0(4) = sy-datum+0(4).
q4-low+4(2) = '09'.
q4-high+0(4) = sy-datum+0(4).
q4-high+4(2) = '12'.
append q4.
 
 
call function 'FI_PERIOD_DETERMINE'
     exporting
          i_budat = sy-datum
          i_periv = 'YT'
     importing
          e_gjahr = xgjahr
          e_poper = xpoper.
 
check_spbup+0(4) = xgjahr.
check_spbup+4(2) = xpoper.
 
if check_spbup in q1.
  write:/ 'This date is under Q1'.
endif.
if check_spbup in q2.
  write:/ 'This date is under Q2'.
endif.
if check_spbup in q3.
  write:/ 'This date is under Q3'.
endif.
if check_spbup in q4.
  write:/ 'This date is under Q4'.
endif&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Check any of these FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BKK_GET_QUARTER_DATE&lt;/P&gt;&lt;P&gt;TSTR_PERIODS_QUARTERS&lt;/P&gt;&lt;P&gt;HR_99S_GET_DATES_QUARTER&lt;/P&gt;&lt;P&gt;SLIM_GET_QUARTERLY_PERIODS&lt;/P&gt;&lt;P&gt;RS_VARI_V_QUARTER1XXXX&lt;/P&gt;&lt;P&gt;RS_VARI_V_QUARTER2XXXX&lt;/P&gt;&lt;P&gt;RS_VARI_V_QUARTER3XXXX&lt;/P&gt;&lt;P&gt;RS_VARI_V_QUARTER4XXXX &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 08:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1724419#M315949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T08:06:45Z</dc:date>
    </item>
  </channel>
</rss>

