I_PurInfCndPeriodWithDraft

DDL: I_PURINFCNDPERIODWITHDRAFT SQL: I_PURINFCNDPRDWD Type: view TRANSACTIONAL

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)

SourceAliasJoin Type
I_PurInfCndPeriod Document from

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;