<?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: sy-datum problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-problem/m-p/2383636#M529438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saritha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this function module "BKK_GET_MONTH_LASTDAY" or  "FKK_LAST_DAY_OF_MONTH"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the date to the function module and it will give the last day of the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search in SE37 with &lt;STRONG&gt;last&lt;/STRONG&gt;day* and you will get lots of function modules for your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh Babu&lt;/P&gt;&lt;P&gt;*Award points if reply found useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2007 19:05:30 GMT</pubDate>
    <dc:creator>learnsap</dc:creator>
    <dc:date>2007-06-04T19:05:30Z</dc:date>
    <item>
      <title>sy-datum problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-problem/m-p/2383635#M529437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello friends,&lt;/P&gt;&lt;P&gt;i have a scenario, where , when the entered period as parameter is&lt;/P&gt;&lt;P&gt;YYYYMM the last date for that particular month MM &lt;/P&gt;&lt;P&gt;should be calculated ( i dont know how), and should be attached to this period&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YYYYMMDD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do i calculate this DD (ie. last day of the moth) for the &lt;/P&gt;&lt;P&gt;given month and year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like yyyymm is 200404   then i should output 20040431&lt;/P&gt;&lt;P&gt;if 200510 then output sould be 20051031&lt;/P&gt;&lt;P&gt;if 200302 then output should be 20030228.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can some one help.&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 18:52:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-problem/m-p/2383635#M529437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T18:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: sy-datum problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-problem/m-p/2383636#M529438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saritha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this function module "BKK_GET_MONTH_LASTDAY" or  "FKK_LAST_DAY_OF_MONTH"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the date to the function module and it will give the last day of the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search in SE37 with &lt;STRONG&gt;last&lt;/STRONG&gt;day* and you will get lots of function modules for your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh Babu&lt;/P&gt;&lt;P&gt;*Award points if reply found useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 19:05:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-problem/m-p/2383636#M529438</guid>
      <dc:creator>learnsap</dc:creator>
      <dc:date>2007-06-04T19:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: sy-datum problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-problem/m-p/2383637#M529439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.


data: yyyymm(6) type c value '200704'.
data: datum type sy-datum.
data: last_datum type sy-datum.

datum = yyyymm.
datum+6(2) = '01'.

call function 'LAST_DAY_OF_MONTHS'
     exporting
          day_in            = datum
     importing
          last_day_of_month = last_datum.


write:/ last_datum.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 19:10:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-problem/m-p/2383637#M529439</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-06-04T19:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: sy-datum problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-problem/m-p/2383638#M529440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks friends.&lt;/P&gt;&lt;P&gt;i tried rich's code its working , thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 19:31:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-datum-problem/m-p/2383638#M529440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T19:31:49Z</dc:date>
    </item>
  </channel>
</rss>

