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

Table Display With Days

HiExperts,

when i select month . days between begin of month and end of month should display in table..Is their any FM to get days.Any suggestions..

Regards,

Rajesh

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2012 at 09:01 AM

    Hi Rajesh,

    U need the number of days entries between two dates.....Use below FM to get days b/n dates..In the ouput u will get internal table with all dates...

    CALL FUNCTION 'DAY_ATTRIBUTES_GET'
    EXPORTING
    date_from = ls_book_bh-begda
    date_to = ls_book_bh-endda
    language = sy-langu
    TABLES
    day_attributes = lt_days
    EXCEPTIONS
    factory_calendar_not_found = 1
    holiday_calendar_not_found = 2
    date_has_invalid_format = 3
    date_inconsistency = 4
    OTHERS = 5.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF sy-subrc = 0.
    LOOP AT lt_days INTO ls_days.

    //

    Here u have to add records to u r table and bind to node......

    //

    Endloop.

    Regards,

    Venkat.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 08, 2012 at 07:21 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2012 at 07:25 AM

    Hi,

    with the help of these function modules you will get the last day of the month so that you can display the no of days manually in a table.

    LAST_DAY_OF_MONTHS

    END_OF_MONTH_DETERMINE_2

    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.