C_CPurConHierHdrCndnValdtyTP
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)
| Source | Alias | Join Type |
|---|---|---|
| I_CntrlPurContrHdrCndnValdtyTP | I_CntrlPurContrHdrCndnValdtyTP | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA