P_SAFTJournalItemBP
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)
| Source | Alias | Join 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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA