C_CntrlPurContrItmCndnValdtyTP

DDL: C_CNTRLPURCONTRITMCNDNVALDTYTP SQL: CCCTRICNDNVALTP Type: view CONSUMPTION Package: ODATA_MM_CCTR_MAINTAIN

Central Contract Item Condition Validity

C_CntrlPurContrItmCndnValdtyTP is a Consumption CDS View that provides data about "Central Contract Item Condition Validity" in SAP S/4HANA. It reads from 1 data source (I_CntrlPurContrItmCndnValdtyTP) and exposes 20 fields with key fields CentralPurchaseContract, CentralPurchaseContractItem, ConditionRecord, ConditionValidityEndDate. It has 6 associations to related views. Part of development package ODATA_MM_CCTR_MAINTAIN.

Data Sources (1)

SourceAliasJoin Type
I_CntrlPurContrItmCndnValdtyTP I_CntrlPurContrItmCndnValdtyTP from

Associations (6)

CardinalityTargetAliasCondition
[1..*] C_CntrlPurContrItmCndnAmountTP _CntrlPurContrItmCndnAmountTP $projection.CentralPurchaseContract = _CntrlPurContrItmCndnAmountTP.CentralPurchaseContract and $projection.CentralPurchaseContractItem = _CntrlPurContrItmCndnAmountTP.CentralPurchaseContractItem and $projection.ConditionRecord = _CntrlPurContrItmCndnAmountTP.ConditionRecord and $projection.ConditionValidityEndDate = _CntrlPurContrItmCndnAmountTP.ConditionValidityEndDate
[1..1] C_CntrlPurchaseContractItemTP _CntrlPurchaseContractItemTP $projection.CentralPurchaseContract = _CntrlPurchaseContractItemTP.CentralPurchaseContract and $projection.CentralPurchaseContractItem = _CntrlPurchaseContractItemTP.CentralPurchaseContractItem
[1..1] C_CentralPurchaseContractTP _CentralPurchaseContractTP $projection.CentralPurchaseContract = _CentralPurchaseContractTP.CentralPurchaseContract
[1..*] C_ProcmtHubPlantSystemVH _ProcmtHubPlantSystemVH $projection.ProcmtHubPlantUniqueID = _ProcmtHubPlantSystemVH.ProcmtHubPlantUniqueID
[0..1] I_PurConditionText _ConditionText $projection.ConditionType = _ConditionText.ConditionType and _ConditionText.ConditionApplication = 'M' and _ConditionText.Language = $session.system_language
[0..*] C_PurgMasterConditionTypeVH _PurgMasterConditionTypeVH $projection.ConditionType = _PurgMasterConditionTypeVH.ConditionType

Annotations (18)

NameValueLevelField
AbapCatalog.sqlViewName CCCTRICNDNVALTP view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
ObjectModel.createEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.transactionalProcessingDelegated true view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Central Contract Item Condition Validity view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
UI.headerInfo.typeName Contract Item Validity view
UI.headerInfo.typeNamePlural Contract Item Validities view
UI.headerInfo.title.value ConditionValidityEndDate view
UI.headerInfo.description.value ConditionValidityEndDate view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY CentralPurchaseContract CentralPurchaseContract Purchasing Doc.
KEY CentralPurchaseContractItem CentralPurchaseContractItem Item in Central Purchase Contract
KEY ConditionRecord ConditionRecord Cond.Record No.
KEY ConditionValidityEndDate ConditionValidityEndDate Valid To
ConditionApplication ConditionApplication Application
ConditionType ConditionType ConditionType
ConditionText _ConditionText ConditionText Node Condition Text
ConditionValidityStartDate ConditionValidityStartDate Valid From
ProcmtHubPlantUniqueID I_CntrlPurContrItmCndnValdtyTP ProcmtHubPlantUniqueID Plant Unique ID
ProcmtHubPlant _ProcmtHubPlantSystemVH ProcmtHubPlant Plant
ProcurementHubSourceSystem _ProcmtHubPlantSystemVH ProcurementHubSourceSystem Source System
ProcurementHubSourceSystemName _ProcmtHubPlantSystemVH ProcurementHubSourceSystemName Connected Sys Name
ProcmtHubPlantName _ProcmtHubPlantSystemVH ProcmtHubPlantName Plant Name
ConditionIsDeleted ConditionIsDeleted Deletion Indic.
_CentralPurchaseContractTP _CentralPurchaseContractTP
_CntrlPurContrItmCndnAmountTP _CntrlPurContrItmCndnAmountTP
_CntrlPurchaseContractItemTP _CntrlPurchaseContractItemTP
_ProcmtHubPlantSystemVH _ProcmtHubPlantSystemVH
_ConditionText _ConditionText
_PurgMasterConditionTypeVH _PurgMasterConditionTypeVH

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 C_CntrlPurContrItmCndnValdtyTP.
-- 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: CCCTRICNDNVALTP

