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

month end date

how to display month end date for every month by default?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 06:13 AM

    hi Sudharshan,.

    Hi,

    Check

    finding-last-day-of-a-month

    Regards,

    Santosh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 06:14 AM

    Please check FM: MM_ARRANG_GET_END_OF_MONTH

    Kind Regards

    Eswar

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 16, 2006 at 06:15 AM

    hi,

    chk this code.

    by default it will show the begin and end date in select option.

    the similar think u can adopt.

    check this sample code...

    tables: mkpf.

    data date like sy-datum.

    data date1 like sy-datum.

    select-options: s_date for mkpf-budat.

    initialization.

    CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'

    EXPORTING

    iv_date = sy-datum

    IMPORTING

    EV_MONTH_BEGIN_DATE = date

    EV_MONTH_END_DATE = date1

    .

    s_date-option = 'EQ'.

    s_date-sign = 'I'.

    s_date-low = date.

    s_date-high = date1.

    append s_date.

    rgds

    anver

    if hlped mark points

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 06:24 AM

    Check this example it will help u.

    report z_example.

    data: v_lastdate like sy-datum.

    CALL FUNCTION 'LAST_DAY_OF_MONTHS'

    EXPORTING

    DAY_IN = sy-datum

    IMPORTING

    LAST_DAY_OF_MONTH = v_lastdate.

    write:/ v_lastdate.

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 06:33 AM

    Hi ,

    You can also USe FM :

    call function 'RP_LAST_DAY_OF_MONTHS'

    EXPORTING

    day_in = g_t_date-begin

    IMPORTING

    last_day_of_month = g_t_date-end.

    g_t_date-end is the last day of the month .

    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.