Skip to content

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
  • Functional operand positions in statements for time stamps

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 ) ) ).