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

Can i make a program for calender

can i make a program for calender actually i have to run a calender logic and select the date and modify them with some value.

I just need to ask is there any function module that runs a calender logic by picking the input date .

Eg if i put a input date say 03.04.2005 the program then automatically run for all the date of that month and year, i mean i can get the all the dates for that month and year...

Please help

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 24, 2005 at 10:46 AM

    Hi Mave,

    If your requirement is to get all the days between two dates then you can use this fm DAY_ATTRIBUTES_GET.

    for ex, if the date is 03.04.2005 then you can specify

    it <b>date_from</b> importing parameter and specify last day of the year in the <b>date_to</b> parameter.

    Then it will give back all the days between these two dates in the internal table <b>day_attributes</b>.

    You can loop at this table and then do whatever you are required to do..

    Sri

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 24, 2005 at 10:11 AM

    Hi,

    See if you can us FM - DAY_ATTRIBUTES_GET

    Sri

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2005 at 04:18 AM

    Hi Mave ,

    If you want an internal table with the dates of the month

    just try this -- . Instead of sy-datum you can pass any date and see the output .

    parameters Pdate like sy-datum.

    data : begin of itab occurs 0 ,

    date like sy-datum,

    end of itab.

    Data Month(2) type N.

    itab-date = pdate.

    itab-date+6(02) = 01.

    month = itab+4(2).

    do .

    if itab+4(2) NE month.

    exit.

    endif.

    append itab .

    itab-date = itab-date + 1.

    enddo.

    loop at itab.

    write :/ itab-date.

    endloop.

    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.