C_PaymentOrder
Payment Order Header
C_PaymentOrder is a Consumption CDS View that provides data about "Payment Order Header" in SAP S/4HANA. It reads from 1 data source (I_PaymentOrder) and exposes 28 fields with key field PaymentOrder. It has 3 associations to related views. It is exposed through 1 OData service (ASQL_F0770). Part of development package FINS_AP_PP.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PaymentOrder | I_PaymentOrder | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Housebank | _Housebank | $projection.PayingCompanyCode = _Housebank.CompanyCode and $projection.HouseBank = _Housebank.HouseBank |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPAYTORDHDR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Payment Order Header | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F0770 | ASQL_F0770 | C2 | NOT_RELEASED |
Fields (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PaymentOrder | PaymentOrder | Payment Order | |
| PaymentRunDate | PaymentRunDate | Run On | ||
| PaymentRunID | PaymentRunID | Settlement ID | ||
| PaymentMethod | PaymentMethod | Pymt Meth. | ||
| PaymentCurrency | PaymentCurrency | Payment Currency | ||
| PayingCompanyCode | PayingCompanyCode | Paying Company Code | ||
| HouseBank | HouseBank | House Bank | ||
| HouseBankAccount | HouseBankAccount | House Bank Account | ||
| PaidAmountInPaytCurrency | PaidAmountInPaytCurrency | Payment Amount | ||
| Supplier | Supplier | Supplier | ||
| Customer | Customer | Sold-to Party | ||
| ValueDate | ValueDate | Value Date | ||
| PlanningLevel | PlanningLevel | Planning Level | ||
| GLAccount | GLAccount | General Ledger | ||
| PlanningCurrency | PlanningCurrency | Currency | ||
| AmountInCompanyCodeCurrency | AmountInCompanyCodeCurrency | Local Crcy Amt | ||
| BusinessArea | BusinessArea | Business Area | ||
| DirectDebitPreNotification | DirectDebitPreNotification | Direct Debit Pre-Notifications | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| BankCountry | _Housebank | BankCountry | Bank Ctry/Rgn. Key | |
| BankInternalID | _Housebank | BankInternalID | Bank Key | |
| SupplierName | _Supplier | SupplierName | Supplier Name | |
| CustomerName | _Customer | CustomerName | Name of Customer | |
| CompanyCodeName | _CompanyCode | CompanyCodeName | Company Name | |
| CompanyCodeCountry | _CompanyCode | Country | Venue: Ctry/Reg | |
| SupplierBasicAuthorizationGrp | _Supplier | AuthorizationGroup | AuthorizGroup | |
| CustomerBasicAuthorizationGrp | _Customer | AuthorizationGroup | 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 C_PaymentOrder.
-- 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: CPAYTORDHDR
CREATE VIEW C_PaymentOrder AS
SELECT
PaymentOrder,
PaymentRunDate,
PaymentRunID,
PaymentMethod,
PaymentCurrency,
PayingCompanyCode,
HouseBank,
HouseBankAccount,
PaidAmountInPaytCurrency,
Supplier,
Customer,
ValueDate,
PlanningLevel,
GLAccount,
PlanningCurrency,
AmountInCompanyCodeCurrency,
BusinessArea,
DirectDebitPreNotification,
CompanyCodeCurrency,
FinancialAccountType,
_Housebank.BankCountry AS BankCountry,
_Housebank.BankInternalID AS BankInternalID,
_Supplier.SupplierName AS SupplierName,
_Customer.CustomerName AS CustomerName,
_CompanyCode.CompanyCodeName AS CompanyCodeName,
_CompanyCode.Country AS CompanyCodeCountry,
_Supplier.AuthorizationGroup AS SupplierBasicAuthorizationGrp,
_Customer.AuthorizationGroup AS CustomerBasicAuthorizationGrp
FROM I_PaymentOrder
LEFT OUTER JOIN I_Housebank AS _Housebank ON PayingCompanyCode = _Housebank.CompanyCode AND HouseBank = _Housebank.HouseBank -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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