P_CAPaymentMedia
Payment Media for Payment Groups
P_CAPaymentMedia is a Consumption CDS View that provides data about "Payment Media for Payment Groups" in SAP S/4HANA. It reads from 1 data source (I_CAPaymentRunGroup) and exposes 15 fields with key fields CAMassRunDate, CAMassRunID, CAPaymentDataOriginCode, CAInternalPaymentGroup. It has 2 associations to related views. Part of development package ODATA_O2C_FICA_PAYMENTMEDIA.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CAPaymentRunGroup | I_CAPaymentRunGroup | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CAPaymentCompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_CAPaymentMethod | _CAPaymentMethod | $projection.CAPaymentMethod = _CAPaymentMethod.CAPaymentMethod and $projection.country = _CAPaymentMethod.Country |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Payment Media for Payment Groups | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CAMassRunDate | CAMassRunDate | Date ID | |
| KEY | CAMassRunID | CAMassRunID | Run ID | |
| KEY | CAPaymentDataOriginCode | CAPaymentDataOriginCode | Source | |
| KEY | CAInternalPaymentGroup | CAInternalPaymentGroup | Routine Number | |
| CAPaymentMediumFormat | CAPaymentMediumFormat | Payt Mdm Format | ||
| CAPaymentCompanyCode | CAPaymentCompanyCode | Paying Co. Code | ||
| HouseBank | HouseBank | House Bank | ||
| HouseBankAccount | HouseBankAccount | House Bank Account | ||
| CAPaymentIsCreditOrDebit | CAPaymentIsCreditOrDebit | Credit/Debit Memo | ||
| CAPaymentMethod | CAPaymentMethod | Payment Method | ||
| NumberOfPayments | NumberOfPayments | No. of Payts | ||
| NumberOfPaymentsInFile | NumberOfPaymentsInFile | Completed Pymts | ||
| Country | _CompanyCode | Country | Venue: Ctry/Reg | |
| _CompanyCode | _CompanyCode | |||
| _CAPaymentMethod | _CAPaymentMethod |
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_CAPaymentMedia.
-- 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.
CREATE VIEW P_CAPaymentMedia AS
SELECT
CAMassRunDate,
CAMassRunID,
CAPaymentDataOriginCode,
CAInternalPaymentGroup,
CAPaymentMediumFormat,
CAPaymentCompanyCode,
HouseBank,
HouseBankAccount,
CAPaymentIsCreditOrDebit,
CAPaymentMethod,
NumberOfPayments,
NumberOfPaymentsInFile,
_CompanyCode.Country AS Country
FROM I_CAPaymentRunGroup
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CAPaymentCompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_CAPaymentMethod AS _CAPaymentMethod ON CAPaymentMethod = _CAPaymentMethod.CAPaymentMethod AND country = _CAPaymentMethod.Country -- association [0..1]
;
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