Skip to Content
avatar image
-3
Former Member

Datevalue function in SAP

Hi All,

I want to find date value for particular date(ex 01/01/2014 = 41640 as in excel).

Is there any FM in SAP to find date value for a particular date.

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 24, 2017 at 06:27 AM

    What's your purpose? Nevertheless just MOVE the date field to an integer field.

    (Conversion Rules for Elementary Data Objects → Date/Time Fields as Source Fields → Source Field Type)

    Add comment
    10|10000 characters needed characters exceeded

    • Isn't technically a "date" a quantity, the "duration since an initial calendar date", so the average value of two dates can make sense?

      Of course expressions like center/middle of range/interval and other ones could have been used ;-)

      Actually following syntax is also ok in Abap...

      date3 = ( date1 + date2 ) / 2.
  • May 24, 2017 at 07:06 AM
    Add comment
    10|10000 characters needed characters exceeded