Deprecated
This CDS view is deprecated in S/4HANA. Use NoSuccessor instead. View all deprecated CDS views →

P_SAFTJournalItemBP

DDL: P_SAFTJOURNALITEMBP SQL: PSAFTJIBP Type: view COMPOSITE

P_SAFTJournalItemBP is a Composite CDS View in SAP S/4HANA. It reads from 6 data sources and exposes 27 fields with key fields CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem, Ledger.

Data Sources (6)

SourceAliasJoin Type
I_BusinessPartner BP inner
I_BusinessPartner BP inner
I_CustomerToBusinessPartner CustToBP inner
I_SAFTJournalLineItem JournalLineItem from
I_SAFTJournalLineItem JournalLineItem union
I_SupplierToBusinessPartner SupToBP inner

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName PSAFTJIBP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #P view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor NoSuccessor view

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_SAFTJournalLineItem CompanyCode Receiver Company Code
KEY FiscalYear I_SAFTJournalLineItem FiscalYear G/L Fiscal Year
KEY AccountingDocument I_SAFTJournalLineItem AccountingDocument Journal Entry
KEY LedgerGLLineItem I_SAFTJournalLineItem LedgerGLLineItem Journal Entry Item
KEY Ledger I_SAFTJournalLineItem Ledger Ledger
BusinessPartner I_BusinessPartner BusinessPartner Issuing Authority
BusinessPartnerType
AddressID
PostingDate I_SAFTJournalLineItem PostingDate Posting Date for GR
_CompanyCode I_SAFTJournalLineItem _CompanyCode
_JournalEntry I_SAFTJournalLineItem _JournalEntry
_FiscalYear I_SAFTJournalLineItem _FiscalYear
_Ledger I_SAFTJournalLineItem _Ledger
CompanyCodeasCompanyCode
KEY FiscalYear I_SAFTJournalLineItem FiscalYear G/L Fiscal Year
KEY AccountingDocument I_SAFTJournalLineItem AccountingDocument Journal Entry
KEY LedgerGLLineItem I_SAFTJournalLineItem LedgerGLLineItem Journal Entry Item
KEY Ledger I_SAFTJournalLineItem Ledger Ledger
BusinessPartner I_BusinessPartner BusinessPartner Issuing Authority
BusinessPartnerType
AddressID
PostingDate I_SAFTJournalLineItem PostingDate Posting Date for GR
_CompanyCode I_SAFTJournalLineItem _CompanyCode
_JournalEntry I_SAFTJournalLineItem _JournalEntry
_FiscalYear I_SAFTJournalLineItem _FiscalYear
_Ledger I_SAFTJournalLineItem _Ledger
_CurrentDefaultAddress I_BusinessPartner _CurrentDefaultAddress

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_SAFTJournalItemBP.
-- 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: PSAFTJIBP

CREATE VIEW P_SAFTJournalItemBP AS
SELECT
  JournalLineItem.CompanyCode AS CompanyCode,
  JournalLineItem.FiscalYear AS FiscalYear,
  JournalLineItem.AccountingDocument AS AccountingDocument,
  JournalLineItem.LedgerGLLineItem AS LedgerGLLineItem,
  JournalLineItem.Ledger AS Ledger,
  BP.BusinessPartner AS BusinessPartner,
  '0001' AS BusinessPartnerType,
  BP._CurrentDefaultAddress.AddressID AS AddressID,
  JournalLineItem.PostingDate AS PostingDate,
  JournalLineItem._CompanyCode AS _CompanyCode,
  JournalLineItem._JournalEntry AS _JournalEntry,
  JournalLineItem._FiscalYear AS _FiscalYear,
  JournalLineItem._Ledger AS _Ledger,
  BP._CurrentDefaultAddress AS CompanyCodeasCompanyCode,
  BP._CurrentDefaultAddress AS _CurrentDefaultAddress
FROM I_SAFTJournalLineItem AS JournalLineItem
INNER JOIN I_CustomerToBusinessPartner AS CustToBP ON /* join condition not captured in parsed metadata */
INNER JOIN I_BusinessPartner AS BP ON /* join condition not captured in parsed metadata */
INNER JOIN I_SupplierToBusinessPartner AS SupToBP ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): I_SAFTJournalLineItem
;