C_CL_StRpPurchaseLedgerQuery

DDL: C_CL_STRPPURCHASELEDGERQUERY SQL: CCLSTRPPURLQ Type: view CONSUMPTION Package: GLO_FIN_IS_CL

Chile Purchase Ledger Entry Query

C_CL_StRpPurchaseLedgerQuery is a Consumption CDS View that provides data about "Chile Purchase Ledger Entry Query" in SAP S/4HANA. It reads from 1 data source (C_CL_StRpPurchaseLedgerCube) and exposes 34 fields with key fields CompanyCode, AccountingDocument, FiscalYear, Ledger, StatryRptgEntity. Part of development package GLO_FIN_IS_CL.

Data Sources (1)

SourceAliasJoin Type
C_CL_StRpPurchaseLedgerCube C_CL_StRpPurchaseLedgerCube from

Parameters (1)

NameTypeDefault
P_ReportingCurrency glo_reporting_currency

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CCLSTRPPURLQ view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
Analytics.query true view
EndUserText.label Chile Purchase Ledger Entry Query view

Fields (34)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode PurchaseLedgerEntry CompanyCode Receiver Company Code
KEY AccountingDocument PurchaseLedgerEntry AccountingDocument Journal Entry
KEY FiscalYear PurchaseLedgerEntry FiscalYear G/L Fiscal Year
KEY Ledger PurchaseLedgerEntry Ledger Ledger
KEY StatryRptgEntity PurchaseLedgerEntry StatryRptgEntity Reporting Entity
KEY StatryRptCategory PurchaseLedgerEntry StatryRptCategory Report ID
KEY StatryRptRunID PurchaseLedgerEntry StatryRptRunID Report Run ID
DocumentDate PurchaseLedgerEntry DocumentDate Journal Entry Date
ReportingDate PurchaseLedgerEntry ReportingDate
CL_PurchaseType PurchaseLedgerEntry CL_PurchaseType
CL_SIIElectronicDocumentType PurchaseLedgerEntry CL_SIIElectronicDocumentType
CL_SIIEDocFolioNumber PurchaseLedgerEntry CL_SIIEDocFolioNumber
ElectronicDocPostingDate PurchaseLedgerEntry ElectronicDocPostingDate
CL_SIIEDocReceivedDate PurchaseLedgerEntry CL_SIIEDocReceivedDate
CL_SIIEDocAcknowledgedDate PurchaseLedgerEntry CL_SIIEDocAcknowledgedDate
CL_SIIDocFromPurchaseInvoice PurchaseLedgerEntry CL_SIIDocFromPurchaseInvoice
Supplier PurchaseLedgerEntry Supplier Supplier
TaxNumber1 PurchaseLedgerEntry TaxNumber1 VAT Reg. No.
SupplierName PurchaseLedgerEntry SupplierName Supplier Name
CL_NonRecoverableVatCode PurchaseLedgerEntry CL_NonRecoverableVatCode
ReportingCurrency PurchaseLedgerEntry ReportingCurrency Currency
TaxBox01AmtInReportingCurrency PurchaseLedgerEntry TaxBox01AmtInReportingCurrency
TaxBox02AmtInReportingCurrency PurchaseLedgerEntry TaxBox02AmtInReportingCurrency
TaxBox05AmtInReportingCurrency PurchaseLedgerEntry TaxBox05AmtInReportingCurrency
TaxBox06AmtInReportingCurrency PurchaseLedgerEntry TaxBox06AmtInReportingCurrency
TaxBox03AmtInReportingCurrency PurchaseLedgerEntry TaxBox03AmtInReportingCurrency
TaxBox07AmtInReportingCurrency PurchaseLedgerEntry TaxBox07AmtInReportingCurrency
TaxBox08AmtInReportingCurrency PurchaseLedgerEntry TaxBox08AmtInReportingCurrency
TaxBox04AmtInReportingCurrency PurchaseLedgerEntry TaxBox04AmtInReportingCurrency
TaxBox09AmtInReportingCurrency PurchaseLedgerEntry TaxBox09AmtInReportingCurrency
TaxBox10AmtInReportingCurrency PurchaseLedgerEntry TaxBox10AmtInReportingCurrency
TaxBox11AmtInReportingCurrency PurchaseLedgerEntry TaxBox11AmtInReportingCurrency
TaxBox12AmtInReportingCurrency PurchaseLedgerEntry TaxBox12AmtInReportingCurrency
TotalAmountInDisplayCrcy PurchaseLedgerEntry TotalAmountInDisplayCrcy

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_CL_StRpPurchaseLedgerQuery.
-- 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: CCLSTRPPURLQ
-- Parameters: P_ReportingCurrency : glo_reporting_currency

