SAP CHAR DATE TIME FIELDS CHARLIKE



Get Example source ABAP code based on a different SAP table
  



Character-Like Access to Date Fields and Time Fields
Character-like access to character-like content of date fields and time fields is evaluated in a character-like way. The character-like nature of date fields and time fields can be exploited, for example, to access detailed information. To avoid unexpected results from this type of access, the validity of the content of the date or time fields must be ensured. Most statements and functions used in character string processing are not suitable for processing date fields and time fields because they generally produce invalid content.

ABAP_EXAMPLE_VX5
The following example demonstrates how substring functions can be used to extract the components year, month, day, hour, minute, and second from date fields and time fields.
ABEXA 01699
ABAP_EXAMPLE_END