I_PurCtrCnd
Contract Conditions Header View
I_PurCtrCnd is a Basic CDS View that provides data about "Contract Conditions Header View" in SAP S/4HANA. It reads from 2 data sources (konp, a019) and exposes 19 fields with key fields PurchaseContract, ConditionValidityEndDate. It has 3 associations to related views.
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PurchaseContract | _ContractHeader | $projection.PurchaseContract = _ContractHeader.PurchaseContract |
| [0..1] | I_Currency | _DocumentCurrency | $projection.ConditionRateValueUnit = _DocumentCurrency.Currency |
| [1..*] | I_PurConditionText | _ConditionText | $projection.ConditionType = _ConditionText.ConditionType |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPURCTRCND | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Contract Conditions Header View | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseContract | a019 | evrtn | Purchasing Doc. |
| KEY | ConditionValidityEndDate | |||
| ConditionRecord | a019 | knumh | NoCondRec.Batch | |
| ConditionType | konp | kschl | Tax Item Type | |
| ConditionSequentialNumber | konp | kopos | SequNo of Cond. | |
| ConditionValidityStartDate | ||||
| ConditionRateValue | konp | kbetr | Tax Rate | |
| ConditionRateValueUnit | konp | konwa | Cond. Currency | |
| ConditionQuantity | konp | kpein | Pricing Unit | |
| ConditionQuantityUnit | konp | kmein | Unit of Measure | |
| ConditionApplication | konp | kappl | Application | |
| ConditionCalculationType | konp | krech | Calculat.Type | |
| ConditionIsDeleted | konp | loevm_ko | Deletion Indic. | |
| ConditionToBaseQtyNmrtr | konp | kumza | Numerator | |
| ConditionToBaseQtyDnmntr | konp | kumne | Denominator | |
| BaseUnit | konp | meins | Valuation Unit | |
| _ConditionText | _ConditionText | |||
| _DocumentCurrency | _DocumentCurrency | |||
| _ContractHeader | _ContractHeader |
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 I_PurCtrCnd.
-- 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: IPURCTRCND
CREATE VIEW I_PurCtrCnd AS
SELECT
ConditionHeader.evrtn AS PurchaseContract,
cast (ConditionHeader.datbi as abap.dats) AS ConditionValidityEndDate,
ConditionHeader.knumh AS ConditionRecord,
ConditionDetails.kschl AS ConditionType,
ConditionDetails.kopos AS ConditionSequentialNumber,
cast (ConditionHeader.datab as abap.dats) AS ConditionValidityStartDate,
ConditionDetails.kbetr AS ConditionRateValue,
ConditionDetails.konwa AS ConditionRateValueUnit,
ConditionDetails.kpein AS ConditionQuantity,
ConditionDetails.kmein AS ConditionQuantityUnit,
ConditionDetails.kappl AS ConditionApplication,
ConditionDetails.krech AS ConditionCalculationType,
ConditionDetails.loevm_ko AS ConditionIsDeleted,
ConditionDetails.kumza AS ConditionToBaseQtyNmrtr,
ConditionDetails.kumne AS ConditionToBaseQtyDnmntr,
ConditionDetails.meins AS BaseUnit
FROM a019 AS ConditionHeader
INNER JOIN konp AS ConditionDetails ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PurchaseContract AS _ContractHeader ON PurchaseContract = _ContractHeader.PurchaseContract -- association [1..1]
LEFT OUTER JOIN I_Currency AS _DocumentCurrency ON ConditionRateValueUnit = _DocumentCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_PurConditionText AS _ConditionText ON ConditionType = _ConditionText.ConditionType -- association [1..*]
;
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