C_PH_SuplrCustJournalQuery

DDL: C_PH_SUPLRCUSTJOURNALQUERY SQL: CPHCSJRNLQRY Type: view CONSUMPTION Package: GLO_FIN_IS_PH

PH CAS Journal Query

C_PH_SuplrCustJournalQuery is a Consumption CDS View that provides data about "PH CAS Journal Query" in SAP S/4HANA. It reads from 1 data source (I_PH_SuplrCustJournalCube) and exposes 37 fields with key fields CompanyCode, FiscalYear, FiscalPeriod, Supplier, Customer. Part of development package GLO_FIN_IS_PH.

Data Sources (1)

SourceAliasJoin Type
I_PH_SuplrCustJournalCube I_PH_SuplrCustJournalCube from

Parameters (2)

NameTypeDefault
P_CompanyCode fis_bukrs
P_FinancialAccountType koart

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CPHCSJRNLQRY view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
Analytics.query true view
EndUserText.label PH CAS Journal Query view

Fields (37)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode SuplrCustJournalCube CompanyCode Receiver Company Code
KEY FiscalYear SuplrCustJournalCube FiscalYear G/L Fiscal Year
KEY FiscalPeriod SuplrCustJournalCube FiscalPeriod Tax period
KEY Supplier SuplrCustJournalCube Supplier Supplier
KEY Customer SuplrCustJournalCube Customer Sold-to Party
KEY AccountingDocument SuplrCustJournalCube AccountingDocument Journal Entry
AccountingDocumentHeaderText SuplrCustJournalCube AccountingDocumentHeaderText Accounting Document Header Text
AccountingDocumentType SuplrCustJournalCube AccountingDocumentType Journal Entry Type
BusinessPlace SuplrCustJournalCube BusinessPlace Business place
PostingDate SuplrCustJournalCube PostingDate Posting Date for GR
DocumentDate SuplrCustJournalCube DocumentDate Journal Entry Date
ExchangeRate
VATRegistration
CompanyCodeCurrency SuplrCustJournalCube CompanyCodeCurrency Local Currency
BusinessPartnerName SuplrCustJournalCube BusinessPartnerName Extracted Customer Name
BusinessPartnerCountry SuplrCustJournalCube BusinessPartnerCountry BP Ctry/Reg.
CustomerSupplierAddress SuplrCustJournalCube CustomerSupplierAddress
DocumentReferenceID SuplrCustJournalCube DocumentReferenceID Reference
OriginalReferenceDocument SuplrCustJournalCube OriginalReferenceDocument Original Reference Document
TaxCode SuplrCustJournalCube TaxCode Tax Code
TaxRate SuplrCustJournalCube TaxRate Tax Rate
TaxRateValidityStartDate SuplrCustJournalCube TaxRateValidityStartDate Tax Rate Validity Start Date
AddressID SuplrCustJournalCube AddressID Address ID
AmountInCompanyCodeCurrency
CashDiscountAmtInCoCodeCrcy
CountryCurrency SuplrCustJournalCube CountryCurrency Currency
TaxBaseAmountInCountryCrcy
TaxAmountInCountryCrcy
TaxBaseAmountInCoCodeCrcy
TaxAmountInCoCodeCrcy
TransactionCurrency SuplrCustJournalCube TransactionCurrency Transaction Currency
AmountInTransactionCurrency
CashDiscountAmount
TaxBaseAmountInTransCrcy
TaxAmountInTransCrcy
TotalAmountInCoCodeCrcy
TotalAmountInTransactionCrcy

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_PH_SuplrCustJournalQuery.
-- 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: CPHCSJRNLQRY
-- Parameters: P_CompanyCode : fis_bukrs, P_FinancialAccountType : koart

CREATE VIEW C_PH_SuplrCustJournalQuery AS
SELECT
  SuplrCustJournalCube.CompanyCode AS CompanyCode,
  SuplrCustJournalCube.FiscalYear AS FiscalYear,
  SuplrCustJournalCube.FiscalPeriod AS FiscalPeriod,
  SuplrCustJournalCube.Supplier AS Supplier,
  SuplrCustJournalCube.Customer AS Customer,
  SuplrCustJournalCube.AccountingDocument AS AccountingDocument,
  SuplrCustJournalCube.AccountingDocumentHeaderText AS AccountingDocumentHeaderText,
  SuplrCustJournalCube.AccountingDocumentType AS AccountingDocumentType,
  SuplrCustJournalCube.BusinessPlace AS BusinessPlace,
  SuplrCustJournalCube.PostingDate AS PostingDate,
  SuplrCustJournalCube.DocumentDate AS DocumentDate,
  cast( SuplrCustJournalCube.ExchangeRate as fis_absolute_exchangerate preserving type) AS ExchangeRate,
  cast( SuplrCustJournalCube.VATRegistration as stceg) AS VATRegistration,
  SuplrCustJournalCube.CompanyCodeCurrency AS CompanyCodeCurrency,
  SuplrCustJournalCube.BusinessPartnerName AS BusinessPartnerName,
  SuplrCustJournalCube.BusinessPartnerCountry AS BusinessPartnerCountry,
  SuplrCustJournalCube.CustomerSupplierAddress AS CustomerSupplierAddress,
  SuplrCustJournalCube.DocumentReferenceID AS DocumentReferenceID,
  SuplrCustJournalCube.OriginalReferenceDocument AS OriginalReferenceDocument,
  SuplrCustJournalCube.TaxCode AS TaxCode,
  SuplrCustJournalCube.TaxRate AS TaxRate,
  SuplrCustJournalCube.TaxRateValidityStartDate AS TaxRateValidityStartDate,
  SuplrCustJournalCube.AddressID AS AddressID,
  cast( SuplrCustJournalCube.AmountInCompanyCodeCurrency as fis_hsl) AS AmountInCompanyCodeCurrency,
  cast( SuplrCustJournalCube.CashDiscountAmtInCoCodeCrcy as fis_sknto) AS CashDiscountAmtInCoCodeCrcy,
  SuplrCustJournalCube.CountryCurrency AS CountryCurrency,
  cast( SuplrCustJournalCube.TaxBaseAmountInCountryCrcy as lwbas_bset) AS TaxBaseAmountInCountryCrcy,
  cast( SuplrCustJournalCube.TaxAmountInCountryCrcy as lwste_bset) AS TaxAmountInCountryCrcy,
  cast( SuplrCustJournalCube.TaxBaseAmountInCoCodeCrcy as hwbas_bses) AS TaxBaseAmountInCoCodeCrcy,
  cast( SuplrCustJournalCube.TaxAmountInCoCodeCrcy as hwste) AS TaxAmountInCoCodeCrcy,
  SuplrCustJournalCube.TransactionCurrency AS TransactionCurrency,
  cast( SuplrCustJournalCube.AmountInTransactionCurrency as wrbtr) AS AmountInTransactionCurrency,
  cast( SuplrCustJournalCube.CashDiscountAmount as wskto) AS CashDiscountAmount,
  cast( SuplrCustJournalCube.TaxBaseAmountInTransCrcy as fwbas) AS TaxBaseAmountInTransCrcy,
  cast( SuplrCustJournalCube.TaxAmountInTransCrcy as wmwst) AS TaxAmountInTransCrcy,
  cast( SuplrCustJournalCube.TotalAmountInCoCodeCrcy as fis_hsl) AS TotalAmountInCoCodeCrcy,
  cast( SuplrCustJournalCube.TotalAmountInTransactionCrcy as wrbtr) AS TotalAmountInTransactionCrcy
FROM I_PH_SuplrCustJournalCube
;