Ansicht
Dokumentation
ABENCDS_TIME_FUNCTIONS_V2 - CDS TIME FUNCTIONS V2
Vendor Master (General Section) RFUMSV00 - Advance Return for Tax on Sales/PurchasesThis documentation is copyright by SAP AG.
- CDS View Entity, Time Functions
... TIMS_IS_VALID(time) ...
Effect
In a CDS view entity, the function TIMS_IS_VALID determines whether the positional parameter time contains a valid time in the format HHMMSS. The actual parameter must have the built-in data type TIMS. time can be specified as literal, field of a data source, parameter, path expression, reuse expression using $projection, or built-in function. 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.
Note
It is not currently possible to access the current system time directly in a CDS view entity. Instead, a CDS view entity 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.
Example
The following CDS view entity demonstrates how to use the time function TIMS_IS_VALID. The program DEMO_CDS_TIME_FUNC_VE uses SELECT to access the view. You can assign any value to the column TIMS1 of the DDIC database table DEMO_EXPRESSIONS.
Fill RESBD Structure from EBP Component Structure BAL Application Log Documentation
This documentation is copyright by SAP AG.
Length: 2885 Date: 20240423 Time: 230547 sap01-206 ( 35 ms )