C_CPurConHierHdrCndnValdtyTP

DDL: C_CPURCONHIERHDRCNDNVALDTYTP SQL: CCHIHDRCNDVALTP Type: view CONSUMPTION Package: ODATA_MM_OA_MAINTAIN

C View for HCTR Hdr Condition Validity

C_CPurConHierHdrCndnValdtyTP is a Consumption CDS View that provides data about "C View for HCTR Hdr Condition Validity" in SAP S/4HANA. It reads from 1 data source (I_CntrlPurContrHdrCndnValdtyTP) and exposes 12 fields with key fields CentralPurchaseContract, ConditionRecord, ConditionValidityEndDate. It has 4 associations to related views. Part of development package ODATA_MM_OA_MAINTAIN.

Data Sources (1)

SourceAliasJoin Type
I_CntrlPurContrHdrCndnValdtyTP I_CntrlPurContrHdrCndnValdtyTP from

Associations (4)

CardinalityTargetAliasCondition
[1..*] C_CPurConHierHdrCndnAmountTP _CntrlPurContrHdrCndnAmountTP $projection.CentralPurchaseContract = _CntrlPurContrHdrCndnAmountTP.CentralPurchaseContract and $projection.ConditionRecord = _CntrlPurContrHdrCndnAmountTP.ConditionRecord and $projection.ConditionValidityEndDate = _CntrlPurContrHdrCndnAmountTP.ConditionValidityEndDate
[1..1] C_CntrlPurContrHierHdrTP _CentralPurchaseContractTP $projection.CentralPurchaseContract = _CentralPurchaseContractTP.CentralPurchaseContract
[0..1] I_PurConditionText _ConditionText $projection.ConditionType = _ConditionText.ConditionType and _ConditionText.ConditionApplication = 'M' and _ConditionText.Language = $session.system_language
[0..*] C_PurgDocHeaderConditionTypeVH _PurgHeaderConditionTypeVH $projection.ConditionType = _PurgHeaderConditionTypeVH.ConditionType

Annotations (18)

NameValueLevelField
AbapCatalog.sqlViewName CCHIHDRCNDVALTP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label C View for HCTR Hdr Condition Validity view
VDM.viewType #CONSUMPTION view
ObjectModel.createEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
UI.headerInfo.typeName Contract Header Validity view
UI.headerInfo.typeNamePlural Contract Header Validities view
UI.headerInfo.title.value ConditionValidityEndDate view
UI.headerInfo.description.value ConditionValidityEndDate view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY CentralPurchaseContract CentralPurchaseContract Purchasing Doc.
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
ConditionIsDeleted ConditionIsDeleted Deletion Indic.
_CentralPurchaseContractTP _CentralPurchaseContractTP
_CntrlPurContrHdrCndnAmountTP _CntrlPurContrHdrCndnAmountTP
_ConditionText _ConditionText
_PurgHeaderConditionTypeVH _PurgHeaderConditionTypeVH

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_CPurConHierHdrCndnValdtyTP.
-- 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: CCHIHDRCNDVALTP

CREATE VIEW C_CPurConHierHdrCndnValdtyTP AS
SELECT
  CentralPurchaseContract,
  ConditionRecord,
  ConditionValidityEndDate,
  ConditionApplication,
  ConditionType,
  _ConditionText.ConditionText AS ConditionText,
  ConditionValidityStartDate,
  ConditionIsDeleted
FROM I_CntrlPurContrHdrCndnValdtyTP
LEFT OUTER JOIN C_CPurConHierHdrCndnAmountTP AS _CntrlPurContrHdrCndnAmountTP ON CentralPurchaseContract = _CntrlPurContrHdrCndnAmountTP.CentralPurchaseContract AND ConditionRecord = _CntrlPurContrHdrCndnAmountTP.ConditionRecord AND ConditionValidityEndDate = _CntrlPurContrHdrCndnAmountTP.ConditionValidityEndDate  -- association [1..*]
LEFT OUTER JOIN C_CntrlPurContrHierHdrTP AS _CentralPurchaseContractTP ON CentralPurchaseContract = _CentralPurchaseContractTP.CentralPurchaseContract  -- association [1..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_PurgDocHeaderConditionTypeVH AS _PurgHeaderConditionTypeVH ON ConditionType = _PurgHeaderConditionTypeVH.ConditionType  -- association [0..*]
;