I_PaytReceiptJournalEntryVH

DDL: I_PAYTRECEIPTJOURNALENTRYVH Type: view_entity COMPOSITE Package: GLO_FIN_PAYMENT_RECEIPT

Payment Receipt Journal Entry

I_PaytReceiptJournalEntryVH is a Composite CDS View that provides data about "Payment Receipt Journal Entry" in SAP S/4HANA. It reads from 2 data sources (P_PaymentReceiptRelatedDoc, P_PaytReceiptJournalEntry) and exposes 34 fields with key fields CompanyCode, FiscalYear, AccountingDocument, AccountingDocumentItem. It has 4 associations to related views. Part of development package GLO_FIN_PAYMENT_RECEIPT.

Data Sources (2)

SourceAliasJoin Type
P_PaymentReceiptRelatedDoc _usedJounralEntry left_outer
P_PaytReceiptJournalEntry AccountingDocument from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_PaytReceiptSupplierVH _Supplier _Supplier.CompanyCode = AccountingDocument.CompanyCode and _Supplier.Supplier = AccountingDocument.Supplier
[0..1] I_Customer _Customer _Customer.Customer = AccountingDocument.Customer
[0..1] I_PaytReceiptBusinessPlaceVH _BusinessPlace _BusinessPlace.CompanyCode = AccountingDocument.CompanyCode and _BusinessPlace.BusinessPlace = AccountingDocument.BusinessPlace
[0..1] I_AccountingDocumentTypeText _ADocText AccountingDocument.AccountingDocumentType = _ADocText.AccountingDocumentType and _ADocText.Language = $session.system_language

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.representativeKey AccountingDocument view
ObjectModel.dataCategory #VALUE_HELP view
VDM.viewType #COMPOSITE view
Search.searchable true view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Payment Receipt Journal Entry view
Metadata.ignorePropagatedAnnotations true view
Analytics.technicalName IPHPAYTRECPTJEVH view

