I_PriceChangeDocument

DDL: I_PRICECHANGEDOCUMENT SQL: IMLPRCHDOCUMENT Type: view COMPOSITE

Material Ledger Price Change Documents

I_PriceChangeDocument is a Composite CDS View that provides data about "Material Ledger Price Change Documents" in SAP S/4HANA. It reads from 1 data source (R_PriceChangeDocument) and exposes 19 fields with key fields PriceChangeDocument, MaterialLedgerDocumentYear. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
R_PriceChangeDocument header from

Associations (1)

CardinalityTargetAliasCondition
[1..*] I_PriceChangeDocumentItem _Details header.PriceChangeDocument = _Details.MaterialLedgerDocument and header.MaterialLedgerDocumentYear = _Details.MaterialLedgerDocumentYear

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IMLPRCHDOCUMENT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Material Ledger Price Change Documents view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY PriceChangeDocument R_PriceChangeDocument PriceChangeDocument
KEY MaterialLedgerDocumentYear R_PriceChangeDocument MaterialLedgerDocumentYear
MaterialLedgerTransactionType R_PriceChangeDocument MaterialLedgerTransactionType
LedgerGroup R_PriceChangeDocument LedgerGroup Ledger Group
ReferenceDocumentType R_PriceChangeDocument ReferenceDocumentType Reference Document Type
ReferenceDocument R_PriceChangeDocument ReferenceDocument Reference Document
ReferenceDocumentContext R_PriceChangeDocument ReferenceDocumentContext Reference Document Context
ReferenceDocumentLogicalSystem R_PriceChangeDocument ReferenceDocumentLogicalSystem Ref. Doc. Lgcl Syst.
IsReversalDocument R_PriceChangeDocument IsReversalDocument Reverse
DocumentDate R_PriceChangeDocument DocumentDate Journal Entry Date
CreationDate R_PriceChangeDocument CreationDate Time Stamp
CreationTime R_PriceChangeDocument CreationTime Time of Change
CreatedByUser R_PriceChangeDocument CreatedByUser User Name
ExecutedTransaction R_PriceChangeDocument ExecutedTransaction
BusinessTransactionType R_PriceChangeDocument BusinessTransactionType Bus.transaction
LogicalSystem R_PriceChangeDocument LogicalSystem Logical System
DocumentHeaderText R_PriceChangeDocument DocumentHeaderText Doc.Header Text
MatlPrChgAcctDetnDiffntnRsn R_PriceChangeDocument MatlPrChgAcctDetnDiffntnRsn Reason
_Details _Details

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_PriceChangeDocument.
-- 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: IMLPRCHDOCUMENT

CREATE VIEW I_PriceChangeDocument AS
SELECT
  header.PriceChangeDocument AS PriceChangeDocument,
  header.MaterialLedgerDocumentYear AS MaterialLedgerDocumentYear,
  header.MaterialLedgerTransactionType AS MaterialLedgerTransactionType,
  header.LedgerGroup AS LedgerGroup,
  header.ReferenceDocumentType AS ReferenceDocumentType,
  header.ReferenceDocument AS ReferenceDocument,
  header.ReferenceDocumentContext AS ReferenceDocumentContext,
  header.ReferenceDocumentLogicalSystem AS ReferenceDocumentLogicalSystem,
  header.IsReversalDocument AS IsReversalDocument,
  header.DocumentDate AS DocumentDate,
  header.CreationDate AS CreationDate,
  header.CreationTime AS CreationTime,
  header.CreatedByUser AS CreatedByUser,
  header.ExecutedTransaction AS ExecutedTransaction,
  header.BusinessTransactionType AS BusinessTransactionType,
  header.LogicalSystem AS LogicalSystem,
  header.DocumentHeaderText AS DocumentHeaderText,
  header.MatlPrChgAcctDetnDiffntnRsn AS MatlPrChgAcctDetnDiffntnRsn
FROM R_PriceChangeDocument AS header
LEFT OUTER JOIN I_PriceChangeDocumentItem AS _Details ON header.PriceChangeDocument = _Details.MaterialLedgerDocument AND header.MaterialLedgerDocumentYear = _Details.MaterialLedgerDocumentYear  -- association [1..*]
;