Skip to Content
avatar image
Former Member

Date Differnece

Hello Guys!

Can you help me out to find ageing for 30/60. I have date and i want to get the the date difference.

urgernt please

omer

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Apr 30, 2006 at 06:00 PM

    Hi,

    Can you explain in detail, what exactly you are looking for?

    What do you mean by ageing for 30/60 and the date difference?

    Regards,

    Ravi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 01, 2006 at 06:44 AM

    Hay Omer

    check with this code

    DATA: ENDETAG LIKE SY-DATUM,

    ENDEZEIT LIKE SY-UZEIT.

    DATA DATEDIFF TYPE P DECIMALS 7.

    DATA TIMEDIFF TYPE P DECIMALS 7.

    DATA EARLIEST.

    CALL FUNCTION 'SD_DATETIME_DIFFERENCE'

    EXPORTING

    DATE1 = ENDETAG

    TIME1 = ENDEZEIT

    DATE2 = SY-DATUM

    TIME2 = SY-UZEIT

    IMPORTING

    DATEDIFF = DATEDIFF

    TIMEDIFF = TIMEDIFF

    EARLIEST = EARLIEST

    EXCEPTIONS

    INVALID_DATETIME = 1

    OTHERS = 2.

    Thanks & regards

    Sreenivasulu P

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 01, 2006 at 07:34 AM

    Hi omer,

    Use the function module DAYS_BETWEEN_TWO_DATES.

    Also try

    DURATION_DETERMINE

    SD_DATETIME_DIFFERENCE

    FIMA_DAYS_AND_MONTHS_AND_YEARS

    You can also try this...

    data: date1 type sy-datum,

    date2 type sy-datum.

    data: diff type i.

    diff = date1 - date2.

    Regards,

    Tanveer.

    Please mark helpful answers

    Add comment
    10|10000 characters needed characters exceeded