Fields (34)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_PaytReceiptJournalEntry CompanyCode Receiver Company Code
KEY FiscalYear P_PaytReceiptJournalEntry FiscalYear G/L Fiscal Year
KEY AccountingDocument P_PaytReceiptJournalEntry AccountingDocument Journal Entry
KEY AccountingDocumentItem P_PaytReceiptJournalEntry AccountingDocumentItem Line Item
CompanyCodeName P_PaytReceiptJournalEntry CompanyCodeName Company Name
Customer P_PaytReceiptJournalEntry Customer Sold-to Party
CustomerName _Customer CustomerName Name of Customer
Country
Supplier P_PaytReceiptJournalEntry Supplier Supplier
SupplierName
DocumentReferenceID P_PaytReceiptJournalEntry DocumentReferenceID Reference
BusinessPlace P_PaytReceiptJournalEntry BusinessPlace Business place
BusinessPlaceName _BusinessPlace BusinessPlaceName
BranchCode P_PaytReceiptJournalEntry BranchCode Branch Code
TH_BranchCodeDescription
CustomerBusinessPlace P_PaytReceiptJournalEntry CustomerBusinessPlace Business place
BusinessPlaceDescription
PaymentMethod P_PaytReceiptJournalEntry PaymentMethod Pymt Meth.
DocumentDate P_PaytReceiptJournalEntry DocumentDate Journal Entry Date
PostingDate P_PaytReceiptJournalEntry PostingDate Posting Date for GR
AmountInTransactionCurrency P_PaytReceiptJournalEntry AmountInTransactionCurrency Amount
AccountingDocumentType P_PaytReceiptJournalEntry AccountingDocumentType Journal Entry Type
AccountingDocumentTypeName _ADocText AccountingDocumentTypeName
Currency P_PaytReceiptJournalEntry Currency Valuation Crcy
AlternativeReferenceDocument P_PaytReceiptJournalEntry AlternativeReferenceDocument Alternative Reference Document
PH_BusinessStyleOfBPText
JournalEntry P_PaymentReceiptRelatedDoc JournalEntry
ClearingAccountingDocument P_PaytReceiptJournalEntry ClearingAccountingDocument Clearing Journal Entry
CashDiscountAmount P_PaytReceiptJournalEntry CashDiscountAmount CD Amount
NetPaymentAmount P_PaytReceiptJournalEntry NetPaymentAmount Net Payment Amount
IsUsedInPaymentTransaction P_PaytReceiptJournalEntry IsUsedInPaymentTransaction Is Used In Payment Transaction
OperationalDocItemQty 1
AuthorizationGroup _Customer AuthorizationGroup AuthorizGroup
_Customer _Customer

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_PaytReceiptJournalEntryVH.
-- 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 I_PaytReceiptJournalEntryVH AS
SELECT
  AccountingDocument.CompanyCode AS CompanyCode,
  AccountingDocument.FiscalYear AS FiscalYear,
  AccountingDocument.AccountingDocument AS AccountingDocument,
  AccountingDocument.AccountingDocumentItem AS AccountingDocumentItem,
  AccountingDocument.CompanyCodeName AS CompanyCodeName,
  AccountingDocument.Customer AS Customer,
  _Customer.CustomerName AS CustomerName,
  cast('' as land1) AS Country,
  AccountingDocument.Supplier AS Supplier,
  cast('' as md_supplier_name) AS SupplierName,
  AccountingDocument.DocumentReferenceID AS DocumentReferenceID,
  AccountingDocument.BusinessPlace AS BusinessPlace,
  _BusinessPlace.BusinessPlaceName AS BusinessPlaceName,
  AccountingDocument.BranchCode AS BranchCode,
  cast('' as fith_desc) AS TH_BranchCodeDescription,
  AccountingDocument.CustomerBusinessPlace AS CustomerBusinessPlace,
  cast('' as name1) AS BusinessPlaceDescription,
  AccountingDocument.PaymentMethod AS PaymentMethod,
  AccountingDocument.DocumentDate AS DocumentDate,
  AccountingDocument.PostingDate AS PostingDate,
  AccountingDocument.AmountInTransactionCurrency AS AmountInTransactionCurrency,
  AccountingDocument.AccountingDocumentType AS AccountingDocumentType,
  _ADocText.AccountingDocumentTypeName AS AccountingDocumentTypeName,
  AccountingDocument.Currency AS Currency,
  AccountingDocument.AlternativeReferenceDocument AS AlternativeReferenceDocument,
  cast('' as ph_biz_style) AS PH_BusinessStyleOfBPText,
  _usedJounralEntry.JournalEntry AS JournalEntry,
  AccountingDocument.ClearingAccountingDocument AS ClearingAccountingDocument,
  AccountingDocument.CashDiscountAmount AS CashDiscountAmount,
  AccountingDocument.NetPaymentAmount AS NetPaymentAmount,
  AccountingDocument.IsUsedInPaymentTransaction AS IsUsedInPaymentTransaction,
  1 AS OperationalDocItemQty,
  _Customer.AuthorizationGroup AS AuthorizationGroup
FROM P_PaytReceiptJournalEntry AS AccountingDocument
LEFT OUTER JOIN P_PaymentReceiptRelatedDoc AS _usedJounralEntry ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PaytReceiptSupplierVH AS _Supplier ON _Supplier.CompanyCode = AccountingDocument.CompanyCode AND _Supplier.Supplier = AccountingDocument.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON _Customer.Customer = AccountingDocument.Customer  -- association [0..1]
LEFT OUTER JOIN I_PaytReceiptBusinessPlaceVH AS _BusinessPlace ON _BusinessPlace.CompanyCode = AccountingDocument.CompanyCode AND _BusinessPlace.BusinessPlace = AccountingDocument.BusinessPlace  -- association [0..1]
LEFT OUTER JOIN I_AccountingDocumentTypeText AS _ADocText ON AccountingDocument.AccountingDocumentType = _ADocText.AccountingDocumentType AND _ADocText.Language = $session.system_language  -- association [0..1]
;