<?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 to return Wednesday in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-return-wednesday/m-p/9080132#M1704290</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;Maybe dummy but why don't you use BWSO_DATE_GET_FIRST_WEEKDAY and add 2 to get Wednesday ? &lt;/P&gt;&lt;P&gt;I don't think that a FM exists that returns the date for a specific day of the week.&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, 24 Oct 2012 12:11:49 GMT</pubDate>
    <dc:creator>laurent_fournier2</dc:creator>
    <dc:date>2012-10-24T12:11:49Z</dc:date>
    <item>
      <title>Function module to return Wednesday</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-return-wednesday/m-p/9080131#M1704289</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;Is there any standard function module that returns the date of the week which is a Wednesday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For e.g The function module BWSO_DATE_GET_FIRST_WEEKDAY returns that first day of week Monday 22/10/2012 if we enter today's date as input. &lt;/P&gt;&lt;P&gt;Similarly is there any function module that returns Wednesday.&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, 24 Oct 2012 12:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-return-wednesday/m-p/9080131#M1704289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-24T12:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to return Wednesday</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-return-wednesday/m-p/9080132#M1704290</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;Maybe dummy but why don't you use BWSO_DATE_GET_FIRST_WEEKDAY and add 2 to get Wednesday ? &lt;/P&gt;&lt;P&gt;I don't think that a FM exists that returns the date for a specific day of the week.&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, 24 Oct 2012 12:11:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-return-wednesday/m-p/9080132#M1704290</guid>
      <dc:creator>laurent_fournier2</dc:creator>
      <dc:date>2012-10-24T12:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to return Wednesday</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-return-wednesday/m-p/9080133#M1704291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look for FM whose names match *WEEK*DAY*, depending on your version, you could find some FMs like /OSP/GETDATE_WEEKDAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 12:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-return-wednesday/m-p/9080133#M1704291</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-10-24T12:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to return Wednesday</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-return-wednesday/m-p/9080134#M1704292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try function module GET_WEEK_INFO_BASED_ON_DATE. This function module takes a date as input and returns the week number as well as the dates for Monday and Sunday of that week. You can then simply take the returned value for Monday and add 2 to the date, e.g., &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wednesday = monday + 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ECC system can do math with date values, so this will give you the date for Wednesday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Amy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 12:59:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-return-wednesday/m-p/9080134#M1704292</guid>
      <dc:creator>amy_king</dc:creator>
      <dc:date>2012-10-24T12:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to return Wednesday</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-return-wednesday/m-p/9080135#M1704293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Function Group SCAL has a couple of useful functions which are documented and released for customer use by SAP (using these is much safer than using undocumented, not released FMs). Specifically you can use FM WEEK_GET_FIRST_DAY to get the first day of the week and in a WHILE loop, call FM DATE_COMPUTE_DAY while incrementing the date until Wednesday is returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that which day of the week is used as the first day (Sat, Sun, or Mon) is controlled through Config and User Exits so you shouldn't assume that the first day of the week is a certain day. This is why I recommend calling DATE_COMPUTE_DAY inside a loop instead of simply adding a constant number or days).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 13:52:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-return-wednesday/m-p/9080135#M1704293</guid>
      <dc:creator>alex_campbell</dc:creator>
      <dc:date>2012-10-24T13:52:00Z</dc:date>
    </item>
  </channel>
</rss>

