P_PL_SAFTJOURNALPARTNERINFO
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)
| Source | Alias | Join Type |
|---|---|---|
| I_OperationalAcctgDocItem | bseg | inner |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
Learn More
- 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
- S/4HANA CDS View Deprecation: What You Need to Know
- 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