P_CAExtCollsVolAnalysis
P_CAExtCollsVolAnalysis is a Composite CDS View in SAP S/4HANA. It reads from 5 data sources (I_CATransferToCollAgency, I_CATransferToCollAgency, I_CATransferToCollAgency, I_CATransferToCollAgency, I_CATransferToCollAgency) and exposes 141 fields with key fields CADocumentNumber, CAGrpgCodeForTransfToCollAgcy, CAExternalCollItemType, CAGrpgCodeForTransfToCollAgcy, CAExternalCollItemType. It has 2 associations to related views.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| I_CATransferToCollAgency | _CollAgencyItem | from |
| I_CATransferToCollAgency | _CollAgencyItem | union_all |
| I_CATransferToCollAgency | _CollAgencyItem | union_all |
| I_CATransferToCollAgency | _CollAgencyItem | union_all |
| I_CATransferToCollAgency | _CollAgencyItem | union_all |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_DisplayCurrency | waers_kk |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | P_CAExtCollItemOpenAmount | _AmountOpen | _CollAgencyItem.CADocumentNumber = _AmountOpen.CADocumentNumber and _CollAgencyItem.CAGrpgCodeForTransfToCollAgcy = _AmountOpen.CAGrpgCodeForTransfToCollAgcy |
| [0..1] | I_CALastWorklistItem | _LastWorkItem | _CollAgencyItem.BusinessPartner = _LastWorkItem.BusinessPartner |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (141)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CADocumentNumber | I_CATransferToCollAgency | CADocumentNumber | Document Number |
| KEY | CAGrpgCodeForTransfToCollAgcy | I_CATransferToCollAgency | CAGrpgCodeForTransfToCollAgcy | Collection item |
| KEY | CAExternalCollItemType | _CollItemTyp | CAExternalCollItemType | |
| CACollectionAgency | I_CATransferToCollAgency | CACollectionAgency | CollsAgency BP | |
| ContractAccount | I_CATransferToCollAgency | ContractAccount | Contract Acct | |
| BusinessPartner | I_CATransferToCollAgency | BusinessPartner | Issuing Authority | |
| CompanyCode | I_CATransferToCollAgency | CompanyCode | Receiver Company Code | |
| CADateOfTransferToCollAgcy | I_CATransferToCollAgency | CADateOfTransferToCollAgcy | Submission Date | |
| CAReasonForTransferToCollAgcy | I_CATransferToCollAgency | CAReasonForTransferToCollAgcy | Subm. Reason | |
| DisplayCurrency | ||||
| TransactionCurrency | I_CATransferToCollAgency | TransactionCurrency | Transaction Currency | |
| CAAmountInTransactionCurrency | _AmountOpen | OpenAmountInTransCrcy | Charge receivb. | |
| NumberOfOpenItems | ||||
| CAReferenceDocument | I_CATransferToCollAgency | CAReferenceDocument | Reference | |
| CATransferToCollAgcyStatus | I_CATransferToCollAgency | CATransferToCollAgcyStatus | Subm. Status | |
| CAPaymentFormNumber | I_CATransferToCollAgency | CAPaymentFormNumber | Payment Form | |
| CAReceivableRecallDate | I_CATransferToCollAgency | CAReceivableRecallDate | Reply | |
| CAReceivableRecallReason | I_CATransferToCollAgency | CAReceivableRecallReason | Callback Reason | |
| CACollectionExternalReference | I_CATransferToCollAgency | CACollectionExternalReference | External Case No. | |
| WorklistItemCreationDate | ||||
| CAClrfctnStatus | ||||
| CAClrfctnStatusName | ||||
| _LastWorkItem | _LastWorkItem | |||
| _CAPartner | I_CATransferToCollAgency | _CAPartner | ||
| _CAHeader | I_CATransferToCollAgency | _CAHeader | ||
| _CollAgcy | I_CATransferToCollAgency | _CollAgcy | ||
| _Status | I_CATransferToCollAgency | _Status | ||
| _RblRecallRsn | I_CATransferToCollAgency | _RblRecallRsn | ||
| CADocumentNumber | Document Number | |||
| KEY | CAGrpgCodeForTransfToCollAgcy | I_CATransferToCollAgency | CAGrpgCodeForTransfToCollAgcy | Collection item |
| KEY | CAExternalCollItemType | _CollItemTyp | CAExternalCollItemType | |
| CACollectionAgency | I_CATransferToCollAgency | CACollectionAgency | CollsAgency BP | |
| ContractAccount | I_CATransferToCollAgency | ContractAccount | Contract Acct | |
| BusinessPartner | I_CATransferToCollAgency | BusinessPartner | Issuing Authority | |
| CompanyCode | I_CATransferToCollAgency | CompanyCode | Receiver Company Code | |
| CADateOfTransferToCollAgcy | I_CATransferToCollAgency | CADateOfTransferToCollAgcy | Submission Date | |
| CAReasonForTransferToCollAgcy | I_CATransferToCollAgency | CAReasonForTransferToCollAgcy | Subm. Reason | |
| DisplayCurrency | ||||
| TransactionCurrency | I_CATransferToCollAgency | TransactionCurrency | Transaction Currency | |
| CAAmountInTransactionCurrency | I_CATransferToCollAgency | CAPaymentAmountInTransCurrency | Charge receivb. | |
| NumberOfOpenItems | ||||
| CAReferenceDocument | I_CATransferToCollAgency | CAReferenceDocument | Reference | |
| CATransferToCollAgcyStatus | I_CATransferToCollAgency | CATransferToCollAgcyStatus | Subm. Status | |
| CAPaymentFormNumber | I_CATransferToCollAgency | CAPaymentFormNumber | Payment Form | |
| CAReceivableRecallDate | I_CATransferToCollAgency | CAReceivableRecallDate | Reply | |
| CAReceivableRecallReason | I_CATransferToCollAgency | CAReceivableRecallReason | Callback Reason | |
| CACollectionExternalReference | I_CATransferToCollAgency | CACollectionExternalReference | External Case No. | |
| WorklistItemCreationDate | ||||
| CAClrfctnStatus | ||||
| CAClrfctnStatusName | ||||
| _LastWorkItem | _LastWorkItem | |||
| _CAPartner | I_CATransferToCollAgency | _CAPartner | ||
| _CAHeader | I_CATransferToCollAgency | _CAHeader | ||
| _CollAgcy | I_CATransferToCollAgency | _CollAgcy | ||
| _Status | I_CATransferToCollAgency | _Status | ||
| _RblRecallRsn | I_CATransferToCollAgency | _RblRecallRsn | ||
| CADocumentNumber | Document Number | |||
| KEY | CAGrpgCodeForTransfToCollAgcy | I_CATransferToCollAgency | CAGrpgCodeForTransfToCollAgcy | Collection item |
| KEY | CAExternalCollItemType | _CollItemTyp | CAExternalCollItemType | |
| CACollectionAgency | I_CATransferToCollAgency | CACollectionAgency | CollsAgency BP | |
| ContractAccount | I_CATransferToCollAgency | ContractAccount | Contract Acct | |
| BusinessPartner | I_CATransferToCollAgency | BusinessPartner | Issuing Authority | |
| CompanyCode | I_CATransferToCollAgency | CompanyCode | Receiver Company Code | |
| CADateOfTransferToCollAgcy | I_CATransferToCollAgency | CADateOfTransferToCollAgcy | Submission Date | |
| CAReasonForTransferToCollAgcy | I_CATransferToCollAgency | CAReasonForTransferToCollAgcy | Subm. Reason | |
| DisplayCurrency | ||||
| TransactionCurrency | I_CATransferToCollAgency | TransactionCurrency | Transaction Currency | |
| CAAmountInTransactionCurrency | I_CATransferToCollAgency | CANoncollectableAmount | Charge receivb. | |
| NumberOfOpenItems | ||||
| CAReferenceDocument | I_CATransferToCollAgency | CAReferenceDocument | Reference | |
| CATransferToCollAgcyStatus | I_CATransferToCollAgency | CATransferToCollAgcyStatus | Subm. Status | |
| CAPaymentFormNumber | I_CATransferToCollAgency | CAPaymentFormNumber | Payment Form | |
| CAReceivableRecallDate | I_CATransferToCollAgency | CAReceivableRecallDate | Reply | |
| CAReceivableRecallReason | I_CATransferToCollAgency | CAReceivableRecallReason | Callback Reason | |
| CACollectionExternalReference | I_CATransferToCollAgency | CACollectionExternalReference | External Case No. | |
| WorklistItemCreationDate | ||||
| CAClrfctnStatus | ||||
| CAClrfctnStatusName | ||||
| _LastWorkItem | _LastWorkItem | |||
| _CAPartner | I_CATransferToCollAgency | _CAPartner | ||
| _CAHeader | I_CATransferToCollAgency | _CAHeader | ||
| _CollAgcy | I_CATransferToCollAgency | _CollAgcy | ||
| _Status | I_CATransferToCollAgency | _Status | ||
| _RblRecallRsn | I_CATransferToCollAgency | _RblRecallRsn | ||
| CADocumentNumber | Document Number | |||
| KEY | CAGrpgCodeForTransfToCollAgcy | I_CATransferToCollAgency | CAGrpgCodeForTransfToCollAgcy | Collection item |
| KEY | CAExternalCollItemType | _CollItemTyp | CAExternalCollItemType | |
| CACollectionAgency | I_CATransferToCollAgency | CACollectionAgency | CollsAgency BP | |
| ContractAccount | I_CATransferToCollAgency | ContractAccount | Contract Acct | |
| BusinessPartner | I_CATransferToCollAgency | BusinessPartner | Issuing Authority | |
| CompanyCode | I_CATransferToCollAgency | CompanyCode | Receiver Company Code | |
| CADateOfTransferToCollAgcy | I_CATransferToCollAgency | CADateOfTransferToCollAgcy | Submission Date | |
| CAReasonForTransferToCollAgcy | I_CATransferToCollAgency | CAReasonForTransferToCollAgcy | Subm. Reason | |
| DisplayCurrency | ||||
| TransactionCurrency | I_CATransferToCollAgency | TransactionCurrency | Transaction Currency | |
| CAAmountInTransactionCurrency | I_CATransferToCollAgency | CAIntrstReceivableFromCollAgcy | Charge receivb. | |
| NumberOfOpenItems | ||||
| CAReferenceDocument | I_CATransferToCollAgency | CAReferenceDocument | Reference | |
| CATransferToCollAgcyStatus | I_CATransferToCollAgency | CATransferToCollAgcyStatus | Subm. Status | |
| CAPaymentFormNumber | I_CATransferToCollAgency | CAPaymentFormNumber | Payment Form | |
| CAReceivableRecallDate | I_CATransferToCollAgency | CAReceivableRecallDate | Reply | |
| CAReceivableRecallReason | I_CATransferToCollAgency | CAReceivableRecallReason | Callback Reason | |
| CACollectionExternalReference | I_CATransferToCollAgency | CACollectionExternalReference | External Case No. | |
| WorklistItemCreationDate | ||||
| CAClrfctnStatus | ||||
| CAClrfctnStatusName | ||||
| _LastWorkItem | _LastWorkItem | |||
| _CAPartner | I_CATransferToCollAgency | _CAPartner | ||
| _CAHeader | I_CATransferToCollAgency | _CAHeader | ||
| _CollAgcy | I_CATransferToCollAgency | _CollAgcy | ||
| _Status | I_CATransferToCollAgency | _Status | ||
| _RblRecallRsn | I_CATransferToCollAgency | _RblRecallRsn | ||
| CADocumentNumber | Document Number | |||
| KEY | CAGrpgCodeForTransfToCollAgcy | I_CATransferToCollAgency | CAGrpgCodeForTransfToCollAgcy | Collection item |
| KEY | CAExternalCollItemType | _CollItemTyp | CAExternalCollItemType | |
| CACollectionAgency | I_CATransferToCollAgency | CACollectionAgency | CollsAgency BP | |
| ContractAccount | I_CATransferToCollAgency | ContractAccount | Contract Acct | |
| BusinessPartner | I_CATransferToCollAgency | BusinessPartner | Issuing Authority | |
| CompanyCode | I_CATransferToCollAgency | CompanyCode | Receiver Company Code | |
| CADateOfTransferToCollAgcy | I_CATransferToCollAgency | CADateOfTransferToCollAgcy | Submission Date | |
| CAReasonForTransferToCollAgcy | I_CATransferToCollAgency | CAReasonForTransferToCollAgcy | Subm. Reason | |
| DisplayCurrency | ||||
| TransactionCurrency | I_CATransferToCollAgency | TransactionCurrency | Transaction Currency | |
| CAAmountInTransactionCurrency | I_CATransferToCollAgency | CAChargeReceivableFromCollAgcy | Charge receivb. | |
| NumberOfOpenItems | ||||
| CAReferenceDocument | I_CATransferToCollAgency | CAReferenceDocument | Reference | |
| CATransferToCollAgcyStatus | I_CATransferToCollAgency | CATransferToCollAgcyStatus | Subm. Status | |
| CAPaymentFormNumber | I_CATransferToCollAgency | CAPaymentFormNumber | Payment Form | |
| CAReceivableRecallDate | I_CATransferToCollAgency | CAReceivableRecallDate | Reply | |
| CAReceivableRecallReason | I_CATransferToCollAgency | CAReceivableRecallReason | Callback Reason | |
| CACollectionExternalReference | I_CATransferToCollAgency | CACollectionExternalReference | External Case No. | |
| WorklistItemCreationDate | ||||
| CAClrfctnStatus | ||||
| CAClrfctnStatusName | ||||
| _LastWorkItem | _LastWorkItem | |||
| _CAPartner | I_CATransferToCollAgency | _CAPartner | ||
| _CAHeader | I_CATransferToCollAgency | _CAHeader | ||
| _CollAgcy | I_CATransferToCollAgency | _CollAgcy | ||
| _Status | I_CATransferToCollAgency | _Status | ||
| _RblRecallRsn | I_CATransferToCollAgency | _RblRecallRsn | ||
| _TransfRsn | I_CATransferToCollAgency | _TransfRsn |
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_CAExtCollsVolAnalysis.
-- 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.
-- Parameters: P_DisplayCurrency : waers_kk
CREATE VIEW P_CAExtCollsVolAnalysis AS
SELECT
_CollAgencyItem.CADocumentNumber AS CADocumentNumber,
_CollAgencyItem.CAGrpgCodeForTransfToCollAgcy AS CAGrpgCodeForTransfToCollAgcy,
_CollItemTyp.CAExternalCollItemType AS CAExternalCollItemType,
_CollAgencyItem.CACollectionAgency AS CACollectionAgency,
_CollAgencyItem.ContractAccount AS ContractAccount,
_CollAgencyItem.BusinessPartner AS BusinessPartner,
_CollAgencyItem.CompanyCode AS CompanyCode,
_CollAgencyItem.CADateOfTransferToCollAgcy AS CADateOfTransferToCollAgcy,
_CollAgencyItem.CAReasonForTransferToCollAgcy AS CAReasonForTransferToCollAgcy,
$parameters.P_DisplayCurrency AS DisplayCurrency,
_CollAgencyItem.TransactionCurrency AS TransactionCurrency,
_AmountOpen.OpenAmountInTransCrcy AS CAAmountInTransactionCurrency,
cast (1 as abap.int4) AS NumberOfOpenItems,
_CollAgencyItem.CAReferenceDocument AS CAReferenceDocument,
_CollAgencyItem.CATransferToCollAgcyStatus AS CATransferToCollAgcyStatus,
_CollAgencyItem.CAPaymentFormNumber AS CAPaymentFormNumber,
_CollAgencyItem.CAReceivableRecallDate AS CAReceivableRecallDate,
_CollAgencyItem.CAReceivableRecallReason AS CAReceivableRecallReason,
_CollAgencyItem.CACollectionExternalReference AS CACollectionExternalReference,
_LastWorkItem( P_CAInternalAppCode : 'F2402', P_Language : $session.system_language ).WorklistItemCreationDate AS WorklistItemCreationDate,
_LastWorkItem( P_CAInternalAppCode : 'F2402', P_Language : $session.system_language ).CAClrfctnStatus AS CAClrfctnStatus,
_LastWorkItem( P_CAInternalAppCode : 'F2402', P_Language : $session.system_language ).CAClrfctnStatusName AS CAClrfctnStatusName,
_CollAgencyItem._CAPartner AS _CAPartner,
_CollAgencyItem._CAHeader AS _CAHeader,
_CollAgencyItem._CollAgcy AS _CollAgcy,
_CollAgencyItem._Status AS _Status,
_CollAgencyItem._RblRecallRsn AS _RblRecallRsn,
_CollAgencyItem._TransfRsn AS _TransfRsn
FROM I_CATransferToCollAgency AS _CollAgencyItem
LEFT OUTER JOIN P_CAExtCollItemOpenAmount AS _AmountOpen ON _CollAgencyItem.CADocumentNumber = _AmountOpen.CADocumentNumber AND _CollAgencyItem.CAGrpgCodeForTransfToCollAgcy = _AmountOpen.CAGrpgCodeForTransfToCollAgcy -- association [1]
LEFT OUTER JOIN I_CALastWorklistItem AS _LastWorkItem ON _CollAgencyItem.BusinessPartner = _LastWorkItem.BusinessPartner -- association [0..1]
-- UNION ALL with additional select branch(es): I_CATransferToCollAgency
;
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