C_PaymentOrder

DDL: C_PAYMENTORDER SQL: CPAYTORDHDR Type: view CONSUMPTION

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.

Data Sources (1)

SourceAliasJoin Type
I_PaymentOrder I_PaymentOrder from

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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

Fields (28)

KeyFieldSource TableSource FieldDescription
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]
;