Skip to Content
avatar image
Former Member

List Months between a date range

Hi, I'm trying to list the months between a given date range in an ABAP report to generate a MIS report(ALV).. Say I have 2 date ranges, 01.01.2006 to 01.04.2006.. I want to list

Jan 2006

Feb 2006

Mar 2006

Apr 2006.. Any FM in SAP to get this OP..

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    May 14, 2006 at 07:45 AM

    u can try creating an select options and appending with the values in low & high and selectop-options = 'BT'

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 15, 2006 at 01:19 PM

    hi vivek,

    use this function module to get months beween two dates

    1. MONTHS_BETWEEN_TWO_DATES or

    2. MONTHS_BETWEEN_TWO_DATES_NEW

    please reward the point if you are satisfied with answer

    thanks,

    john.

    Add comment
    10|10000 characters needed characters exceeded