I_PaymentOrder
Payment Order Header
I_PaymentOrder is a Basic CDS View that provides data about "Payment Order Header" in SAP S/4HANA. It reads from 1 data source (pyordh) and exposes 22 fields with key field PaymentOrder. It has 3 associations to related views. Part of development package FINS_AP_PP.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| pyordh | pyordh | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | $projection.PayingCompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_Currency | _PaymentCurrency | $projection.PaymentCurrency = _PaymentCurrency.Currency |
| [0..1] | I_Currency | _CompanyCodeCurrency | $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPAYTORDHDR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Payment Order Header | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PaymentOrder | pyordh | pyord | Payment Order |
| PaymentRunDate | pyordh | laufd | Run On | |
| PaymentRunID | pyordh | laufi | Settlement ID | |
| PaymentMethod | pyordh | rzawe | Pymt Meth. | |
| PaymentCurrency | pyordh | waers | Transaction Currency | |
| PayingCompanyCode | pyordh | zbukr | Paying CoCd | |
| HouseBank | pyordh | hbkid | House Bank | |
| HouseBankAccount | pyordh | hktid | House Bank Account | |
| PaidAmountInPaytCurrency | ||||
| Supplier | pyordh | lifnr | Vendor no. | |
| Customer | pyordh | kunnr | Stock customer | |
| ValueDate | pyordh | valut | Value date | |
| PlanningLevel | pyordh | fdlev | Planning Level | |
| GLAccount | pyordh | bnkko | G/L account | |
| PlanningCurrency | pyordh | curra | Currency | |
| AmountInCompanyCodeCurrency | ||||
| BusinessArea | pyordh | srtgb | Business Area | |
| DirectDebitPreNotification | pyordh | x_dd_prenotif | Direct Debit Pre-Notifications | |
| CompanyCodeCurrency | _CompanyCode | Currency | Valuation Crcy | |
| _PaymentCurrency | _PaymentCurrency | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _CompanyCode | _CompanyCode |
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 I_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: IPAYTORDHDR
CREATE VIEW I_PaymentOrder AS
SELECT
pyordh.pyord AS PaymentOrder,
pyordh.laufd AS PaymentRunDate,
pyordh.laufi AS PaymentRunID,
pyordh.rzawe AS PaymentMethod,
pyordh.waers AS PaymentCurrency,
pyordh.zbukr AS PayingCompanyCode,
pyordh.hbkid AS HouseBank,
pyordh.hktid AS HouseBankAccount,
cast(pyordh.rwbtr as farp_rwbtr) AS PaidAmountInPaytCurrency,
pyordh.lifnr AS Supplier,
pyordh.kunnr AS Customer,
pyordh.valut AS ValueDate,
pyordh.fdlev AS PlanningLevel,
pyordh.bnkko AS GLAccount,
pyordh.curra AS PlanningCurrency,
cast(pyordh.rbetr as farp_rbetr) AS AmountInCompanyCodeCurrency,
pyordh.srtgb AS BusinessArea,
pyordh.x_dd_prenotif AS DirectDebitPreNotification,
_CompanyCode.Currency AS CompanyCodeCurrency
FROM pyordh
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON PayingCompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_Currency AS _PaymentCurrency ON PaymentCurrency = _PaymentCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency -- 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