view_ccs_settl
Settlement Documents as Follow On Documents of a CoCo
view_ccs_settl is a CDS View that provides data about "Settlement Documents as Follow On Documents of a CoCo" in SAP S/4HANA. It reads from 1 data source (wbrf) and exposes 37 fields with key fields coco_num, settl_item. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| wbrf | docflow | from |
Associations (2)
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CDS_CCS_SETTL | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Settlement Documents as Follow On Documents of a CoCo | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (37)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | coco_num | wbrf | wbelnv | Source Doc. |
| KEY | settl_item | agbu_item_settle | posnr | WBS Element |
| settl_rfbsk | agbu_head_settle | rfbsk | Posting Status | |
| settl_fksto | agbu_head_settle | fksto | Doc. Reversed | |
| settl_lfart | agbu_head_settle | lfart | Settl Doc Type | |
| settl_bukrs | agbu_head_settle | bukrs | Value | |
| settl_ekorg | agbu_head_settle | ekorg | Purchasing Org. | |
| settl_ekgrp | agbu_head_settle | ekgrp | Sub. purchasing grp | |
| settl_vkorg | agbu_head_settle | vkorg | SD Sales Org. | |
| settl_vtweg | agbu_head_settle | vtweg | RefDistCh-Cust/Mat. | |
| settl_spart | agbu_head_settle | spart | Source supplier | |
| settl_kowrr | agbu_item_settle | kowrr | Stat. Value | |
| waerl | agbu_head_settle | waerl | Doc. Currency | |
| netwr | agbu_item_settle | netwr | Value | |
| netwrd | agbu_item_settle | netwrd | Net Amount | |
| brtwr | agbu_item_settle | brtwr | Gross value | |
| brtwrd | agbu_item_settle | brtwrd | Gross Amount | |
| kzwi1 | ||||
| kzwi1d | ||||
| kzwi2 | ||||
| kzwi2d | ||||
| kzwi3 | ||||
| kzwi3d | ||||
| kzwi4 | ||||
| kzwi4d | ||||
| kzwi5 | ||||
| kzwi5d | ||||
| kzwi6 | ||||
| kzwi6d | ||||
| bonba | ||||
| bonbad | ||||
| 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_ccs_settl.
-- 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_CCS_SETTL
CREATE VIEW view_ccs_settl AS
SELECT
docflow.wbelnv AS coco_num,
agbu_item_settle.posnr AS settl_item,
agbu_head_settle.rfbsk AS settl_rfbsk,
agbu_head_settle.fksto AS settl_fksto,
agbu_head_settle.lfart AS settl_lfart,
agbu_head_settle.bukrs AS settl_bukrs,
agbu_head_settle.ekorg AS settl_ekorg,
agbu_head_settle.ekgrp AS settl_ekgrp,
agbu_head_settle.vkorg AS settl_vkorg,
agbu_head_settle.vtweg AS settl_vtweg,
agbu_head_settle.spart AS settl_spart,
agbu_item_settle.kowrr AS settl_kowrr,
agbu_head_settle.waerl AS waerl,
agbu_item_settle.netwr AS netwr,
agbu_item_settle.netwrd AS netwrd,
agbu_item_settle.brtwr AS brtwr,
agbu_item_settle.brtwrd AS brtwrd,
cast( agbu_item_settle.kzwi1 as abap.curr( 15,2 ) ) AS kzwi1,
cast( agbu_item_settle.kzwi1d as abap.curr( 15,2 ) ) AS kzwi1d,
cast( agbu_item_settle.kzwi2 as abap.curr( 15,2 ) ) AS kzwi2,
cast( agbu_item_settle.kzwi2d as abap.curr( 15,2 ) ) AS kzwi2d,
cast( agbu_item_settle.kzwi3 as abap.curr( 15,2 ) ) AS kzwi3,
cast( agbu_item_settle.kzwi3d as abap.curr( 15,2 ) ) AS kzwi3d,
cast( agbu_item_settle.kzwi4 as abap.curr( 15,2 ) ) AS kzwi4,
cast( agbu_item_settle.kzwi4d as abap.curr( 15,2 ) ) AS kzwi4d,
cast( agbu_item_settle.kzwi5 as abap.curr( 15,2 ) ) AS kzwi5,
cast( agbu_item_settle.kzwi5d as abap.curr( 15,2 ) ) AS kzwi5d,
cast( agbu_item_settle.kzwi6 as abap.curr( 15,2 ) ) AS kzwi6,
cast( agbu_item_settle.kzwi6d as abap.curr( 15,2 ) ) AS kzwi6d,
cast( agbu_item_settle.bonba as abap.curr( 15,2 ) ) AS bonba,
cast( agbu_item_settle.bonbad as abap.curr( 15,2 ) ) AS bonbad,
cast( agbu_item_settle.skfbp as abap.curr( 15,2 ) ) AS skfbp,
cast( agbu_item_settle.skfbpd as abap.curr( 15,2 ) ) AS skfbpd,
cast( agbu_item_settle.effwr as abap.curr( 15,2 ) ) AS effwr,
cast( agbu_item_settle.effwrd as abap.curr( 15,2 ) ) AS effwrd,
cast( agbu_item_settle.mwsbp as abap.curr( 15,2 ) ) AS mwsbp,
cast( agbu_item_settle.mwsbpd as abap.curr( 15,2 ) ) AS mwsbpd
FROM wbrf AS docflow
LEFT OUTER JOIN wbrk AS agbu_head_settle ON settl_doc_num = agbu_head_settle.wbeln -- association [1..1]
LEFT OUTER JOIN wbrp AS agbu_item_settle ON settl_doc_num = agbu_item_settle.wbeln -- association [0..*]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA