P_CADunningVolume
P_CADunningVolume is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_CADunningHistory) and exposes 33 fields.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CADunningHistory | I_CADunningHistory | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_Date | sydatum | |
| P_Language | sylangu |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.sqlViewName | PCADUNVOLUME | view |
Fields (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CAMassRunDate | CAMassRunDate | Date ID | ||
| CAMassRunID | CAMassRunID | Run ID | ||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| ContractAccount | ContractAccount | Contract Acct | ||
| CADunningCounter | CADunningCounter | Dunning counter | ||
| CAContract | CAContract | Contract | ||
| CASubApplication | CASubApplication | Subapplication | ||
| CompanyCodeName | ||||
| BusinessArea | BusinessArea | Business Area | ||
| Division | Division | Internal Division ID | ||
| CAIssueDate | CAIssueDate | |||
| CADunningProcedure | CADunningProcedure | Dunning Proc. | ||
| CADunningProcedureName | ||||
| CADunningLevel | CADunningLevel | |||
| CADunningLevelName | ||||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| CADunningBalance | CADunningBalance | |||
| CADunningChargeAmount | CADunningChargeAmount | |||
| CADunningInterestAmount | CADunningInterestAmount | |||
| CADunningAmount | _DunItem | CADunningAmount | ||
| CAClearingStatus | ||||
| Segment | _DunItem | Segment | Segment number | |
| SegmentName | ||||
| CADocumentType | ||||
| CAAccountDeterminationCode | ||||
| CAMainTransaction | ||||
| CASubTransaction | ||||
| FirstName | _BusinessPartner | FirstName | First Name | |
| LastName | _BusinessPartner | LastName | Last Name | |
| PostalCode | ||||
| ContractAccountCategory | _CAHeader | ContractAccountCategory | Cont. Acct Cat. | |
| datsendasExchangeRateDate | ||||
| CAAuthorizationGroup | _CAPartner | CAAuthorizationGroup | AuthorizGroup |
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 P_CADunningVolume.
-- 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: PCADUNVOLUME
-- Parameters: P_Date : sydatum, P_Language : sylangu
CREATE VIEW P_CADunningVolume AS
SELECT
CAMassRunDate,
CAMassRunID,
BusinessPartner,
ContractAccount,
CADunningCounter,
CAContract,
CASubApplication,
_CompCode[1:Language = :P_Language].CompanyCodeName AS CompanyCodeName,
BusinessArea,
Division,
CAIssueDate,
CADunningProcedure,
_DunningProcedure._Text[1:Language = :P_Language].CADunningProcedureName AS CADunningProcedureName,
CADunningLevel,
_DunningLevel._Text[1:Language = :P_Language].CADunningLevelName AS CADunningLevelName,
TransactionCurrency,
CADunningBalance,
CADunningChargeAmount,
CADunningInterestAmount,
_DunItem.CADunningAmount AS CADunningAmount,
_DunItem._DocBPItem.CAClearingStatus AS CAClearingStatus,
_DunItem.Segment AS Segment,
_DunItem._Segment._Text[1:Language = :P_Language].SegmentName AS SegmentName,
_DunItem._DocBPItem.CADocumentType AS CADocumentType,
_DunItem._DocBPItem.CAAccountDeterminationCode AS CAAccountDeterminationCode,
_DunItem._DocBPItem.CAMainTransaction AS CAMainTransaction,
_DunItem._DocBPItem.CASubTransaction AS CASubTransaction,
_BusinessPartner.FirstName AS FirstName,
_BusinessPartner.LastName AS LastName,
_BusinessPartner._CurrentDefaultAddress._AddressDefaultRepresentation.PostalCode AS PostalCode,
_CAHeader.ContractAccountCategory AS ContractAccountCategory,
case _DunItem._DocBPItem.CAClearingStatus when '9' then case when _DunItem._DocBPItem.CAValueDateForClearing <> '00000000' then _DunItem._DocBPItem.CAValueDateForClearing when _DunItem._DocBPItem.CAPostingDateOfClearingDoc <> '00000000' then _DunItem._DocBPItem.CAPostingDateOfClearingDoc else cast( concat(:P_Date, '') as abap.dats) end else cast( concat(:P_Date, '') as abap.dats) end as ExchangeRateDate AS datsendasExchangeRateDate,
_CAPartner.CAAuthorizationGroup AS CAAuthorizationGroup
FROM I_CADunningHistory
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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