Fclm_Syncrecord_Sum

DDL: FCLM_SYNCRECORD_SUM SQL: VFCLM_SYNCSUM Type: view Package: FCLM_BAM

the sum of targetsystems

Fclm_Syncrecord_Sum is a CDS View that provides data about "the sum of targetsystems" in SAP S/4HANA. It reads from 1 data source (VFCLM_BAM_DDL_SYNCRECORD) and exposes 8 fields. Part of development package FCLM_BAM.

Data Sources (1)

SourceAliasJoin Type
VFCLM_BAM_DDL_SYNCRECORD VFCLM_BAM_DDL_SYNCRECORD from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName VFCLM_SYNCSUM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #ORGANIZATIONAL view
EndUserText.label the sum of targetsystems view

Fields (8)

KeyFieldSource TableSource FieldDescription
targetsystem targetsystem Target System
Bank_consistentnum
Bank_inconsistentnum
HouseBank_consistentnum
HouseBank_inconsistentnum
BankAcct_consistentnum
BankAcct_inconsistentnum
Lastupdatedate

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 Fclm_Syncrecord_Sum.
-- 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: VFCLM_SYNCSUM

CREATE VIEW Fclm_Syncrecord_Sum AS
SELECT
  targetsystem,
  cast( sum( case when SyncObject = '1' and CmpStatus = '21' then 1 end ) as abap.char(6) ) AS Bank_consistentnum,
  cast( sum( case when SyncObject = '1' and CmpStatus = '22' then 1 end ) as abap.char(6) ) AS Bank_inconsistentnum,
  cast( sum( case when SyncObject = '2' and CmpStatus = '21' then 1 end ) as abap.char(6) ) AS HouseBank_consistentnum,
  cast( sum( case when SyncObject = '2' and CmpStatus = '22' then 1 end ) as abap.char(6) ) AS HouseBank_inconsistentnum,
  cast( sum( case when SyncObject = '0' and CmpStatus = '21' then 1 end ) as abap.char(6) ) AS BankAcct_consistentnum,
  cast( sum( case when SyncObject = '0' and CmpStatus = '22' then 1 end ) as abap.char(6) ) AS BankAcct_inconsistentnum,
  max( CmpDate ) AS Lastupdatedate
FROM VFCLM_BAM_DDL_SYNCRECORD
;