CREATE VIEW C_CntrlPurContrItmCndnValdtyTP AS
SELECT
  CentralPurchaseContract,
  CentralPurchaseContractItem,
  ConditionRecord,
  ConditionValidityEndDate,
  ConditionApplication,
  ConditionType,
  _ConditionText.ConditionText AS ConditionText,
  ConditionValidityStartDate,
  I_CntrlPurContrItmCndnValdtyTP.ProcmtHubPlantUniqueID AS ProcmtHubPlantUniqueID,
  _ProcmtHubPlantSystemVH.ProcmtHubPlant AS ProcmtHubPlant,
  _ProcmtHubPlantSystemVH.ProcurementHubSourceSystem AS ProcurementHubSourceSystem,
  _ProcmtHubPlantSystemVH.ProcurementHubSourceSystemName AS ProcurementHubSourceSystemName,
  _ProcmtHubPlantSystemVH.ProcmtHubPlantName AS ProcmtHubPlantName,
  ConditionIsDeleted
FROM I_CntrlPurContrItmCndnValdtyTP
LEFT OUTER JOIN C_CntrlPurContrItmCndnAmountTP AS _CntrlPurContrItmCndnAmountTP ON CentralPurchaseContract = _CntrlPurContrItmCndnAmountTP.CentralPurchaseContract AND CentralPurchaseContractItem = _CntrlPurContrItmCndnAmountTP.CentralPurchaseContractItem AND ConditionRecord = _CntrlPurContrItmCndnAmountTP.ConditionRecord AND ConditionValidityEndDate = _CntrlPurContrItmCndnAmountTP.ConditionValidityEndDate  -- association [1..*]
LEFT OUTER JOIN C_CntrlPurchaseContractItemTP AS _CntrlPurchaseContractItemTP ON CentralPurchaseContract = _CntrlPurchaseContractItemTP.CentralPurchaseContract AND CentralPurchaseContractItem = _CntrlPurchaseContractItemTP.CentralPurchaseContractItem  -- association [1..1]
LEFT OUTER JOIN C_CentralPurchaseContractTP AS _CentralPurchaseContractTP ON CentralPurchaseContract = _CentralPurchaseContractTP.CentralPurchaseContract  -- association [1..1]
LEFT OUTER JOIN C_ProcmtHubPlantSystemVH AS _ProcmtHubPlantSystemVH ON ProcmtHubPlantUniqueID = _ProcmtHubPlantSystemVH.ProcmtHubPlantUniqueID  -- association [1..*]
LEFT OUTER JOIN I_PurConditionText AS _ConditionText ON ConditionType = _ConditionText.ConditionType AND _ConditionText.ConditionApplication = 'M' AND _ConditionText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN C_PurgMasterConditionTypeVH AS _PurgMasterConditionTypeVH ON ConditionType = _PurgMasterConditionTypeVH.ConditionType  -- association [0..*]
;