ABAP Keyword Documentation → ABAP − Reference → ABAP Syntax → ABAP Statements → Operands → Functions and Expressions in Operand Positions → Operand Positions for Functions and Expressions → Reading Positions for Functions and Expressions
Time-Stamp-Like Expression Positions
Time-stamp-like expression positions are reading positions in which time stamp fields plus constructor expressions, table expressions, and built-in functions can be specified, or functional method calls and method chainings whose return values have a time stamp type. The following time-stamp-like expression positions exist:
- Time-stamp-like arguments in time stamp functions
- Operand
time_stamp
of the functionutclong_add( val = time_stamp ... )
- Operands
time_stamp2
andtime_stamp1
of the function
utclong_diff( high = time_stamp2 low = time_stamp1 )
- Functional operand positions in statements for time stamps
- Operand
time_stamp
of the statementCONVERT UTCLONG time_stamp TIME ZONE tz INTO ...
Other versions:
7.31 | 7.40 | 7.54
Example
Specifies a functional method call and a time stamp function as arguments of the time stamp function utclong_diff
.
DATA ts TYPE timestampl.
GET TIME STAMP FIELD ts.
cl_demo_output=>display(
utclong_diff(
low = cl_abap_tstmp=>tstmp2utclong( timestamp = ts )
high = utclong_add( val = utclong_current( )
hours = 1 ) ) ).