获取两个日期相差天数

CALL  FUNCTION  'DAYS_BETWEEN_TWO_DATES'
       EXPORTING
        i_datum_bis              enddate
        i_datum_von              startdate
       IMPORTING
        e_tage                   aa
       EXCEPTIONS
        days_method_not_defined  1

        OTHERS                  2.


例如

CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
        EXPORTING
          i_datum_bis = 20080401
          i_datum_von = 20080327
        IMPORTING
          e_tage      = lv_diff.

The lv_day_diff is '4'

你可能感兴趣的:(获取两个日期相差天数)