<?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: week text with input date in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736604#M1300864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Fm DAY_IN_WEEK to get the numeric value of the day of the week. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create Z FM like WEEKDAY_GET or write a simple logic to get the text &lt;/P&gt;&lt;P&gt;of the week based on week number according to your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2009 10:07:37 GMT</pubDate>
    <dc:creator>GauthamV</dc:creator>
    <dc:date>2009-05-26T10:07:37Z</dc:date>
    <item>
      <title>week text with input date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736593#M1300853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help....if i give input date as 26.05.2009 &lt;/P&gt;&lt;P&gt;output should be TUESDAY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 06:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736593#M1300853</guid>
      <dc:creator>former_member374410</dc:creator>
      <dc:date>2009-05-26T06:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: week text with input date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736594#M1300854</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;use function module: DATE_TO_DAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Prinan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 06:36:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736594#M1300854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T06:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: week text with input date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736595#M1300855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Fm DAY_IN_WEEK to get the numeric value of the day of the week. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use FM WEEKDAY_GET to get the text of the week based on week number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 06:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736595#M1300855</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-05-26T06:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: week text with input date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736596#M1300856</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;Use this FM 'GET_WEEK_INFO_BASED_ON_DATE'&lt;/P&gt;&lt;P&gt;DATE_TO_DAY&lt;/P&gt;&lt;P&gt;&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;Jyothi CH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jyothi Chinnabathuni on May 26, 2009 12:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 06:37:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736596#M1300856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T06:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: week text with input date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736597#M1300857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use FM : RH_GET_DATE_DAYNAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this returns complete day name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 06:43:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736597#M1300857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T06:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: week text with input date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736598#M1300858</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;use this function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in p_date u pass the input value which u hav given in selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RH_GET_DATE_DAYNAME'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      langu                     = EN&lt;/P&gt;&lt;P&gt;      date                      = p_date&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     DAYTXT                    = result&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 06:48:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736598#M1300858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T06:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: week text with input date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736599#M1300859</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 the fm: DATE_TO_DAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naveen M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 06:53:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736599#M1300859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T06:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: week text with input date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736600#M1300860</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;Use the Function module ISP_GET_WEEKDAY_NAME&lt;/P&gt;&lt;P&gt;Translate the week name to upper case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_date type sy-datum value '20090526',&lt;/P&gt;&lt;P&gt;      v_text type T246-LANGT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ISP_GET_WEEKDAY_NAME'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    DATE                 = v_date&lt;/P&gt;&lt;P&gt;    language             = 'E'&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   LONGTEXT             = v_text&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   CALENDAR_ID          = 1&lt;/P&gt;&lt;P&gt;   DATE_ERROR           = 2&lt;/P&gt;&lt;P&gt;   NOT_FOUND            = 3&lt;/P&gt;&lt;P&gt;   WRONG_INPUT          = 4&lt;/P&gt;&lt;P&gt;   OTHERS               = 5&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ v_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;translate v_text to upper case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ v_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar Bandanadham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 07:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736600#M1300860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T07:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: week text with input date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736601#M1300861</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;Use this FM - ISH_GET_DAY_OF_WEEK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 07:13:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736601#M1300861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T07:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: week text with input date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736602#M1300862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vamshi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*to calculate particular day No for any give date.
    CALL FUNCTION 'DATE_COMPUTE_DAY'
      EXPORTING
        DATE = SY-DATUM " any date
      IMPORTING
        DAY  = DAYNO. " particular day no.

*To calculate particular day name with the day no
    CALL FUNCTION 'BKK_GET_DAY_OF_WEEK'
      EXPORTING
        I_DAY       = DAYNO " week day no.
      IMPORTING
        E_WDAY      = CURRENT_DAY_NAME. " Week day name for the week day no.

-------------------------Or---------------------------
*To Calculate particular day No for any given date
        CALL FUNCTION 'DAY_IN_WEEK'
          EXPORTING
            DATUM = SY-DATUM " Any date
          IMPORTING
            WOTNR = DAY. " Day no for a giveN date
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 07:18:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736602#M1300862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-26T07:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: week text with input date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736603#M1300863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your valuable sollutions, but its not meeting my requirement exactly.....&lt;/P&gt;&lt;P&gt;my exact requirement is to find the week no in that month with the given date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg  25.05.2009 is date then it comes under 4th of the may nonth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but as per the requirement am &lt;/P&gt;&lt;P&gt;calculating from saturday as 1st day and friday as 7th day of the week...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly plz reply if any other way to get my result....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 10:04:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736603#M1300863</guid>
      <dc:creator>former_member374410</dc:creator>
      <dc:date>2009-05-26T10:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: week text with input date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736604#M1300864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Fm DAY_IN_WEEK to get the numeric value of the day of the week. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create Z FM like WEEKDAY_GET or write a simple logic to get the text &lt;/P&gt;&lt;P&gt;of the week based on week number according to your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 10:07:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736604#M1300864</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-05-26T10:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: week text with input date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736605#M1300865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;helpful&lt;/P&gt;&lt;P&gt;thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 10:20:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/week-text-with-input-date/m-p/5736605#M1300865</guid>
      <dc:creator>former_member374410</dc:creator>
      <dc:date>2009-05-26T10:20:32Z</dc:date>
    </item>
  </channel>
</rss>

