C_PE_StRpPurLdgrDmstcSuplrC
Purchase Ledger Domestic - Cube
C_PE_StRpPurLdgrDmstcSuplrC is a Consumption CDS View (Cube) that provides data about "Purchase Ledger Domestic - Cube" in SAP S/4HANA. It reads from 4 data sources (I_CompanyCode, I_AddlCompanyCodeInformation, P_PE_PurDmstcSuplrTaxAggrgd, I_Supplier) and exposes 37 fields with key fields CompanyCode, FiscalYear, AccountingDocument, Ledger, StatryRptCategory.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_CompanyCode | CompanyCode | inner |
| I_AddlCompanyCodeInformation | CompanyCodeInfo | inner |
| P_PE_PurDmstcSuplrTaxAggrgd | P_PE_PurDmstcSuplrTaxAggrgd | from |
| I_Supplier | Supplier | inner |
Parameters (6)
| Name | Type | Default |
|---|---|---|
| P_FinancialStatementHierarchy | hryid | |
| P_ReportingCurrency | glo_reporting_currency | |
| P_TaxConversionIsNotEnabled | fipe_deactivate_currency_conv | |
| P_CompanyCode | fis_bukrs | |
| P_FiscalYear | fis_gjahr_no_conv | |
| P_Ledger | rldnr |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | CPEPURLDGRC | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.internalName | #LOCAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Purchase Ledger Domestic - Cube | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (37)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | PurchaseTaxEntry | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | PurchaseTaxEntry | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocument | PurchaseTaxEntry | AccountingDocument | Journal Entry |
| KEY | Ledger | PurchaseTaxEntry | Ledger | Ledger |
| KEY | StatryRptCategory | PurchaseTaxEntry | StatryRptCategory | Report ID |
| KEY | StatryRptgEntity | PurchaseTaxEntry | StatryRptgEntity | Reporting Entity |
| KEY | StatryRptRunID | PurchaseTaxEntry | StatryRptRunID | Report Run ID |
| ReportingDate | PurchaseTaxEntry | ReportingDate | ||
| FiscalPeriod | PurchaseTaxEntry | FiscalPeriod | Tax period | |
| ChartOfAccounts | I_CompanyCode | ChartOfAccounts | Node Class | |
| ExchangeRate | PurchaseTaxEntry | ExchangeRate | Exchange rate | |
| PE_CompanyCodeTaxNumber | ||||
| CalendarYearMonth | PurchaseTaxEntry | CalendarYearMonth | ||
| DocumentDate | PurchaseTaxEntry | DocumentDate | Journal Entry Date | |
| PE_OfficialDocumentType | PurchaseTaxEntry | PE_OfficialDocumentType | ||
| TaxNumber1endasstcd1asTaxNumber1 | ||||
| ExchangeRateDate | PurchaseTaxEntry | ExchangeRateDate | Translatn Date | |
| TransactionCurrency | PurchaseTaxEntry | TransactionCurrency | Transaction Currency | |
| CountryCurrency | PurchaseTaxEntry | CountryCurrency | Currency | |
| ReportingCurrency | PurchaseTaxEntry | ReportingCurrency | Currency | |
| TaxBaseAmount | PurchaseTaxEntry | TaxBaseAmount | TaxBaseAmtInRptgCrcy | |
| TaxAmount | PurchaseTaxEntry | TaxAmount | Tax Amt in Rptg Crcy | |
| PE_TxBaseTxblSlsAmtInCtryCrcy | PurchaseTaxEntry | PE_TxBaseTxblSlsAmtInCtryCrcy | ||
| PE_TaxForTxblSlsAmtInCtryCrcy | PurchaseTaxEntry | PE_TaxForTxblSlsAmtInCtryCrcy | ||
| PE_BaseTxblNonAmtInCtryCrcy | PurchaseTaxEntry | PE_BaseTxblNonAmtInCtryCrcy | ||
| PE_TaxTxblNonTxblAmtInCtryCrcy | PurchaseTaxEntry | PE_TaxTxblNonTxblAmtInCtryCrcy | ||
| PE_TxBaseNonTxblAmtInCtryCrcy | PurchaseTaxEntry | PE_TxBaseNonTxblAmtInCtryCrcy | ||
| PE_TxNonTxblSalesAmtInCtryCrcy | PurchaseTaxEntry | PE_TxNonTxblSalesAmtInCtryCrcy | ||
| PE_NonTxblBaseAmtInCtryCrcy | PurchaseTaxEntry | PE_NonTxblBaseAmtInCtryCrcy | ||
| PE_SelectiveAcqnAmtInCtryCrcy | PurchaseTaxEntry | PE_SelectiveAcqnAmtInCtryCrcy | ||
| PE_TxOnPlasticBagAmtInCtryCrcy | PurchaseTaxEntry | PE_TxOnPlasticBagAmtInCtryCrcy | ||
| PE_OthTxAndChrgsAmtInCtryCrcy | PurchaseTaxEntry | PE_OthTxAndChrgsAmtInCtryCrcy | ||
| _CompanyCode | PurchaseTaxEntry | _CompanyCode | ||
| _FiscalYear | PurchaseTaxEntry | _FiscalYear | ||
| _Ledger | PurchaseTaxEntry | _Ledger | ||
| _FiscalPeriod | PurchaseTaxEntry | _FiscalPeriod | ||
| _TransactionCurrency | PurchaseTaxEntry | _TransactionCurrency |
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 C_PE_StRpPurLdgrDmstcSuplrC.
-- 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: CPEPURLDGRC
-- Parameters: P_FinancialStatementHierarchy : hryid, P_ReportingCurrency : glo_reporting_currency, P_TaxConversionIsNotEnabled : fipe_deactivate_currency_conv, P_CompanyCode : fis_bukrs, P_FiscalYear : fis_gjahr_no_conv, P_Ledger : rldnr
CREATE VIEW C_PE_StRpPurLdgrDmstcSuplrC AS
SELECT
PurchaseTaxEntry.CompanyCode AS CompanyCode,
PurchaseTaxEntry.FiscalYear AS FiscalYear,
PurchaseTaxEntry.AccountingDocument AS AccountingDocument,
PurchaseTaxEntry.Ledger AS Ledger,
PurchaseTaxEntry.StatryRptCategory AS StatryRptCategory,
PurchaseTaxEntry.StatryRptgEntity AS StatryRptgEntity,
PurchaseTaxEntry.StatryRptRunID AS StatryRptRunID,
PurchaseTaxEntry.ReportingDate AS ReportingDate,
PurchaseTaxEntry.FiscalPeriod AS FiscalPeriod,
CompanyCode.ChartOfAccounts AS ChartOfAccounts,
PurchaseTaxEntry.ExchangeRate AS ExchangeRate,
cast(CompanyCodeInfo.CompanyCodeParameterValue as fipe_company_code_tax_number) AS PE_CompanyCodeTaxNumber,
PurchaseTaxEntry.CalendarYearMonth AS CalendarYearMonth,
PurchaseTaxEntry.DocumentDate AS DocumentDate,
PurchaseTaxEntry.PE_OfficialDocumentType AS PE_OfficialDocumentType,
cast(case when OneTimeAccountBP.AccountingDocument is not null then OneTimeAccountBP.TaxID1 else Supplier.TaxNumber1 end as stcd1) as TaxNumber1 AS TaxNumber1endasstcd1asTaxNumber1,
PurchaseTaxEntry.ExchangeRateDate AS ExchangeRateDate,
PurchaseTaxEntry.TransactionCurrency AS TransactionCurrency,
PurchaseTaxEntry.CountryCurrency AS CountryCurrency,
PurchaseTaxEntry.ReportingCurrency AS ReportingCurrency,
PurchaseTaxEntry.TaxBaseAmount AS TaxBaseAmount,
PurchaseTaxEntry.TaxAmount AS TaxAmount,
PurchaseTaxEntry.PE_TxBaseTxblSlsAmtInCtryCrcy AS PE_TxBaseTxblSlsAmtInCtryCrcy,
PurchaseTaxEntry.PE_TaxForTxblSlsAmtInCtryCrcy AS PE_TaxForTxblSlsAmtInCtryCrcy,
PurchaseTaxEntry.PE_BaseTxblNonAmtInCtryCrcy AS PE_BaseTxblNonAmtInCtryCrcy,
PurchaseTaxEntry.PE_TaxTxblNonTxblAmtInCtryCrcy AS PE_TaxTxblNonTxblAmtInCtryCrcy,
PurchaseTaxEntry.PE_TxBaseNonTxblAmtInCtryCrcy AS PE_TxBaseNonTxblAmtInCtryCrcy,
PurchaseTaxEntry.PE_TxNonTxblSalesAmtInCtryCrcy AS PE_TxNonTxblSalesAmtInCtryCrcy,
PurchaseTaxEntry.PE_NonTxblBaseAmtInCtryCrcy AS PE_NonTxblBaseAmtInCtryCrcy,
PurchaseTaxEntry.PE_SelectiveAcqnAmtInCtryCrcy AS PE_SelectiveAcqnAmtInCtryCrcy,
PurchaseTaxEntry.PE_TxOnPlasticBagAmtInCtryCrcy AS PE_TxOnPlasticBagAmtInCtryCrcy,
PurchaseTaxEntry.PE_OthTxAndChrgsAmtInCtryCrcy AS PE_OthTxAndChrgsAmtInCtryCrcy,
PurchaseTaxEntry._CompanyCode AS _CompanyCode,
PurchaseTaxEntry._FiscalYear AS _FiscalYear,
PurchaseTaxEntry._Ledger AS _Ledger,
PurchaseTaxEntry._FiscalPeriod AS _FiscalPeriod,
PurchaseTaxEntry._TransactionCurrency AS _TransactionCurrency
FROM P_PE_PurDmstcSuplrTaxAggrgd
INNER JOIN I_AddlCompanyCodeInformation AS CompanyCodeInfo ON /* join condition not captured in parsed metadata */
INNER JOIN I_CompanyCode AS CompanyCode ON /* join condition not captured in parsed metadata */
INNER JOIN I_Supplier AS Supplier 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