view_ccsv_sum

DDL: CDS_CCSV_SUM SQL: CDS_CCSV_SUM Type: view

Calc. the Summarized Values of Settlement Items of a CoCo

view_ccsv_sum is a CDS View that provides data about "Calc. the Summarized Values of Settlement Items of a CoCo" in SAP S/4HANA. It reads from 1 data source (view_ccs_settl) and exposes 29 fields with key fields mandt, coco_num, post_party, waerl, settl_lfart. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
view_ccs_settl settl_doc from

Associations (2)

CardinalityTargetAliasCondition
[1..1] wcocoh coco_head $projection.coco_num = coco_head.num
[0..1] wb2_c_ccs cust_ccs $projection.mandt = cust_ccs.mandt

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CDS_CCSV_SUM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label Calc. the Summarized Values of Settlement Items of a CoCo view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY mandt view_ccs_settl mandt Editing Client
KEY coco_num view_ccs_settl coco_num Condition Contract
KEY post_party view_ccs_settl settl_post_party
KEY waerl view_ccs_settl waerl Doc. Currency
KEY settl_lfart view_ccs_settl settl_lfart
KEY settl_bukrs view_ccs_settl settl_bukrs
KEY settl_ekorg view_ccs_settl settl_ekorg
KEY settl_ekgrp view_ccs_settl settl_ekgrp
KEY settl_vkorg view_ccs_settl settl_vkorg
KEY settl_vtweg view_ccs_settl settl_vtweg
KEY settl_spart view_ccs_settl settl_spart
KEY vend_owner coco_head vend_owner Supplier
KEY cust_owner coco_head cust_owner Customer
KEY coco_type coco_head contract_type Document Type
KEY coco_vkorg coco_head vkorg SD Sales Org.
KEY coco_vtweg coco_head vtweg RefDistCh-Cust/Mat.
KEY coco_spart coco_head spart Source supplier
KEY coco_ekorg coco_head ekorg Purchasing Org.
KEY coco_ekgrp coco_head ekgrp Sub. purchasing grp
netwr
netwrd
brtwr
brtwrd
skfbp
skfbpd
effwr
effwrd
mwsbp
mwsbpd

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 view_ccsv_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: CDS_CCSV_SUM

CREATE VIEW view_ccsv_sum AS
SELECT
  settl_doc.mandt AS mandt,
  settl_doc.coco_num AS coco_num,
  settl_doc.settl_post_party AS post_party,
  settl_doc.waerl AS waerl,
  settl_doc.settl_lfart AS settl_lfart,
  settl_doc.settl_bukrs AS settl_bukrs,
  settl_doc.settl_ekorg AS settl_ekorg,
  settl_doc.settl_ekgrp AS settl_ekgrp,
  settl_doc.settl_vkorg AS settl_vkorg,
  settl_doc.settl_vtweg AS settl_vtweg,
  settl_doc.settl_spart AS settl_spart,
  coco_head.vend_owner AS vend_owner,
  coco_head.cust_owner AS cust_owner,
  coco_head.contract_type AS coco_type,
  coco_head.vkorg AS coco_vkorg,
  coco_head.vtweg AS coco_vtweg,
  coco_head.spart AS coco_spart,
  coco_head.ekorg AS coco_ekorg,
  coco_head.ekgrp AS coco_ekgrp,
  sum( settl_doc.netwr ) AS netwr,
  sum( settl_doc.netwrd ) AS netwrd,
  sum( settl_doc.brtwr ) AS brtwr,
  sum( settl_doc.brtwrd ) AS brtwrd,
  sum( settl_doc.skfbp ) AS skfbp,
  sum( settl_doc.skfbpd) AS skfbpd,
  sum( settl_doc.effwr ) AS effwr,
  sum( settl_doc.effwrd ) AS effwrd,
  sum( settl_doc.mwsbp ) AS mwsbp,
  sum( settl_doc.mwsbpd ) AS mwsbpd
FROM view_ccs_settl AS settl_doc
LEFT OUTER JOIN wcocoh AS coco_head ON coco_num = coco_head.num  -- association [1..1]
LEFT OUTER JOIN wb2_c_ccs AS cust_ccs ON mandt = cust_ccs.mandt  -- association [0..1]
;