R_PurContrItemCndnValdtyTP

DDL: R_PURCONTRITEMCNDNVALDTYTP Type: view_entity TRANSACTIONAL Package: RAP_MM_PUR_CONTRACT

Purchase Contract Itm Condition Validity

R_PurContrItemCndnValdtyTP is a Transactional CDS View that provides data about "Purchase Contract Itm Condition Validity" in SAP S/4HANA. It reads from 1 data source (I_PurContrItemCndnValdty) and exposes 14 fields with key fields PurchaseContract, PurchaseContractItem, ConditionRecord, ConditionValidityEndDate. It has 1 association to related views. Part of development package RAP_MM_PUR_CONTRACT.

Data Sources (1)

SourceAliasJoin Type
I_PurContrItemCndnValdty I_PurContrItemCndnValdty from

Associations (1)

CardinalityTargetAliasCondition
[1..*] R_PurContrItemCndnAmountTP _PurContrItemCndnAmount

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Purchase Contract Itm Condition Validity view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
Metadata.ignorePropagatedAnnotations true view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContract PurchaseContract Purchasing Doc.
KEY PurchaseContractItem PurchaseContractItem Item
KEY ConditionRecord ConditionRecord Cond.Record No.
KEY ConditionValidityEndDate ConditionValidityEndDate Valid To
ConditionApplication ConditionApplication Application
ConditionType ConditionType Condition type
ConditionValidityStartDate ConditionValidityStartDate Valid From
ConditionIsDeleted ConditionIsDeleted Deletion Indic.
Plant Plant Valuation Area
LastChangeDateTime _PurContract LastChangeDateTime Timestamp
ConditionValdtyEndDateForEdit
_ContractItem _ContractItem
_PurContract _PurContract
_PurContrItemCndnAmount _PurContrItemCndnAmount

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 R_PurContrItemCndnValdtyTP.
-- 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 R_PurContrItemCndnValdtyTP AS
SELECT
  PurchaseContract,
  PurchaseContractItem,
  ConditionRecord,
  ConditionValidityEndDate,
  ConditionApplication,
  ConditionType,
  ConditionValidityStartDate,
  ConditionIsDeleted,
  Plant,
  _PurContract.LastChangeDateTime AS LastChangeDateTime,
  cast( '00000000' as kodatbi ) AS ConditionValdtyEndDateForEdit
FROM I_PurContrItemCndnValdty
LEFT OUTER JOIN R_PurContrItemCndnAmountTP AS _PurContrItemCndnAmount ON /* condition not available in parsed metadata */  -- association [1..*]
;