DATEFUNC_FISCAL_SIMULATE_QUERY
Simulates the date range values
DATEFUNC_FISCAL_SIMULATE_QUERY is a CDS View that provides data about "Simulates the date range values" in SAP S/4HANA. It reads from 1 data source (I_FiscalDateFunctionValue) and exposes 5 fields with key field id.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_FiscalDateFunctionValue | DateFucntionValue | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | FISCDFSIMQUERY | view | |
| EndUserText.label | Simulates the date range values | view | |
| ObjectModel.usageType.dataClass | #META | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | id | DateFunction | ||
| DateFunctionStartDate | DateFunctionStartDate | |||
| DateFunctionEndDate | DateFunctionEndDate | |||
| clientFAILasDateFunctionStartDateTime | ||||
| clientFAILasDateFunctionEndDateTime |
@AbapCatalog.sqlViewName: 'FISCDFSIMQUERY'
@EndUserText.label: 'Simulates the date range values'
@ObjectModel.usageType.dataClass: #META
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #M
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #NOT_REQUIRED
define view DATEFUNC_FISCAL_SIMULATE_QUERY
//as select from C_GregorianCalDateFunction (P_Language : $session.system_language, P_DateFunctionValidityDate : $session.system_date) {
// key DateFunction as id,
// DateFunctionStartDate,
// DateFunctionEndDate
//}
as select from I_FiscalDateFunctionValue as DateFucntionValue
{
key DateFunction as id,
DateFunctionStartDate,
DateFunctionEndDate,
dats_tims_to_tstmp(DateFunctionStartDate, cast( '000000' as abap.tims),
abap_user_timezone($session.user, $session.client, 'FAIL'),
$session.client, 'FAIL' ) as DateFunctionStartDateTime,
dats_tims_to_tstmp(DateFunctionEndDate, cast( '235959' as abap.tims),
abap_user_timezone($session.user, $session.client, 'FAIL'),
$session.client, 'FAIL' ) as DateFunctionEndDateTime
}
where
DateFunctionValidityDate = $session.system_date and DateFucntionValue.FiscalYearVariant = 'K4'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_FISCALDATEFUNCTIONVALUE"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA