Menu

SAP Function Module SD_DATETIME_DIFFERENCE

Ermittlung der Differenz zwischen zwei Datums/Zeitwerten.

The Function Module SD_DATETIME_DIFFERENCE (Ermittlung der Differenz zwischen zwei Datums/Zeitwerten.) is a standard Function Module in SAP ERP and is part of the function group V56G within the package VTR.

Technical Information

Function Module SD_DATETIME_DIFFERENCE
Short Text Ermittlung der Differenz zwischen zwei Datums/Zeitwerten.
Function Group V56G
Package VTR
Module Type Normal Module

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
DATE1 TYPE D Datum Zeitpunkt 1
DATE2 TYPE D Datum Zeitpunkt 2
TIME1 TYPE T Uhrzeit Zeitpunkt 1
TIME2 TYPE T Uhrzeit Zeitpunkt 2

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
DATEDIFF TYPE P Differenz (volle Tage, abs.)zwischen Zp1 und Zp2
EARLIEST TYPE C Index des früheren Zeitpunkts ('1', '2' oder '0'
TIMEDIFF TYPE P Differenz (Stunden) zwischen Zp1 und Zp2

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

This function module does not define any TABLE parameters.

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
INVALID_DATETIME Ungültiges Datum oder Uhrzeit übergeben