P_CndnContrConditionUsage
P_CndnContrConditionUsage is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (wcocof) and exposes 32 fields with key field DocRelationshipUUID. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| wcocof | wcocof | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ConditionApplication | _ConditionApplication | $projection.ConditionApplication = _ConditionApplication.ConditionApplication |
| [0..1] | I_PricingConditionType | _ConditionType | $projection.ConditionApplication = _ConditionType.ConditionApplication and $projection.ConditionType = _ConditionType.ConditionType |
| [1..1] | I_ConditionContract | _ConditionContract | $projection.ConditionContract = _ConditionContract.ConditionContract |
| [0..1] | I_CndnContrAccrRvslSts | _CndnContrAccrRvslSts | $projection.CndnContrAccrRvslSts = _CndnContrAccrRvslSts.CndnContrAccrRvslSts |
| [0..1] | I_Currency | _AccrSrceDocCurrency | $projection.AccrSrceDocCurrency = _AccrSrceDocCurrency.Currency |
| [0..1] | I_Plant | _AccrSrceDocItemPlant | $projection.AccrSrceDocItemPlant = _AccrSrceDocItemPlant.Plant |
| [0..1] | I_CompanyCode | _AccrSrceDocCompanyCode | $projection.AccrSrceDocCompanyCode = _AccrSrceDocCompanyCode.CompanyCode |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCCCNDUSAGE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ObjectModel.representativeKey | DocRelationshipUUID | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (32)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DocRelationshipUUID | ruuid | SM Doc Rel UUID | |
| PricingDocument | knumv | Doc. Condition | ||
| PricingProcedureStep | stunr | Step Number | ||
| PricingProcedureCounter | zaehk | Counter | ||
| ConditionContract | num | Total Members | ||
| CndnContrUUID | guid | UUID 22 char. | ||
| ConditionRecord | knumh | NoCondRec.Batch | ||
| ConditionSequentialNumberShort | kopos | SequNo of Cond. | ||
| CndnContrAccrRvslSts | accr_rev_status | Accr. Rev. Status | ||
| AccrSrceDocCategory | Document Type | |||
| AccrSrceDocument | Follow-On Doc. | |||
| AccrSrceDocumentYear | Follow-On Doc Year | |||
| AccrSrceDocumentItem | Number | |||
| ConditionApplication | kappl | Application | ||
| ConditionType | kschl | Tax Item Type | ||
| ConditionAmount | kwert | Condition Value | ||
| AccrSrceDocCurrency | Transaction Currency | |||
| AccrSrceDocPostingDate | Posting Date | |||
| SettlmtDate | settl_date | Settlement Date | ||
| SettlmtDateSequentialID | settl_date_seq_id | Settlement Date ID | ||
| RefSettlmtDate | ref_settl_date | Reference Date | ||
| RefSettlmtDateSequentialID | ref_settl_date_seq_id | Ref Settl Date ID | ||
| AccrSrceDocFiscalYear | Settlement Year | |||
| AccrSrceDocItemPlant | Receiving Plant | |||
| AccrSrceDocCompanyCode | Value | |||
| _ConditionApplication | _ConditionApplication | |||
| _ConditionType | _ConditionType | |||
| _ConditionContract | _ConditionContract | |||
| _AccrSrceDocCurrency | _AccrSrceDocCurrency | |||
| _AccrSrceDocItemPlant | _AccrSrceDocItemPlant | |||
| _AccrSrceDocCompanyCode | _AccrSrceDocCompanyCode | |||
| _CndnContrAccrRvslSts | _CndnContrAccrRvslSts |
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_CndnContrConditionUsage.
-- 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.
CREATE VIEW P_CndnContrConditionUsage AS
SELECT
ruuid AS DocRelationshipUUID,
knumv AS PricingDocument,
stunr AS PricingProcedureStep,
zaehk AS PricingProcedureCounter,
num AS ConditionContract,
guid AS CndnContrUUID,
knumh AS ConditionRecord,
kopos AS ConditionSequentialNumberShort,
accr_rev_status AS CndnContrAccrRvslSts,
cast( doc_type_to as wcb_accdoc_category preserving type ) AS AccrSrceDocCategory,
cast( docnr_to as wcb_accdoc_number preserving type ) AS AccrSrceDocument,
cast( doc_year_to as wcb_accdoc_year preserving type ) AS AccrSrceDocumentYear,
cast( kposn as wcb_accdoc_item preserving type ) AS AccrSrceDocumentItem,
kappl AS ConditionApplication,
kschl AS ConditionType,
kwert AS ConditionAmount,
cast( waers as wcb_accdoc_currency preserving type ) AS AccrSrceDocCurrency,
cast( budat as wcb_accdoc_posting_date preserving type ) AS AccrSrceDocPostingDate,
settl_date AS SettlmtDate,
settl_date_seq_id AS SettlmtDateSequentialID,
ref_settl_date AS RefSettlmtDate,
ref_settl_date_seq_id AS RefSettlmtDateSequentialID,
cast( gjahr as wcb_accdoc_fiscal_year preserving type ) AS AccrSrceDocFiscalYear,
cast( werks as wcb_accdoc_item_plant preserving type ) AS AccrSrceDocItemPlant,
cast( bukrs as wcb_accdoc_company_code preserving type ) AS AccrSrceDocCompanyCode
FROM wcocof
LEFT OUTER JOIN I_ConditionApplication AS _ConditionApplication ON ConditionApplication = _ConditionApplication.ConditionApplication -- association [0..1]
LEFT OUTER JOIN I_PricingConditionType AS _ConditionType ON ConditionApplication = _ConditionType.ConditionApplication AND ConditionType = _ConditionType.ConditionType -- association [0..1]
LEFT OUTER JOIN I_ConditionContract AS _ConditionContract ON ConditionContract = _ConditionContract.ConditionContract -- association [1..1]
LEFT OUTER JOIN I_CndnContrAccrRvslSts AS _CndnContrAccrRvslSts ON CndnContrAccrRvslSts = _CndnContrAccrRvslSts.CndnContrAccrRvslSts -- association [0..1]
LEFT OUTER JOIN I_Currency AS _AccrSrceDocCurrency ON AccrSrceDocCurrency = _AccrSrceDocCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Plant AS _AccrSrceDocItemPlant ON AccrSrceDocItemPlant = _AccrSrceDocItemPlant.Plant -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _AccrSrceDocCompanyCode ON AccrSrceDocCompanyCode = _AccrSrceDocCompanyCode.CompanyCode -- association [0..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