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

Calendar holidays

Hi all,

I have a requirement..Can any one of u suggest me a Function module which returns me the holidays in a factory calendar.

So that i dont have to schedule my report to run on those particular holidays.

Itz an urgent issue.

Thanks in advance..

Arun

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2007 at 02:49 PM

    Hi

    check the fun modules

    CATSXT_GET_HOLIDAYS

    <b>HOLIDAY_CALENDAR_GET </b>

    HOLIDAY_GET

    Regards

    Anji

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 04, 2007 at 02:50 PM

    Hi,

    Please check the FM HOLIDAY_GET.

    Regards,

    Ferry Lianto

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2007 at 02:56 PM

    Hi,

    You can use :

    CATSXT_GET_HOLIDAYS

    CHECK_HOLIDAY

    HOLIDAY_CALENDAR_GET

    Thanks,

    Sriram Ponna.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 04, 2007 at 03:02 PM

    Hi arun,

    here is the solution..

    <b>HOLIDAY_GET</b> Provides a table of all the holidays based upon a Factory Calendar &/ Holiday Calendar.

    <b>HOLIDAY_CHECK_AND_GET_INFO</b> Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday calendar, and you can determine if the

    date is a holiday by checking the parameter HOLIDAY_FOUND.

    <b>Example:</b> HOLIDAY_CHECK_AND_GET_INFO

    data: ld_date like scal-datum default sy-datum,

    lc_holiday_cal_id like scal-hcalid default 'CA',

    ltab_holiday_attributes like thol occurs 0 with header line,

    lc_holiday_found like scal-indicator.

    CALL FUNCTION 'HOLIDAY_CHECK_AND_GET_INFO'

    EXPORTING

    date = ld_date

    holiday_calendar_id = lc_holiday_cal_id

    WITH_HOLIDAY_ATTRIBUTES = 'X'

    IMPORTING

    HOLIDAY_FOUND = lc_holiday_found

    tables

    holiday_attributes = ltab_holiday_attributes

    EXCEPTIONS

    CALENDAR_BUFFER_NOT_LOADABLE = 1

    DATE_AFTER_RANGE = 2

    DATE_BEFORE_RANGE = 3

    DATE_INVALID = 4

    HOLIDAY_CALENDAR_ID_MISSING = 5

    HOLIDAY_CALENDAR_NOT_FOUND = 6

    OTHERS = 7.

    if sy-subrc = 0 and

    lc_holiday_found = 'X'.

    write: / ld_date, 'is a holiday'.

    else.

    write: / ld_date, 'is not a holiday, or there was an error calling the function'.

    endif.

    Check out these as well

    CATSXT_GET_HOLIDAYS

    HOLIDAY_CALENDAR_GET

    HOLIDAY_GET

    <b>

    Reward Points if it is helpful.</b>

    Thanks & Regards

    ilesh 24x7

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 04, 2007 at 03:19 PM

    Hi,

    Please check tables T001W and TFACD.

    Regards,

    Ferry Lianto

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 02:38 PM

    THANKS

    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.