C_PH_SuplrCustJournalQuery
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)
| Source | Alias | Join Type |
|---|---|---|
| I_PH_SuplrCustJournalCube | I_PH_SuplrCustJournalCube | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_CompanyCode | fis_bukrs | |
| P_FinancialAccountType | koart |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
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