P_PT_BusinessPartner_Delivery

DDL: P_PT_BUSINESSPARTNER_DELIVERY Type: view_entity COMPOSITE

Business Partner Delivery Country

P_PT_BusinessPartner_Delivery is a Composite CDS View that provides data about "Business Partner Delivery Country" in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 16 fields with key fields CompanyCode, FiscalYear, AccountingDocument.

Data Sources (1)

SourceAliasJoin Type
I_OperationalAcctgDocItem AcctgDoc from

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view
EndUserText.label Business Partner Delivery Country view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (16)

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
PostingDate I_OperationalAcctgDocItem PostingDate Posting Date for GR
FiscalPeriod I_OperationalAcctgDocItem FiscalPeriod Tax period
AccountingDocumentType I_OperationalAcctgDocItem AccountingDocumentType Journal Entry Type
IsReversal
Customer
Supplier
AccountingDocumentCategory I_OperationalAcctgDocItem AccountingDocumentCategory Journal Entry Category
FinancialAccountType I_OperationalAcctgDocItem FinancialAccountType Fin. Account Type
CountryendasCountry
IsOneTimeAccountendasIsOneTimeAccount
_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 P_PT_BusinessPartner_Delivery.
-- 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 P_PT_BusinessPartner_Delivery AS
SELECT
  AcctgDoc.CompanyCode AS CompanyCode,
  AcctgDoc.FiscalYear AS FiscalYear,
  AcctgDoc.AccountingDocument AS AccountingDocument,
  AcctgDoc.PostingDate AS PostingDate,
  AcctgDoc.FiscalPeriod AS FiscalPeriod,
  AcctgDoc.AccountingDocumentType AS AccountingDocumentType,
  AcctgDoc._JournalEntry.IsReversal AS IsReversal,
  max(AcctgDoc.Customer) AS Customer,
  max(AcctgDoc.Supplier) AS Supplier,
  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._CompanyCode AS _CompanyCode,
  AcctgDoc._FiscalYear AS _FiscalYear,
  AcctgDoc._JournalEntry AS _JournalEntry
FROM I_OperationalAcctgDocItem AS AcctgDoc
;