P_PH_PaytReceivablePyblItm

DDL: P_PH_PAYTRECEIVABLEPYBLITM SQL: PPHPAYTRPITM Type: view COMPOSITE Package: GLO_FIN_IS_PH

Payment Receivable Payable Item

P_PH_PaytReceivablePyblItm is a Composite CDS View that provides data about "Payment Receivable Payable Item" in SAP S/4HANA. It reads from 2 data sources (P_PH_PaytClrdReceivablePyblItm, P_PH_PaytOpnReceivablePyblItm) and exposes 62 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem, InvoiceReference. Part of development package GLO_FIN_IS_PH.

Data Sources (2)

SourceAliasJoin Type
P_PH_PaytClrdReceivablePyblItm P_PH_PaytClrdReceivablePyblItm union
P_PH_PaytOpnReceivablePyblItm P_PH_PaytOpnReceivablePyblItm from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PPHPAYTRPITM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.private true view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (62)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocumentItem AccountingDocumentItem Posting View Item
KEY InvoiceReference InvoiceReference Invoice Reference
KEY InvoiceReferenceFiscalYear InvoiceReferenceFiscalYear Invoice Reference Fiscal Year
KEY InvoiceItemReference InvoiceItemReference Item
BusinessPlace BusinessPlace Business place
PostingDate PostingDate Posting Date for GR
AccountingDocumentType AccountingDocumentType Journal Entry Type
FinancialAccountType FinancialAccountType Fin. Account Type
IsUsedInPaymentTransaction IsUsedInPaymentTransaction Is Used In Payment Transaction
ClearingAccountingDocument ClearingAccountingDocument Clearing Journal Entry
ClearingDocFiscalYear ClearingDocFiscalYear Fiscal Year of Clearing Journal Entry
ClearingDate ClearingDate Clearing Date
GLAccount GLAccount General Ledger
DebitCreditCode DebitCreditCode Single-Character Flag
Customer Customer Sold-to Party
Supplier Supplier Supplier
DocumentReferenceID DocumentReferenceID Reference
ClearedInvoiceNumber InvoiceReference
isCreditMemoItem
TransactionCurrency TransactionCurrency Transaction Currency
AmountInTransactionCurrency
CompanyCodeCurrency CompanyCodeCurrency Local Currency
AmountInCompanyCodeCurrency
AdditionalCurrency1 AdditionalCurrency1 Local curr. 2
AmountInAdditionalCurrency1
AdditionalCurrency2 AdditionalCurrency2 Local curr. 3
AmountInAdditionalCurrency2
InvoiceCompanyCode InvoiceCompanyCode Receiver Company Code
_Customer _Customer
_Supplier _Supplier
CompanyCode Receiver Company Code
KEY AccountingDocument P_PH_PaytClrdReceivablePyblItm AccountingDocument Journal Entry
KEY FiscalYear P_PH_PaytClrdReceivablePyblItm FiscalYear G/L Fiscal Year
KEY AccountingDocumentItem AccountingDocumentItem Posting View Item
KEY InvoiceReference InvoiceReference Invoice Reference
KEY InvoiceReferenceFiscalYear InvoiceReferenceFiscalYear Invoice Reference Fiscal Year
KEY InvoiceItemReference InvoiceItemReference Item
BusinessPlace BusinessPlace Business place
PostingDate PostingDate Posting Date for GR
AccountingDocumentType AccountingDocumentType Journal Entry Type
FinancialAccountType FinancialAccountType Fin. Account Type
IsUsedInPaymentTransaction IsUsedInPaymentTransaction Is Used In Payment Transaction
ClearingAccountingDocument ClearingAccountingDocument Clearing Journal Entry
ClearingDocFiscalYear ClearingDocFiscalYear Fiscal Year of Clearing Journal Entry
ClearingDate ClearingDate Clearing Date
GLAccount GLAccount General Ledger
DebitCreditCode DebitCreditCode Single-Character Flag
Customer Customer Sold-to Party
Supplier Supplier Supplier
DocumentReferenceID DocumentReferenceID Reference
ClearedInvoiceNumber ClearedInvoiceNumber
TransactionCurrency TransactionCurrency Transaction Currency
CompanyCodeCurrency CompanyCodeCurrency Local Currency
AdditionalCurrency1 AdditionalCurrency1 Local curr. 2
AdditionalCurrency2 AdditionalCurrency2 Local curr. 3
InvoiceCompanyCode InvoiceCompanyCode Receiver Company Code
_Customer _Customer
_Supplier _Supplier
_OneTimeAccountBP _OneTimeAccountBP

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_PH_PaytReceivablePyblItm.
-- 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: PPHPAYTRPITM

CREATE VIEW P_PH_PaytReceivablePyblItm AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  AccountingDocumentItem,
  InvoiceReference,
  InvoiceReferenceFiscalYear,
  InvoiceItemReference,
  BusinessPlace,
  PostingDate,
  AccountingDocumentType,
  FinancialAccountType,
  IsUsedInPaymentTransaction,
  ClearingAccountingDocument,
  ClearingDocFiscalYear,
  ClearingDate,
  GLAccount,
  DebitCreditCode,
  Customer,
  Supplier,
  DocumentReferenceID,
  InvoiceReference AS ClearedInvoiceNumber,
  cast( '' as abap_boolean preserving type ) AS isCreditMemoItem,
  TransactionCurrency,
  abs(AmountInTransactionCurrency) AS AmountInTransactionCurrency,
  CompanyCodeCurrency,
  abs(AmountInCompanyCodeCurrency) AS AmountInCompanyCodeCurrency,
  AdditionalCurrency1,
  abs(AmountInAdditionalCurrency1) AS AmountInAdditionalCurrency1,
  AdditionalCurrency2,
  abs(AmountInAdditionalCurrency1) AS AmountInAdditionalCurrency2,
  InvoiceCompanyCode
FROM P_PH_PaytOpnReceivablePyblItm
-- UNION with additional select branch(es): P_PH_PaytClrdReceivablePyblItm
;