<?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: Function module for deriving CALMONTH from CALWEEK in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-deriving-calmonth-from-calweek/m-p/3498640#M841550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as per your requirement nothing to do with the year right and you need to get the month from the week specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total_days = 5*7 &lt;/P&gt;&lt;P&gt;while total_days &amp;gt; 0 .&lt;/P&gt;&lt;P&gt;  using afunction module 'NUMBER_OF_DAYS_PER_MONTH_GET' get the number of days in first payroll period say period_days&lt;/P&gt;&lt;P&gt; total_days = total_days - period_days.&lt;/P&gt;&lt;P&gt; total_months =  total_months + 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endwhile.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Mar 2008 06:28:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-04T06:28:40Z</dc:date>
    <item>
      <title>Function module for deriving CALMONTH from CALWEEK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-deriving-calmonth-from-calweek/m-p/3498635#M841545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to calculate calmonth from calweek. can anyone plese tell me the function module for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;akanksha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 05:08:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-deriving-calmonth-from-calweek/m-p/3498635#M841545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T05:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for deriving CALMONTH from CALWEEK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-deriving-calmonth-from-calweek/m-p/3498636#M841546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akansha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please clarify your requirement, as I'm unable to understand "calmonth from calweek"??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 05:19:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-deriving-calmonth-from-calweek/m-p/3498636#M841546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T05:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for deriving CALMONTH from CALWEEK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-deriving-calmonth-from-calweek/m-p/3498637#M841547</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;As I know there is a FM for getting the number of a day in a week.&lt;/P&gt;&lt;P&gt;for e.g. Thursday is the 4 day in week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this req. u can use &lt;STRONG&gt;FM: DAY_IN_WEEK.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if newaz, u want to calculate any month, you can directly use the incoming date to yoour program by &lt;/P&gt;&lt;P&gt;putting offset value &amp;amp; compare that month with your desired requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please reward points, if u find it successful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 05:22:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-deriving-calmonth-from-calweek/m-p/3498637#M841547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T05:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for deriving CALMONTH from CALWEEK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-deriving-calmonth-from-calweek/m-p/3498638#M841548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; hi experts !&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; i want to calculate calmonth from calweek. can anyone plese tell me the function module for the same.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; thanx in advance,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; akanksha&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function modules are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UMC_CALDAY_TO_FISCPER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE_TO_PERIOD_CONVERT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you give date as input this funciton modules convert that date into weeks.the date in the sense if you give 01.01.2007&lt;/P&gt;&lt;P&gt;then the output of the function module comes as 200648.&lt;/P&gt;&lt;P&gt;means here the fiscal year and the week of that fiscal year is present.now you have to split that year and week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take that value into one variable.&lt;/P&gt;&lt;P&gt;suppose take into x.&lt;/P&gt;&lt;P&gt;x= 200648.&lt;/P&gt;&lt;P&gt;then pass this value with out year&lt;/P&gt;&lt;P&gt;y = x+4(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now you have week .&lt;/P&gt;&lt;P&gt;so that you can calculate period ,quarter and half year based on the week.&lt;/P&gt;&lt;P&gt;&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;swami.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 05:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-deriving-calmonth-from-calweek/m-p/3498638#M841548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T05:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for deriving CALMONTH from CALWEEK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-deriving-calmonth-from-calweek/m-p/3498639#M841549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okey now suppose if we have the value 200805 ( 2008 being the year and 05 being the week i.e. the 5th week of year 2008) i want a FM which gives me output in the form 200802 ( 2008 being year and 02 being month, since 5th week of the year falls in 2nd month i.e. february).&lt;/P&gt;&lt;P&gt;any hints now?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 05:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-deriving-calmonth-from-calweek/m-p/3498639#M841549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T05:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for deriving CALMONTH from CALWEEK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-deriving-calmonth-from-calweek/m-p/3498640#M841550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as per your requirement nothing to do with the year right and you need to get the month from the week specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total_days = 5*7 &lt;/P&gt;&lt;P&gt;while total_days &amp;gt; 0 .&lt;/P&gt;&lt;P&gt;  using afunction module 'NUMBER_OF_DAYS_PER_MONTH_GET' get the number of days in first payroll period say period_days&lt;/P&gt;&lt;P&gt; total_days = total_days - period_days.&lt;/P&gt;&lt;P&gt; total_months =  total_months + 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endwhile.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 06:28:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-deriving-calmonth-from-calweek/m-p/3498640#M841550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T06:28:40Z</dc:date>
    </item>
  </channel>
</rss>

