P_PurOrderItemDocumentChanges

DDL: P_PURORDERITEMDOCUMENTCHANGES SQL: PPOIDOCCHNG Type: view CONSUMPTION

P_PurOrderItemDocumentChanges is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_ChangeDocument, I_ChangeDocumentItem) and exposes 18 fields with key fields ChangeDocObject, ChangeDocument, DatabaseTable, ChangeDocTableKey, ChangeDocDatabaseTableField.

Data Sources (2)

SourceAliasJoin Type
I_ChangeDocument ChangeDocument inner
I_ChangeDocumentItem ChangeDocumentItem from

Parameters (2)

NameTypeDefault
P_StartDate vdm_validitystart
P_EndDate vdm_validityend

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PPOIDOCCHNG view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY ChangeDocObject I_ChangeDocumentItem ChangeDocObject Object Value
KEY ChangeDocument I_ChangeDocumentItem ChangeDocument Document Number
KEY DatabaseTable DatabaseTable Table Name
KEY ChangeDocTableKey ChangeDocTableKey Table Keys
KEY ChangeDocDatabaseTableField ChangeDocDatabaseTableField User
ChangeDocPreviousUnit ChangeDocPreviousUnit
ChangeDocNewUnit ChangeDocNewUnit
ChangeDocPreviousCurrency ChangeDocPreviousCurrency
ChangeDocNewCurrency ChangeDocNewCurrency
ChangeDocNewFieldValue ChangeDocNewFieldValue New Value
ChangeDocPreviousFieldValue ChangeDocPreviousFieldValue Old Value
ChangeDocTextIsChanged ChangeDocTextIsChanged
CreatedByUser CreatedByUser User Name
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
ChangeTransactionCode ChangeTransactionCode Change Tcode
ChangeDocChangeType ChangeDocChangeType Object Change
ChangeDocObjectClass I_ChangeDocumentItem ChangeDocObjectClass Change Doc. Object

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_PurOrderItemDocumentChanges.
-- 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: PPOIDOCCHNG
-- Parameters: P_StartDate : vdm_validitystart, P_EndDate : vdm_validityend

CREATE VIEW P_PurOrderItemDocumentChanges AS
SELECT
  ChangeDocumentItem.ChangeDocObject AS ChangeDocObject,
  ChangeDocumentItem.ChangeDocument AS ChangeDocument,
  DatabaseTable,
  ChangeDocTableKey,
  ChangeDocDatabaseTableField,
  ChangeDocPreviousUnit,
  ChangeDocNewUnit,
  ChangeDocPreviousCurrency,
  ChangeDocNewCurrency,
  ChangeDocNewFieldValue,
  ChangeDocPreviousFieldValue,
  ChangeDocTextIsChanged,
  CreatedByUser,
  CreationDate,
  CreationTime,
  ChangeTransactionCode,
  ChangeDocChangeType,
  ChangeDocumentItem.ChangeDocObjectClass AS ChangeDocObjectClass
FROM I_ChangeDocumentItem AS ChangeDocumentItem
INNER JOIN I_ChangeDocument AS ChangeDocument ON /* join condition not captured in parsed metadata */
;