P_TableChangeLogRecord

DDL: P_TABLECHANGELOGRECORD SQL: PTBLCHLOG Type: view BASIC

P_TableChangeLogRecord is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (dbtablog) and exposes 11 fields with key fields TableChangeLogDate, TableChangeLogTime, TableChangeLog.

Data Sources (1)

SourceAliasJoin Type
dbtablog dbtablog from

Annotations (10)

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

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY TableChangeLogDate logdate Date
KEY TableChangeLogTime logtime TIME Data Element for SYST
KEY TableChangeLog logid Unique identification of an entry in DBTABLOG
TableChangeLogTableName tabname Table/Constant Value
TableChangeLogKey logkey Variable key part of table
TableChangeLogUser username User who owns item
TableChangeLogOperation optype OP
TableChangeLogVersion versno Note version
Language language Report Text Language
NmbrOfChangeLogDataCharacters dataln Actual length of vardata
TableChangeLogValue logdata Modified Data Record

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_TableChangeLogRecord.
-- 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: PTBLCHLOG

CREATE VIEW P_TableChangeLogRecord AS
SELECT
  logdate AS TableChangeLogDate,
  logtime AS TableChangeLogTime,
  logid AS TableChangeLog,
  tabname AS TableChangeLogTableName,
  logkey AS TableChangeLogKey,
  username AS TableChangeLogUser,
  optype AS TableChangeLogOperation,
  versno AS TableChangeLogVersion,
  Language,
  dataln AS NmbrOfChangeLogDataCharacters,
  logdata AS TableChangeLogValue
FROM dbtablog
;