I_CashChainTrace

DDL: I_CASHCHAINTRACE Type: view_entity BASIC Package: FCLM_REUSE

Flow Builder Traceability

I_CashChainTrace is a Basic CDS View that provides data about "Flow Builder Traceability" in SAP S/4HANA. It reads from 1 data source (fclm_fb2_trace) and exposes 18 fields with key field ChainTraceUUID. It has 3 associations to related views. Part of development package FCLM_REUSE.

Data Sources (1)

SourceAliasJoin Type
fclm_fb2_trace fclm_fb2_trace from

Associations (3)

CardinalityTargetAliasCondition
[0..*] I_CashDocumentChainTraceResult _Result $projection.ChainTraceUUID = _Result.ChainTraceUUID
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..*] I_JobStatusText _JobStatusText $projection.ApplicationJobStatus = _JobStatusText.ApplicationJobStatus

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Flow Builder Traceability view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #BASIC view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY ChainTraceUUID trace_uuid UUID
CompanyCode origin_bukrs Company Code
FiscalYear origin_gjahr Fiscal Year
AccountingDocument origin_belnr Journal Entry
ApplicationJobName job_name Job No.
ApplicationJob job_count Job No.
ApplicationJobStatus job_status Job status
DocumentChainTraceLog trace_log External ID
ExpirationDate expiration_date Valid To
ExpiredAt Timestamp
LocalCreatedBy local_created_by Created By
LocalCreatedAtDateTime local_created_at Created On
LocalLastChangedBy local_last_changed_by User Name
LocalLastChangedAtDateTime local_last_changed_at Time Stamp
LastChangedAtDateTime last_changed_at Timestamp
_Result _Result
_CompanyCode _CompanyCode
_JobStatusText _JobStatusText

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_CashChainTrace.
-- 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.

CREATE VIEW I_CashChainTrace AS
SELECT
  trace_uuid AS ChainTraceUUID,
  origin_bukrs AS CompanyCode,
  origin_gjahr AS FiscalYear,
  origin_belnr AS AccountingDocument,
  job_name AS ApplicationJobName,
  job_count AS ApplicationJob,
  job_status AS ApplicationJobStatus,
  trace_log AS DocumentChainTraceLog,
  expiration_date AS ExpirationDate,
  tstmp_seconds_between( tstmp_current_utctimestamp(), tstmp_add_seconds(cast(last_changed_at as abap.dec(15, 0)), cast( expired_at *3600 as abap.dec( 15, 0) ), 'INITIAL'), 'INITIAL') AS ExpiredAt,
  local_created_by AS LocalCreatedBy,
  local_created_at AS LocalCreatedAtDateTime,
  local_last_changed_by AS LocalLastChangedBy,
  local_last_changed_at AS LocalLastChangedAtDateTime,
  last_changed_at AS LastChangedAtDateTime
FROM fclm_fb2_trace
LEFT OUTER JOIN I_CashDocumentChainTraceResult AS _Result ON ChainTraceUUID = _Result.ChainTraceUUID  -- association [0..*]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_JobStatusText AS _JobStatusText ON ApplicationJobStatus = _JobStatusText.ApplicationJobStatus  -- association [0..*]
;