P_PL_SAFTJOURNALPARTNERINFO

DDL: P_PL_SAFTJOURNALPARTNERINFO Type: view_entity CONSUMPTION Package: GLO_FIN_IS_SAFT_PL

SAF-T PL Partner Info

P_PL_SAFTJOURNALPARTNERINFO is a Consumption CDS View that provides data about "SAF-T PL Partner Info" in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 10 fields with key fields SourceLedger, CompanyCode, FiscalYear, AccountingDocument, Ledger. Part of development package GLO_FIN_IS_SAFT_PL.

Data Sources (1)

SourceAliasJoin Type
I_OperationalAcctgDocItem bseg inner

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
VDM.private true view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger I_JournalEntryItem SourceLedger Source Ledger
KEY CompanyCode I_JournalEntryItem CompanyCode Receiver Company Code
KEY FiscalYear I_JournalEntryItem FiscalYear G/L Fiscal Year
KEY AccountingDocument I_JournalEntryItem AccountingDocument Journal Entry
KEY Ledger I_JournalEntryItem Ledger Ledger
Customer I_JournalEntryItem Customer Sold-to Party
Supplier I_JournalEntryItem Supplier Supplier
TaxID1elseendasVATRegistration
CountryelseendasBusinessPartnerCountry
DelivOfGoodsDestCountry I_OperationalAcctgDocItem DelivOfGoodsDestCountry Dest. C/R

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_PL_SAFTJOURNALPARTNERINFO.
-- 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_PL_SAFTJOURNALPARTNERINFO AS
SELECT
  I_JournalEntryItem.SourceLedger AS SourceLedger,
  I_JournalEntryItem.CompanyCode AS CompanyCode,
  I_JournalEntryItem.FiscalYear AS FiscalYear,
  I_JournalEntryItem.AccountingDocument AS AccountingDocument,
  I_JournalEntryItem.Ledger AS Ledger,
  I_JournalEntryItem.Customer AS Customer,
  I_JournalEntryItem.Supplier AS Supplier,
  case when bseg.VATRegistration is not initial then bseg.VATRegistration when I_JournalEntryItem._Customer.VATRegistration is not initial then I_JournalEntryItem._Customer.VATRegistration when I_JournalEntryItem._Customer.TaxNumber1 is not initial then I_JournalEntryItem._Customer.TaxNumber1 when I_JournalEntryItem._Customer.TaxNumber2 is not initial then I_JournalEntryItem._Customer.TaxNumber2 when I_JournalEntryItem._Customer.TaxNumber3 is not initial then I_JournalEntryItem._Customer.TaxNumber3 when I_JournalEntryItem._Customer.TaxNumber4 is not initial then I_JournalEntryItem._Customer.TaxNumber4 when I_JournalEntryItem._Supplier.VATRegistration is not initial then I_JournalEntryItem._Supplier.VATRegistration when I_JournalEntryItem._Supplier.TaxNumber1 is not initial then I_JournalEntryItem._Supplier.TaxNumber1 when I_JournalEntryItem._Supplier.TaxNumber2 is not initial then I_JournalEntryItem._Supplier.TaxNumber2 when I_JournalEntryItem._Supplier.TaxNumber3 is not initial then I_JournalEntryItem._Supplier.TaxNumber3 when I_JournalEntryItem._Supplier.TaxNumber4 is not initial then I_JournalEntryItem._Supplier.TaxNumber4 when bseg._JournalEntryItemOneTimeData.TaxID1 is not initial then bseg._JournalEntryItemOneTimeData.TaxID1 else '' end as VATRegistration AS TaxID1elseendasVATRegistration,
  case when bseg.DelivOfGoodsDestCountry is not initial then bseg.DelivOfGoodsDestCountry when bseg._JournalEntryItemOneTimeData.Country is not initial then bseg._JournalEntryItemOneTimeData.Country when I_JournalEntryItem._Customer.Country is not initial then I_JournalEntryItem._Customer.Country when I_JournalEntryItem._Supplier.Country is not initial then I_JournalEntryItem._Supplier.Country else '' end as BusinessPartnerCountry AS CountryelseendasBusinessPartnerCountry,
  bseg.DelivOfGoodsDestCountry AS DelivOfGoodsDestCountry
INNER JOIN I_OperationalAcctgDocItem AS bseg ON /* join condition not captured in parsed metadata */
;