P_CndnContrCndnUsgeMatlDocs

DDL: P_CNDNCONTRCNDNUSGEMATLDOCS Type: view BASIC

P_CndnContrCndnUsgeMatlDocs is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (P_CndnContrConditionUsage) and exposes 35 fields with key field DocRelationshipUUID.

Data Sources (1)

SourceAliasJoin Type
P_CndnContrConditionUsage P_CndnContrConditionUsage from

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName PCCCNDUSGEMAT 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 (35)

KeyFieldSource TableSource FieldDescription
KEY DocRelationshipUUID DocRelationshipUUID SM Doc Rel UUID
PricingDocument PricingDocument Document Condition
PricingProcedureStep PricingProcedureStep Step Number
PricingProcedureCounter PricingProcedureCounter Pricing Procedure Counter
ConditionContract ConditionContract Condition Contract
CndnContrUUID CndnContrUUID UUID 22 char.
ConditionRecord ConditionRecord Cond.Record No.
ConditionSequentialNumberShort ConditionSequentialNumberShort Sequent. No. of Cond
CndnContrAccrRvslSts CndnContrAccrRvslSts Accr. Rev. Status
AccrSrceDocCategory AccrSrceDocCategory
AccrSrceDocument AccrSrceDocument
AccrSrceDocumentYear AccrSrceDocumentYear
AccrSrceDocumentItem AccrSrceDocumentItem
ConditionApplication ConditionApplication Application
ConditionType ConditionType Condition type
ConditionAmount ConditionAmount Condition Value
AccrSrceDocCurrency AccrSrceDocCurrency
AccrSrceDocPostingDate AccrSrceDocPostingDate
SettlmtDate SettlmtDate Settlement Date
SettlmtDateSequentialID SettlmtDateSequentialID Settlement Date ID
RefSettlmtDate RefSettlmtDate Reference Date
RefSettlmtDateSequentialID RefSettlmtDateSequentialID Ref Settl Date ID
AccrSrceDocFiscalYear AccrSrceDocFiscalYear
AccrSrceDocItemPlant AccrSrceDocItemPlant
AccrSrceDocCompanyCode AccrSrceDocCompanyCode
MaterialDocument
MaterialDocumentYear
MaterialDocumentItem
_AccrSrceDocCompanyCode _AccrSrceDocCompanyCode
_AccrSrceDocCurrency _AccrSrceDocCurrency
_AccrSrceDocItemPlant _AccrSrceDocItemPlant
_ConditionContract _ConditionContract
_ConditionType _ConditionType
_ConditionApplication _ConditionApplication
_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_CndnContrCndnUsgeMatlDocs.
-- 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_CndnContrCndnUsgeMatlDocs AS
SELECT
  DocRelationshipUUID,
  PricingDocument,
  PricingProcedureStep,
  PricingProcedureCounter,
  ConditionContract,
  CndnContrUUID,
  ConditionRecord,
  ConditionSequentialNumberShort,
  CndnContrAccrRvslSts,
  AccrSrceDocCategory,
  AccrSrceDocument,
  AccrSrceDocumentYear,
  AccrSrceDocumentItem,
  ConditionApplication,
  ConditionType,
  ConditionAmount,
  AccrSrceDocCurrency,
  AccrSrceDocPostingDate,
  SettlmtDate,
  SettlmtDateSequentialID,
  RefSettlmtDate,
  RefSettlmtDateSequentialID,
  AccrSrceDocFiscalYear,
  AccrSrceDocItemPlant,
  AccrSrceDocCompanyCode,
  cast( AccrSrceDocument as mblnr preserving type ) AS MaterialDocument,
  cast( AccrSrceDocumentYear as mjahr preserving type ) AS MaterialDocumentYear,
  cast( substring( AccrSrceDocumentItem, 3, 4 ) as mblpo ) AS MaterialDocumentItem
FROM P_CndnContrConditionUsage
;