CREATE VIEW C_CL_StRpPurchaseLedgerQuery AS
SELECT
  PurchaseLedgerEntry.CompanyCode AS CompanyCode,
  PurchaseLedgerEntry.AccountingDocument AS AccountingDocument,
  PurchaseLedgerEntry.FiscalYear AS FiscalYear,
  PurchaseLedgerEntry.Ledger AS Ledger,
  PurchaseLedgerEntry.StatryRptgEntity AS StatryRptgEntity,
  PurchaseLedgerEntry.StatryRptCategory AS StatryRptCategory,
  PurchaseLedgerEntry.StatryRptRunID AS StatryRptRunID,
  PurchaseLedgerEntry.DocumentDate AS DocumentDate,
  PurchaseLedgerEntry.ReportingDate AS ReportingDate,
  PurchaseLedgerEntry.CL_PurchaseType AS CL_PurchaseType,
  PurchaseLedgerEntry.CL_SIIElectronicDocumentType AS CL_SIIElectronicDocumentType,
  PurchaseLedgerEntry.CL_SIIEDocFolioNumber AS CL_SIIEDocFolioNumber,
  PurchaseLedgerEntry.ElectronicDocPostingDate AS ElectronicDocPostingDate,
  PurchaseLedgerEntry.CL_SIIEDocReceivedDate AS CL_SIIEDocReceivedDate,
  PurchaseLedgerEntry.CL_SIIEDocAcknowledgedDate AS CL_SIIEDocAcknowledgedDate,
  PurchaseLedgerEntry.CL_SIIDocFromPurchaseInvoice AS CL_SIIDocFromPurchaseInvoice,
  PurchaseLedgerEntry.Supplier AS Supplier,
  PurchaseLedgerEntry.TaxNumber1 AS TaxNumber1,
  PurchaseLedgerEntry.SupplierName AS SupplierName,
  PurchaseLedgerEntry.CL_NonRecoverableVatCode AS CL_NonRecoverableVatCode,
  PurchaseLedgerEntry.ReportingCurrency AS ReportingCurrency,
  PurchaseLedgerEntry.TaxBox01AmtInReportingCurrency AS TaxBox01AmtInReportingCurrency,
  PurchaseLedgerEntry.TaxBox02AmtInReportingCurrency AS TaxBox02AmtInReportingCurrency,
  PurchaseLedgerEntry.TaxBox05AmtInReportingCurrency AS TaxBox05AmtInReportingCurrency,
  PurchaseLedgerEntry.TaxBox06AmtInReportingCurrency AS TaxBox06AmtInReportingCurrency,
  PurchaseLedgerEntry.TaxBox03AmtInReportingCurrency AS TaxBox03AmtInReportingCurrency,
  PurchaseLedgerEntry.TaxBox07AmtInReportingCurrency AS TaxBox07AmtInReportingCurrency,
  PurchaseLedgerEntry.TaxBox08AmtInReportingCurrency AS TaxBox08AmtInReportingCurrency,
  PurchaseLedgerEntry.TaxBox04AmtInReportingCurrency AS TaxBox04AmtInReportingCurrency,
  PurchaseLedgerEntry.TaxBox09AmtInReportingCurrency AS TaxBox09AmtInReportingCurrency,
  PurchaseLedgerEntry.TaxBox10AmtInReportingCurrency AS TaxBox10AmtInReportingCurrency,
  PurchaseLedgerEntry.TaxBox11AmtInReportingCurrency AS TaxBox11AmtInReportingCurrency,
  PurchaseLedgerEntry.TaxBox12AmtInReportingCurrency AS TaxBox12AmtInReportingCurrency,
  PurchaseLedgerEntry.TotalAmountInDisplayCrcy AS TotalAmountInDisplayCrcy
FROM C_CL_StRpPurchaseLedgerCube
;