SRFD_DocumentDataChangeLog

DDL: SRFD_DOCUMENTDATACHANGELOG SQL: SRFV_DOCDATACLOG Type: view

Generated Document Data Change Log

SRFD_DocumentDataChangeLog is a CDS View that provides data about "Generated Document Data Change Log" in SAP S/4HANA. It reads from 2 data sources (srf_rep_run_dlog, SRFD_DocumentDataEnriched) and exposes 24 fields with key field StatryRptDocDataChangeLogUUID.

Data Sources (2)

SourceAliasJoin Type
srf_rep_run_dlog srf_rep_run_dlog from
SRFD_DocumentDataEnriched SRFD_DocumentDataEnriched inner

Parameters (2)

NameTypeDefault
p_schema_id srf_schema_id
p_partition_no srf_partition_no

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName SRFV_DOCDATACLOG view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_ALLOWED view
EndUserText.label Generated Document Data Change Log view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY StatryRptDocDataChangeLogUUID srf_rep_run_dlog db_key UUID
StatryRptDocUUID doc_data StatryRptDocUUID
StatryRptTaskUUID doc_data StatryRptTaskUUID
StatryRptgEntity doc_data StatryRptgEntity Reporting Entity
StatryRptCategory doc_data StatryRptCategory Report ID
StatryRptPeriodStartDate doc_data StatryRptPeriodStartDate Start Date
StatryRptPeriodEndDate doc_data StatryRptPeriodEndDate End Date
StatryRptReportingPeriodNumber doc_data StatryRptReportingPeriodNumber Period Number
StatryRptRunID doc_data StatryRptRunID Report Run ID
StatryRptDocDataUUID srf_rep_run_dlog rep_run_data_key NodeID
StatryRptDocDataOldValue srf_rep_run_dlog old_value Value
StatryRptDocDataNewValue srf_rep_run_dlog new_value Value
StatryRptDocDataChangeComment srf_rep_run_dlog comments User Notes
StatryRptDocDataChangeInd srf_rep_run_dlog change_indicator Change Type
StatryRptDocDataChangedByUser srf_rep_run_dlog changed_by User Name
StatryRptDocDataChangedOnDate srf_rep_run_dlog changed_on Variant Changed on
StatryRptDocument doc_data StatryRptDocument Snapshot ID
StatryRptSchemaElementId doc_data StatryRptSchemaElementId
StatryRptSchemaAttributeId doc_data StatryRptSchemaAttributeId
StatryRptSequenceNumber doc_data StatryRptSequenceNumber
StatryRptParentSequenceNumber doc_data StatryRptParentSequenceNumber
StatryRptSchemaParentElementId doc_data StatryRptSchemaParentElementId
StatryRptDocDataChangedByName _adrp name_text Full Name
StatryRptSchemaSingleValLeafEl doc_data StatryRptSchemaSingleValLeafEl

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 SRFD_DocumentDataChangeLog.
-- 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: SRFV_DOCDATACLOG
-- Parameters: p_schema_id : srf_schema_id, p_partition_no : srf_partition_no

CREATE VIEW SRFD_DocumentDataChangeLog AS
SELECT
  srf_rep_run_dlog.db_key AS StatryRptDocDataChangeLogUUID,
  doc_data.StatryRptDocUUID AS StatryRptDocUUID,
  doc_data.StatryRptTaskUUID AS StatryRptTaskUUID,
  doc_data.StatryRptgEntity AS StatryRptgEntity,
  doc_data.StatryRptCategory AS StatryRptCategory,
  doc_data.StatryRptPeriodStartDate AS StatryRptPeriodStartDate,
  doc_data.StatryRptPeriodEndDate AS StatryRptPeriodEndDate,
  doc_data.StatryRptReportingPeriodNumber AS StatryRptReportingPeriodNumber,
  doc_data.StatryRptRunID AS StatryRptRunID,
  srf_rep_run_dlog.rep_run_data_key AS StatryRptDocDataUUID,
  srf_rep_run_dlog.old_value AS StatryRptDocDataOldValue,
  srf_rep_run_dlog.new_value AS StatryRptDocDataNewValue,
  srf_rep_run_dlog.comments AS StatryRptDocDataChangeComment,
  srf_rep_run_dlog.change_indicator AS StatryRptDocDataChangeInd,
  srf_rep_run_dlog.changed_by AS StatryRptDocDataChangedByUser,
  srf_rep_run_dlog.changed_on AS StatryRptDocDataChangedOnDate,
  doc_data.StatryRptDocument AS StatryRptDocument,
  doc_data.StatryRptSchemaElementId AS StatryRptSchemaElementId,
  doc_data.StatryRptSchemaAttributeId AS StatryRptSchemaAttributeId,
  doc_data.StatryRptSequenceNumber AS StatryRptSequenceNumber,
  doc_data.StatryRptParentSequenceNumber AS StatryRptParentSequenceNumber,
  doc_data.StatryRptSchemaParentElementId AS StatryRptSchemaParentElementId,
  _adrp.name_text AS StatryRptDocDataChangedByName,
  doc_data.StatryRptSchemaSingleValLeafEl AS StatryRptSchemaSingleValLeafEl
FROM srf_rep_run_dlog
INNER JOIN SRFD_DocumentDataEnriched ON /* join condition not captured in parsed metadata */
;