CDS_ATP_HR_EXP_DAY_DIFFERENCE

DDL: CDS_ATP_HR_EXP_DAY_DIFFERENCE SQL: ATPHR1 Type: view

Day diff. between now and exp. date

CDS_ATP_HR_EXP_DAY_DIFFERENCE is a CDS View that provides data about "Day diff. between now and exp. date" in SAP S/4HANA. It reads from 1 data source (atp_highrunner) and exposes 4 fields with key fields matnr, werks, berid.

Data Sources (1)

SourceAliasJoin Type
atp_highrunner atp_highrunner from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName ATPHR1 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Day diff. between now and exp. date view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY matnr matnr Vehicle Model
KEY werks werks Receiving Plant
KEY berid berid Single-Character Flag
clientNULLasdays_difference

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view CDS_ATP_HR_EXP_DAY_DIFFERENCE.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: ATPHR1

CREATE VIEW CDS_ATP_HR_EXP_DAY_DIFFERENCE AS
SELECT
  matnr,
  werks,
  berid,
  dats_days_between( expiry_date, tstmp_to_dats( tstmp_current_utctimestamp(), abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) ) as days_difference AS clientNULLasdays_difference
FROM atp_highrunner
;