Skip to Content
author's profile photo Former Member
Former Member

fm to find saturday & sunday .

Hi,

Could any one tell the Function module to find whether the given date is saturday or sunday.

Thank &Regards

sathish

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 06:07 AM

    FM DATE_TO_DAY

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 06:09 AM

    HI,,

    Use the FM DATE_COMPUTE_DAY

    if it returns

    1 monday

    2 tue

    3 wed

    4 thu

    5 fri

    6 sat

    7 sunday

    plzz reward if itis usefull,,,

    plzz dont forget to reward...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 06:10 AM

    Hi,

    Use this FM 'DAY_ATTRIBUTES_GET'

    Also:

    try this..

    RH_GET_DATE_DAYNAM

    Reward Points if found helpfull..

    Cheers,

    Chandra Sekhar.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 06:10 AM

    Hi,

    Use this funtion module.

    DATE_COMPUTE_DAY

    eg

    data: w_day type c.

    call function 'DATE_COMPUTE_DAY '

    exporting

    DATE = sy-datum

    importing

    day = w_day.

    if w_day is 6 then its saturday and if w_day is 7 then its sunday.

    regards,

    Santosh Thorat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 06:10 AM

    Hi ,

    U can use the FM "DATE_COMPUTE_DAY".

    It will give the output as 6 if it is saturday.And if it is a sunday it will give the output 7.

    Thank you,,

    Thanks,

    Chandra.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 29, 2008 at 06:12 AM

    Hi Sathish,

    Use this FM

    HRIQ_GET_DATE_DAYNAME

    regards

    Ravi Shankar Reddy S

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 06:15 AM

    Hi,

    use this FM

    DAY_IN_WEEK

    if the return value for parameter WOTNR is 6-sat,7-sun

    Cheers,

    Will.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.