I_PT_SAFTPaytBusinessPartner

DDL: I_PT_SAFTPAYTBUSINESSPARTNER Type: view_entity COMPOSITE

Business Partner from Payment Document

I_PT_SAFTPaytBusinessPartner is a Composite CDS View that provides data about "Business Partner from Payment Document" in SAP S/4HANA. It reads from 2 data sources (I_OperationalAcctgDocItem, I_PT_SAFTGenericSettings) and exposes 17 fields with key fields CompanyCode, FiscalYear, AccountingDocument, Customer, Supplier.

Data Sources (2)

SourceAliasJoin Type
I_OperationalAcctgDocItem AcctgDoc from
I_PT_SAFTGenericSettings GenSet inner

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
EndUserText.label Business Partner from Payment Document view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_OperationalAcctgDocItem CompanyCode Receiver Company Code
KEY FiscalYear I_OperationalAcctgDocItem FiscalYear G/L Fiscal Year
KEY AccountingDocument I_OperationalAcctgDocItem AccountingDocument Journal Entry
KEY Customer
KEY Supplier
PostingDate I_OperationalAcctgDocItem PostingDate Posting Date for GR
FiscalPeriod I_OperationalAcctgDocItem FiscalPeriod Tax period
AccountingDocumentType I_OperationalAcctgDocItem AccountingDocumentType Journal Entry Type
IsReversal
AccountingDocumentCategory I_OperationalAcctgDocItem AccountingDocumentCategory Journal Entry Category
FinancialAccountType I_OperationalAcctgDocItem FinancialAccountType Fin. Account Type
CountryendasCountry
IsOneTimeAccountendasIsOneTimeAccount
AlternativeGLAccount I_OperationalAcctgDocItem AlternativeGLAccount Group Account
_CompanyCode I_OperationalAcctgDocItem _CompanyCode
_FiscalYear I_OperationalAcctgDocItem _FiscalYear
_JournalEntry I_OperationalAcctgDocItem _JournalEntry

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_PT_SAFTPaytBusinessPartner.
-- 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_PT_SAFTPaytBusinessPartner AS
SELECT
  AcctgDoc.CompanyCode AS CompanyCode,
  AcctgDoc.FiscalYear AS FiscalYear,
  AcctgDoc.AccountingDocument AS AccountingDocument,
  max(AcctgDoc.Customer) AS Customer,
  max(AcctgDoc.Supplier) AS Supplier,
  AcctgDoc.PostingDate AS PostingDate,
  AcctgDoc.FiscalPeriod AS FiscalPeriod,
  AcctgDoc.AccountingDocumentType AS AccountingDocumentType,
  AcctgDoc._JournalEntry.IsReversal AS IsReversal,
  AcctgDoc.AccountingDocumentCategory AS AccountingDocumentCategory,
  AcctgDoc.FinancialAccountType AS FinancialAccountType,
  case when AcctgDoc.Customer is not initial then AcctgDoc._Customer.Country when AcctgDoc.Supplier is not initial then AcctgDoc._Supplier.Country end as Country AS CountryendasCountry,
  case when AcctgDoc.Customer is not initial then AcctgDoc._Customer.IsOneTimeAccount when AcctgDoc.Supplier is not initial then AcctgDoc._Supplier.IsOneTimeAccount end as IsOneTimeAccount AS IsOneTimeAccountendasIsOneTimeAccount,
  AcctgDoc.AlternativeGLAccount AS AlternativeGLAccount,
  AcctgDoc._CompanyCode AS _CompanyCode,
  AcctgDoc._FiscalYear AS _FiscalYear,
  AcctgDoc._JournalEntry AS _JournalEntry
FROM I_OperationalAcctgDocItem AS AcctgDoc
INNER JOIN I_PT_SAFTGenericSettings AS GenSet ON /* join condition not captured in parsed metadata */
;