P_Srhdatvalid

DDL: P_SRHDATVALID SQL: PSRCHDATVLD Type: view BASIC

P_Srhdatvalid is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (mmpur_cat_itm) and exposes 2 fields with key field OpnCtlgItemID.

Data Sources (1)

SourceAliasJoin Type
mmpur_cat_itm cat_itm from

Annotations (7)

NameValueLevelField
VDM.private true view
VDM.viewType #BASIC view
ClientDependent true view
AbapCatalog.sqlViewName PSRCHDATVLD view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #C view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY OpnCtlgItemID mmpur_cat_itm ctlg_itm_key Catalog Item Key
char20asIsOpnCtlgValidDate

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 P_Srhdatvalid.
-- 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: PSRCHDATVLD

CREATE VIEW P_Srhdatvalid AS
SELECT
  cat_itm.ctlg_itm_key AS OpnCtlgItemID,
  cast( tstmp_seconds_between( tstmp_current_utctimestamp(), cat_itm.price_valid_to, 'NULL') as abap.char( 20 )) as IsOpnCtlgValidDate AS char20asIsOpnCtlgValidDate
FROM mmpur_cat_itm AS cat_itm
;