Function z_test.
*"----------------------------------------------------------------------
*"*"Interfase local
*" IMPORTING
*" REFERENCE(FECHA_INI) TYPE DATUM DEFAULT '04022012'
*" REFERENCE(HORA_INI) TYPE UZEIT DEFAULT '162200'
*" REFERENCE(FECHA_FIN) TYPE DATUM DEFAULT '05022012'
*" REFERENCE(HORA_FIN) TYPE UZEIT DEFAULT '010000'
*" EXPORTING
*" VALUE(E_TDIFF) LIKE TVRO-FAHZTD
*" VALUE(E_DATE2_EARLY) LIKE RV56A-SELKZ
*"----------------------------------------------------------------------
call function 'SD_CALC_DURATION_FROM_DATETIME'
exporting
i_date1 = fecha_ini
i_time1 = hora_ini
i_date2 = fecha_fin
i_time2 = hora_fin
importing
e_tdiff = e_tdiff
e_date2_early = e_date2_early
exceptions
invalid_datetime = 1
others = 2.
endfunction.
No hay comentarios:
Publicar un comentario