Ansicht
Dokumentation

ABENLOGEXP_DATE_TIME - LOGEXP DATE TIME

ABENLOGEXP_DATE_TIME - LOGEXP DATE TIME

Vendor Master (General Section)   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

- Comparison Type of Date Fields, Time Fields, and Time Stamp Fields

The following tables show the comparison types for comparisons between date/time types and other data types. If the type of an operand is not the same as the comparison type, it is converted to this type. The comparison rules for the comparison types determine how the comparison is performed. If no comparison type is specified for a combination, no comparison is possible.

Comparisons with Numeric Data Types

- d, t utclong
decfloat16, decfloat34 decfloat34 -
f f -
p p -
int8 int8 -
i, s, b i -

Example

The content of the system field sy-datlo is converted to the number of days since 01/01/0001 in the comparison and compared with the content of days.

Comparisons with Character-Like Data Types

- d, t utclong
string string utclong
c c utclong
n n -

Length Adjustments

  • For comparisons between data types c, n, or string on the one hand and d on the other, the longer field is truncated on the right to the length of the shorter field, if only blanks are truncated.
  • For comparisons between data types c or n on the one hand and t on the other, the longer field is truncated on the right to the length of the shorter field, if only blanks or characters "0" are truncated.
  • Lengths are not adjusted for comparisons between the data type string and the data type t.

Example

Comparison of any text string with the content of the system field sy-datlo.

A time stamp formatted as a character string with the formatting option TIMESTAMP can be converted to utclong and compared with a time stamp field. Instead of ISO, SPACE could also be specified.

Comparisons with Byte-Like Data Types

- d, t utclong
x, xstring i -

Example

A hexadecimal number that is the result of the conversion of a valid time is equal to this time.

Comparisons with Date Types, Time Types, or Time Stamp Types

- d t utclong
d d - -
t - t -
utclong - - utclong

Example

The time generated through the addition of the value 86399 to the current time is compared with the current time. It is smaller than the current time.

A later time stamp is always greater than an earlier time stamp.






General Material Data   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 5599 Date: 20240328 Time: 232827     sap01-206 ( 55 ms )