ABAP Keyword Documentation → ABAP − Reference → Processing Internal Data → Assignments → Assignment and Conversion Rules → Conversion Rules for Elementary Data Objects
Date fields, time fields, and time stamp fields as source fields
Other versions:
Notes
- The conversion rules are designed so that operands of the types
d
andt
display character-like behavior in character-like operand positions and numeric behavior in numeric operand positions.
- In the case of a substring access to an operand
of the type
d
ort
, the substring is handled like an operand of the typen
and the relevant conversion rules apply.
- Operands of the type
utclong
can only be converted to the typesc
andstring
.
Example
Converting a target field with the value 144414 to different target types. The type-friendly formatted output is 53054, 144414, CF3E. The number 53054 is the number of seconds since midnight for the time 144414.
DATA time TYPE t VALUE '144414'.
cl_demo_output=>display(
|i: { CONV i( time ) }\n| &&
|string: { CONV string( time ) }\n| &&
|xstring: { CONV xstring( time ) }\n| ).