Get Example source ABAP code based on a different SAP table
ABAP_RELEXP > - Comparison Type of Date Fields, Time Fields, andTime 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. ITOC
Comparisons with Numeric Data Types - d>, t><(>utclong<)>> <(>decfloat16<)>>, <(>decfloat34<)>>decfloat34> -> f>f>-> p>p>-> <(>int8<)>>int8>-> i>, s>, b>i>->
ABAP_EXAMPLE_VX5 The content of the syst_datum> type data object date> is converted to the number of days since 01/01/0001 in the comparison and compared with the content of days>. ABEXA 01091 ABAP_EXAMPLE_END
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>.
ABAP_EXAMPLE_VX5 Comparison of any text string with the syst_datum> type data object date>. ABEXA 01092 ABAP_EXAMPLE_END
ABAP_EXAMPLE_VX5 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. ABEXA 01093 ABAP_EXAMPLE_END
Comparisons with Byte-Like Data Types - d>, t><(>utclong<)>> x>, <(>xstring<)>>i>->