Ansicht
Dokumentation
ABENCDS_F1_TIME_FUNCTIONS - CDS F1 TIME FUNCTIONS
General Material Data Addresses (Business Address Services)This documentation is copyright by SAP AG.
- Time Functions
... TIMS_IS_VALID(time) ...
Variants:
Effect
In a CDS view, these functions execute operations with arguments of the built-in data type TIMS. The functions have positional parameters to which actual parameters need to be assigned when called. There are currently no optional parameters. Suitable fields of a data source, literals, parameters, path expressions, built-in functions, or expressions can all be specified as actual parameters. If an actual parameter contains the null value, every function except TIMS_IS_VALID returns a null value.
Note
It is not currently possible to access the current system time directly in a CDS view. Instead, a CDS view can be given an appropriate
input parameter. The special annotation
@Environment.systemField makes it possible to pass the value of the
ABAP system field sy-uzeit to this parameter.
Variant 1
... TIMS_IS_VALID(time)
Effect
The function TIMS_IS_VALID determines whether time (if specified) contains a valid time in the format HHMMSS. The actual parameter must have the built-in data type TIMS. The result has the data type INT4. A valid date produces the value 1 and all other input values (including the null value) produce the value 0.
Example
The following CDS view applies time functions in the SELECT list to columns of the DDIC database table DEMO_EXPRESSIONS. The program DEMO_CDS_TIME_FUNCTIONS uses SELECT to access the view. The column TIMS1 of the DDIC database table can be given any values.
Vendor Master (General Section) ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 3619 Date: 20240329 Time: 102130 sap01-206 ( 50 ms )