I_PurInfCndPeriodWithDraft
Conditions Records Validity with Draft
I_PurInfCndPeriodWithDraft is a Transactional CDS View that provides data about "Conditions Records Validity with Draft" in SAP S/4HANA. It reads from 1 data source (I_PurInfCndPeriod) and exposes 23 fields with key fields ConditionValidityEndDate, Plant, PurchasingInfoRecordCategory, PurchasingOrganization, PurchasingInfoRecord. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurInfCndPeriod | Document | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PurgInfoRecordWWithDraft | _PurgInfoRecordWWithDraft | _PurgInfoRecordWWithDraft.Plant = $projection.Plant and _PurgInfoRecordWWithDraft.PurchasingInfoRecordCategory = $projection.PurchasingInfoRecordCategory and _PurgInfoRecordWWithDraft.PurchasingOrganization = $projection.PurchasingOrganization and _PurgInfoRecordWWithDraft.PurchasingInfoRecord = $projection.PurchasingInfoRecord |
| [0..1] | I_Currency | _DocumentCurrency | _DocumentCurrency.Currency = $projection.ConditionRateValueUnit |
| [0..*] | I_PurConditionText | _ConditionText | _ConditionText.ConditionType = $projection.ConditionType |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | I_PURINFCNDPRDWD | view | |
| EndUserText.label | Conditions Records Validity with Draft | view | |
| ObjectModel.writeDraftPersistence | INFREC_HDR_CND_D | view | |
| ObjectModel.draftEnabled | true | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ConditionValidityEndDate | I_PurInfCndPeriod | ConditionValidityEndDate | Valid To |
| KEY | Plant | I_PurInfCndPeriod | Plant | Valuation Area |
| KEY | PurchasingInfoRecordCategory | I_PurInfCndPeriod | PurchasingInfoRecordCategory | Infotype |
| KEY | PurchasingOrganization | I_PurInfCndPeriod | PurchasingOrganization | Purchasing Organization |
| KEY | PurchasingInfoRecord | I_PurInfCndPeriod | PurchasingInfoRecord | Info Record |
| KEY | ConditionRecord | I_PurInfCndPeriod | ConditionRecord | Cond.Record No. |
| ConditionValdtyEndDateForEdit | I_PurInfCndPeriod | ConditionValidityEndDate | Valid To | |
| ConditionSequentialNumber | I_PurInfCndPeriod | ConditionSequentialNumber | SequNo of Cond. | |
| ConditionType | I_PurInfCndPeriod | ConditionType | Condition type | |
| ConditionValidityStartDate | I_PurInfCndPeriod | ConditionValidityStartDate | Valid From | |
| ConditionRateValue | I_PurInfCndPeriod | ConditionRateValue | Condition Rate Value | |
| ConditionRateValueUnit | I_PurInfCndPeriod | ConditionRateValueUnit | Unit of Condition Rate Value | |
| ConditionQuantity | I_PurInfCndPeriod | ConditionQuantity | Pricing Unit | |
| ConditionQuantityUnit | I_PurInfCndPeriod | ConditionQuantityUnit | Unit of Measure | |
| ConditionApplication | I_PurInfCndPeriod | ConditionApplication | Application | |
| ConditionCalculationType | I_PurInfCndPeriod | ConditionCalculationType | Calculat.Type | |
| ConditionIsDeleted | I_PurInfCndPeriod | ConditionIsDeleted | Deletion Indic. | |
| ConditionToBaseQtyNmrtr | I_PurInfCndPeriod | ConditionToBaseQtyNmrtr | Numerator | |
| ConditionToBaseQtyDnmntr | I_PurInfCndPeriod | ConditionToBaseQtyDnmntr | Denominator | |
| BaseUnit | I_PurInfCndPeriod | BaseUnit | Unit of Measure | |
| _PurgInfoRecordWWithDraft | _PurgInfoRecordWWithDraft | |||
| _DocumentCurrency | _DocumentCurrency | |||
| _ConditionText | _ConditionText |
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_PurInfCndPeriodWithDraft.
-- 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: I_PURINFCNDPRDWD
CREATE VIEW I_PurInfCndPeriodWithDraft AS
SELECT
Document.ConditionValidityEndDate AS ConditionValidityEndDate,
Document.Plant AS Plant,
Document.PurchasingInfoRecordCategory AS PurchasingInfoRecordCategory,
Document.PurchasingOrganization AS PurchasingOrganization,
Document.PurchasingInfoRecord AS PurchasingInfoRecord,
Document.ConditionRecord AS ConditionRecord,
Document.ConditionValidityEndDate AS ConditionValdtyEndDateForEdit,
Document.ConditionSequentialNumber AS ConditionSequentialNumber,
Document.ConditionType AS ConditionType,
Document.ConditionValidityStartDate AS ConditionValidityStartDate,
Document.ConditionRateValue AS ConditionRateValue,
Document.ConditionRateValueUnit AS ConditionRateValueUnit,
Document.ConditionQuantity AS ConditionQuantity,
Document.ConditionQuantityUnit AS ConditionQuantityUnit,
Document.ConditionApplication AS ConditionApplication,
Document.ConditionCalculationType AS ConditionCalculationType,
Document.ConditionIsDeleted AS ConditionIsDeleted,
Document.ConditionToBaseQtyNmrtr AS ConditionToBaseQtyNmrtr,
Document.ConditionToBaseQtyDnmntr AS ConditionToBaseQtyDnmntr,
Document.BaseUnit AS BaseUnit
FROM I_PurInfCndPeriod AS Document
LEFT OUTER JOIN I_PurgInfoRecordWWithDraft AS _PurgInfoRecordWWithDraft ON _PurgInfoRecordWWithDraft.Plant = Plant AND _PurgInfoRecordWWithDraft.PurchasingInfoRecordCategory = PurchasingInfoRecordCategory AND _PurgInfoRecordWWithDraft.PurchasingOrganization = PurchasingOrganization AND _PurgInfoRecordWWithDraft.PurchasingInfoRecord = PurchasingInfoRecord -- association [1..1]
LEFT OUTER JOIN I_Currency AS _DocumentCurrency ON _DocumentCurrency.Currency = ConditionRateValueUnit -- association [0..1]
LEFT OUTER JOIN I_PurConditionText AS _ConditionText ON _ConditionText.ConditionType = 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