R_ConditionDocumentItem

DDL: R_CONDITIONDOCUMENTITEM Type: view_entity BASIC

Condition Document Item

R_ConditionDocumentItem is a Basic CDS View that provides data about "Condition Document Item" in SAP S/4HANA. It reads from 1 data source (wcocoi) and exposes 28 fields with key fields ConditionDocument, ConditionDocumentItemUUID. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
wcocoi wcocoi from

Associations (9)

CardinalityTargetAliasCondition
[1..1] R_ConditionDocument _ConditionDocument $projection.ConditionDocument = _ConditionDocument.ConditionDocument
[0..1] I_CndnDocItmActivationStatus _CndnDocItmActivationStatus $projection.CndnDocItmActivationStatus = _CndnDocItmActivationStatus.CndnDocItmActivationStatus
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_Product _Product $projection.Product = _Product.Product
[0..1] R_ConditionDocument _CndnDocItmRefcdCndnDoc $projection.CndnDocItmRefcdCndnDoc = _CndnDocItmRefcdCndnDoc.ConditionDocument
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_WBSElementBasicData _WBSElementInternalID $projection.WBSElementInternalID = _WBSElementInternalID.WBSElementInternalID
[0..1] I_InternalOrder _SettlmtMgmtOrder $projection.SettlmtMgmtOrder = _SettlmtMgmtOrder.InternalOrder

Annotations (9)

NameValueLevelField
EndUserText.label Condition Document Item view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #XXL view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions false view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY ConditionDocument Total Members
KEY ConditionDocumentItemUUID item_guid Push ItemGU
ConditionDocumentItem WBS Element
CndnDocItmActivationStatus Inactive
CndnDocItemValidFromDate date_from Validity Start Date
CndnDocItemValidToDate date_to Validity End Date
Customer Eligible Cust.
Supplier Eligible Suppl.
Product Vehicle Model
CndnDocItmRefcdCndnDoc List Number
CompanyCode Value
CostCenter Substitute CC
WBSElementInternalID WBS Element
SettlmtMgmtOrder aufnr SettlementOrder
SettlementDistributionRatio distribution_ratio Distribution Ratio
ConditionDocumentUUID UUID 22 char.
CndnDocItemSourceUUID External GUID
CndnDocObjNodeTypeAbbr sont_abbrv_i SAP Object Node Type Abbreviation
CndnDocSemanticCode semantic_type_i Semantic Type
_ConditionDocument _ConditionDocument
_CndnDocItmActivationStatus _CndnDocItmActivationStatus
_Customer _Customer
_Supplier _Supplier
_Product _Product
_CndnDocItmRefcdCndnDoc _CndnDocItmRefcdCndnDoc
_CompanyCode _CompanyCode
_WBSElementInternalID _WBSElementInternalID
_SettlmtMgmtOrder _SettlmtMgmtOrder

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_ConditionDocumentItem.
-- 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_ConditionDocumentItem AS
SELECT
  cast( num as wcb_condition_document preserving type ) AS ConditionDocument,
  item_guid AS ConditionDocumentItemUUID,
  cast( posnr as wcb_condition_document_item preserving type ) AS ConditionDocumentItem,
  cast( deact as wcb_cndn_doc_itm_act_sts preserving type ) AS CndnDocItmActivationStatus,
  date_from AS CndnDocItemValidFromDate,
  date_to AS CndnDocItemValidToDate,
  cast( eligible_cust as kunnr preserving type ) AS Customer,
  cast( eligible_vendor as lifnr preserving type ) AS Supplier,
  cast( material as productnumber preserving type ) AS Product,
  cast( list_num as wcb_cndndoc_itm_refcd_cndndoc preserving type ) AS CndnDocItmRefcdCndnDoc,
  cast( bukrs as fis_bukrs preserving type ) AS CompanyCode,
  cast( kostl as fis_kostl preserving type ) AS CostCenter,
  cast( ps_psp_pnr as wlf_psp_pnr_no_cnext preserving type ) AS WBSElementInternalID,
  aufnr AS SettlmtMgmtOrder,
  distribution_ratio AS SettlementDistributionRatio,
  cast( guid as wcb_cndn_doc_uuid preserving type ) AS ConditionDocumentUUID,
  cast( ext_guid as wcb_cndn_doc_itm_source_uuid preserving type ) AS CndnDocItemSourceUUID,
  sont_abbrv_i AS CndnDocObjNodeTypeAbbr,
  semantic_type_i AS CndnDocSemanticCode
FROM wcocoi
LEFT OUTER JOIN R_ConditionDocument AS _ConditionDocument ON ConditionDocument = _ConditionDocument.ConditionDocument  -- association [1..1]
LEFT OUTER JOIN I_CndnDocItmActivationStatus AS _CndnDocItmActivationStatus ON CndnDocItmActivationStatus = _CndnDocItmActivationStatus.CndnDocItmActivationStatus  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [0..1]
LEFT OUTER JOIN R_ConditionDocument AS _CndnDocItmRefcdCndnDoc ON CndnDocItmRefcdCndnDoc = _CndnDocItmRefcdCndnDoc.ConditionDocument  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementInternalID ON WBSElementInternalID = _WBSElementInternalID.WBSElementInternalID  -- association [0..1]
LEFT OUTER JOIN I_InternalOrder AS _SettlmtMgmtOrder ON SettlmtMgmtOrder = _SettlmtMgmtOrder.InternalOrder  -- association [0..1]
;