P_CN_CADEAssetAllChgDoc

DDL: P_CN_CADEASSETALLCHGDOC SQL: PCNASTCDALL Type: view COMPOSITE

P_CN_CADEAssetAllChgDoc is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_ChangeDocumentItem) and exposes 16 fields with key fields ChangeDocObjectClass, ChangeDocObject, ChangeDocument, DatabaseTable, ChangeDocTableKey.

Data Sources (1)

SourceAliasJoin Type
I_ChangeDocumentItem ChangeDocItem from

Annotations (10)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PCNASTCDALL view
VDM.viewType #COMPOSITE view
VDM.private true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY ChangeDocObjectClass I_ChangeDocumentItem ChangeDocObjectClass Change Doc. Object
KEY ChangeDocObject I_ChangeDocumentItem ChangeDocObject Object Value
KEY ChangeDocument I_ChangeDocumentItem ChangeDocument Document Number
KEY DatabaseTable I_ChangeDocumentItem DatabaseTable Table Name
KEY ChangeDocTableKey I_ChangeDocumentItem ChangeDocTableKey Table Keys
KEY ChangeDocDatabaseTableField I_ChangeDocumentItem ChangeDocDatabaseTableField User
KEY ChangeDocItemChangeType I_ChangeDocumentItem ChangeDocItemChangeType Change Indicator
ChangeDocChangeType
ChangeTransactionCode
CreationDate
CreationTime
CompanyCode
MasterFixedAsset
FixedAsset
ChangeDocNewFieldValue ChangeDocNewFieldValue New Value
ChangeDocPreviousFieldValue ChangeDocPreviousFieldValue Old Value

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_CN_CADEAssetAllChgDoc.
-- 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: PCNASTCDALL

CREATE VIEW P_CN_CADEAssetAllChgDoc AS
SELECT
  ChangeDocItem.ChangeDocObjectClass AS ChangeDocObjectClass,
  ChangeDocItem.ChangeDocObject AS ChangeDocObject,
  ChangeDocItem.ChangeDocument AS ChangeDocument,
  ChangeDocItem.DatabaseTable AS DatabaseTable,
  ChangeDocItem.ChangeDocTableKey AS ChangeDocTableKey,
  ChangeDocItem.ChangeDocDatabaseTableField AS ChangeDocDatabaseTableField,
  ChangeDocItem.ChangeDocItemChangeType AS ChangeDocItemChangeType,
  ChangeDocItem._ChangeDocument.ChangeDocChangeType AS ChangeDocChangeType,
  ChangeDocItem._ChangeDocument.ChangeTransactionCode AS ChangeTransactionCode,
  ChangeDocItem._ChangeDocument.CreationDate AS CreationDate,
  ChangeDocItem._ChangeDocument.CreationTime AS CreationTime,
  SUBSTRING(ChangeDocObject, 1, 4) AS CompanyCode,
  SUBSTRING(ChangeDocObject, 5, 12) AS MasterFixedAsset,
  SUBSTRING(ChangeDocObject, 17, 4) AS FixedAsset,
  ChangeDocNewFieldValue,
  ChangeDocPreviousFieldValue
FROM I_ChangeDocumentItem AS ChangeDocItem
;