<?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 I need experts help on calculating days using function module. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-experts-help-on-calculating-days-using-function-module/m-p/3795288#M912809</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 have a small issue :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to calculate days from month/year is input parameter,for example i am giving input 03/2008(march'08)&lt;/P&gt;&lt;P&gt;i have to see in output march month days(31days) if that year is leap year(02/2008) for the month of feberuary 29 days other wise 28 days to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;giving input month and year get the days of input month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input Parameter is :03/2008(Month/Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desired output: 31 Days(particular month days).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any sample code also welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll assign full points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2008 00:06:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-21T00:06:39Z</dc:date>
    <item>
      <title>I need experts help on calculating days using function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-experts-help-on-calculating-days-using-function-module/m-p/3795288#M912809</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 have a small issue :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to calculate days from month/year is input parameter,for example i am giving input 03/2008(march'08)&lt;/P&gt;&lt;P&gt;i have to see in output march month days(31days) if that year is leap year(02/2008) for the month of feberuary 29 days other wise 28 days to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;giving input month and year get the days of input month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input Parameter is :03/2008(Month/Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desired output: 31 Days(particular month days).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any sample code also welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll assign full points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 00:06:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-experts-help-on-calculating-days-using-function-module/m-p/3795288#M912809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T00:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: I need experts help on calculating days using function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-experts-help-on-calculating-days-using-function-module/m-p/3795289#M912810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use FM  NUMBER_OF_DAYS_PER_MONTH_GET&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 00:29:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-experts-help-on-calculating-days-using-function-module/m-p/3795289#M912810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T00:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: I need experts help on calculating days using function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-experts-help-on-calculating-days-using-function-module/m-p/3795290#M912811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eyda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the following FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; NUMBER_OF_DAYS_PER_MONTH_GET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the following piece of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'NUMBER_OF_DAYS_PER_MONTH_GET'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    par_month       = month&lt;/P&gt;&lt;P&gt;    par_year        = year&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   PAR_DAYS        = days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 01:36:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-experts-help-on-calculating-days-using-function-module/m-p/3795290#M912811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T01:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: I need experts help on calculating days using function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-experts-help-on-calculating-days-using-function-module/m-p/3795291#M912812</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;In My system that function module not exist..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can i find the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used SE37 and Given FM Tech Name.it is showing not exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you guide me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 01:58:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-experts-help-on-calculating-days-using-function-module/m-p/3795291#M912812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T01:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: I need experts help on calculating days using function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-experts-help-on-calculating-days-using-function-module/m-p/3795292#M912813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eyda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me the SAP version you are using.&lt;/P&gt;&lt;P&gt;While giving it se37 remove and spaces that are prefixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 02:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-experts-help-on-calculating-days-using-function-module/m-p/3795292#M912813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T02:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: I need experts help on calculating days using function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-experts-help-on-calculating-days-using-function-module/m-p/3795293#M912814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;first get first day and last day of the given month and the calculate number of days bettween these two days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. calculate fisrt day and last day of the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_date is ur given date in the format yyyymm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; lwa_month = s_date-low+4(2).&lt;/P&gt;&lt;P&gt;  lwa_year = s_date-low+0(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE s_date-low c_01 INTO ws_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To get last day of the month&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SG_PS_GET_LAST_DAY_OF_MONTH'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      day_in            = ws_date&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      last_day_of_month = ws_last_day_month&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      day_in_not_valid  = 1&lt;/P&gt;&lt;P&gt;      OTHERS            = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. calculate number of days between these two days,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'HR_SGPBS_YRS_MTHS_DAYS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      beg_da     = ws_date&lt;/P&gt;&lt;P&gt;      end_da     = ws_last_day_month&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      no_cal_day = d.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here ur 'd'  will give u number of days of that month .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 03:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-experts-help-on-calculating-days-using-function-module/m-p/3795293#M912814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T03:58:59Z</dc:date>
    </item>
  </channel>
</rss>

