I_ID_PricingElementsGroupCube

DDL: I_ID_PRICINGELEMENTSGROUPCUBE SQL: IIDPRICEGCUBE Type: view COMPOSITE

ID Pricing Element - Cube

I_ID_PricingElementsGroupCube is a Composite CDS View (Cube) that provides data about "ID Pricing Element - Cube" in SAP S/4HANA. It reads from 2 data sources (I_StRpTaxItemBoxConfiguration, P_ID_StRpTaxItemFromBilling) and exposes 43 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, TaxCode.

Data Sources (2)

SourceAliasJoin Type
I_StRpTaxItemBoxConfiguration I_StRpTaxItemBoxConfiguration left_outer
P_ID_StRpTaxItemFromBilling P_ID_StRpTaxItemFromBilling from

Parameters (2)

NameTypeDefault
P_CompanyCode fis_bukrs
P_FiscalYear gjahr

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName IIDPRICEGCUBE view
VDM.viewType #COMPOSITE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
Analytics.dataCategory #CUBE view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
Metadata.allowExtensions true view
AbapCatalog.preserveKey true view
Analytics.internalName #LOCAL view
EndUserText.label ID Pricing Element - Cube view

Fields (43)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY TaxItem TaxItem Tax Item
KEY TaxCode P_ID_StRpTaxItemFromBilling TaxCode Tax Code
KEY TransactionTypeDetermination P_ID_StRpTaxItemFromBilling TransactionTypeDetermination Transaction Key
KEY TaxBox TaxBox Tax.Bs.Gp.No.
KEY TaxDeclnAmountType TaxDeclnAmountType
KEY TaxItemGroupingVersion TaxItemGroupingVersion Tax Grping Ver.
KEY UnifiedTaxBoxStructureType TaxBoxStructureType
KEY TaxGroup TaxGroup Tax Group
KEY BillingDocument P_ID_StRpTaxItemFromBilling BillingDocument SD Document
KEY BillingDocumentItem BillingDocumentItem Item
KEY Material Material Vehicle Model
KEY TaxBoxStrucValidityStartDate TaxBoxStrucValidityStartDate
TaxBoxStrucValidityEndDate TaxBoxStrucValidityEndDate
BillingQuantity BillingQuantity Invoiced Qty
BillingQuantityUnit BillingQuantityUnit Sales Unit
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
TaxRateValidityStartDate I_StRpTaxItemGrpg TaxRateValidityStartDate Tax Rate Validity Start Date
Ledger Ledger Ledger
TaxReportingDate P_ID_StRpTaxItemFromBilling TaxReportingDate Tax Reporting Date
BusinessPlace P_ID_StRpTaxItemFromBilling BusinessPlace Business place
Customer P_ID_StRpTaxItemFromBilling Customer Sold-to Party
BillingDocumentItemText P_ID_StRpTaxItemFromBilling BillingDocumentItemText Item Descr.
BillingDocumentType P_ID_StRpTaxItemFromBilling BillingDocumentType Billing Type
SalesOrganization P_ID_StRpTaxItemFromBilling SalesOrganization Sales Organization
char35asDCoDocumentReference
AccrualTransactionType
CharcStatus
NetAmount P_ID_StRpTaxItemFromBilling NetAmount Stated Amount
GrossAmount P_ID_StRpTaxItemFromBilling GrossAmount Gross value
Subtotal1Amount P_ID_StRpTaxItemFromBilling Subtotal1Amount Subtotal 1 Amount
Subtotal2Amount P_ID_StRpTaxItemFromBilling Subtotal2Amount Subtotal 2 Amount
Subtotal3Amount P_ID_StRpTaxItemFromBilling Subtotal3Amount Subtotal 3 Amount
Subtotal4Amount P_ID_StRpTaxItemFromBilling Subtotal4Amount Subtotal 4 Amount
Subtotal5Amount P_ID_StRpTaxItemFromBilling Subtotal5Amount Subtotal 5 Amount
Subtotal6Amount P_ID_StRpTaxItemFromBilling Subtotal6Amount Subtotal 6 Amount
CompanyCodeCurrency CompanyCodeCurrency Local Currency
TaxRateendasTaxRate
TaxRateendasLuxuryTaxRate
TaxAmountinTransCrcyendendasLuxuryTaxAmt

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 I_ID_PricingElementsGroupCube.
-- 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: IIDPRICEGCUBE
-- Parameters: P_CompanyCode : fis_bukrs, P_FiscalYear : gjahr

CREATE VIEW I_ID_PricingElementsGroupCube AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  TaxItem,
  P_ID_StRpTaxItemFromBilling.TaxCode AS TaxCode,
  P_ID_StRpTaxItemFromBilling.TransactionTypeDetermination AS TransactionTypeDetermination,
  TaxBox,
  TaxDeclnAmountType,
  TaxItemGroupingVersion,
  TaxBoxStructureType AS UnifiedTaxBoxStructureType,
  TaxGroup,
  P_ID_StRpTaxItemFromBilling.BillingDocument AS BillingDocument,
  BillingDocumentItem,
  Material,
  TaxBoxStrucValidityStartDate,
  TaxBoxStrucValidityEndDate,
  BillingQuantity,
  BillingQuantityUnit,
  PostingDate,
  DocumentDate,
  I_StRpTaxItemGrpg.TaxRateValidityStartDate AS TaxRateValidityStartDate,
  Ledger,
  P_ID_StRpTaxItemFromBilling.TaxReportingDate AS TaxReportingDate,
  P_ID_StRpTaxItemFromBilling.BusinessPlace AS BusinessPlace,
  P_ID_StRpTaxItemFromBilling.Customer AS Customer,
  P_ID_StRpTaxItemFromBilling.BillingDocumentItemText AS BillingDocumentItemText,
  P_ID_StRpTaxItemFromBilling.BillingDocumentType AS BillingDocumentType,
  P_ID_StRpTaxItemFromBilling.SalesOrganization AS SalesOrganization,
  cast(case when P_ID_StRpTaxItemFromBilling.DocumentReferenceID != '' then P_ID_StRpTaxItemFromBilling.DocumentReferenceID else AccountingDocument end as abap.char(35)) as DCoDocumentReference AS char35asDCoDocumentReference,
  substring(P_ID_StRpTaxItemFromBilling.DocumentReferenceID, 1, 2) AS AccrualTransactionType,
  substring(P_ID_StRpTaxItemFromBilling.DocumentReferenceID, 3, 1) AS CharcStatus,
  P_ID_StRpTaxItemFromBilling.NetAmount AS NetAmount,
  P_ID_StRpTaxItemFromBilling.GrossAmount AS GrossAmount,
  P_ID_StRpTaxItemFromBilling.Subtotal1Amount AS Subtotal1Amount,
  P_ID_StRpTaxItemFromBilling.Subtotal2Amount AS Subtotal2Amount,
  P_ID_StRpTaxItemFromBilling.Subtotal3Amount AS Subtotal3Amount,
  P_ID_StRpTaxItemFromBilling.Subtotal4Amount AS Subtotal4Amount,
  P_ID_StRpTaxItemFromBilling.Subtotal5Amount AS Subtotal5Amount,
  P_ID_StRpTaxItemFromBilling.Subtotal6Amount AS Subtotal6Amount,
  CompanyCodeCurrency,
  case when TaxBox = 'VAT_OUT_TAX' and P_T007B_GLO.stgrp = '1' then P_ID_StRpTaxItemFromBilling.TaxRate end as TaxRate AS TaxRateendasTaxRate,
  case when TaxBox = 'VAT_OUT_LUX' and P_T007B_GLO.stgrp = '3' then P_ID_StRpTaxItemFromBilling.TaxRate end as LuxuryTaxRate AS TaxRateendasLuxuryTaxRate,
  case when TaxBox = 'VAT_OUT_LUX' and P_T007B_GLO.stgrp = '3' then case when P_ID_StRpTaxItemFromBilling.TaxAmountinTransCrcy is initial then round(P_ID_StRpTaxItemFromBilling.NetAmount * division(P_ID_StRpTaxItemFromBilling.TaxRate,100,2), 2) else P_ID_StRpTaxItemFromBilling.TaxAmountinTransCrcy end end as LuxuryTaxAmt AS TaxAmountinTransCrcyendendasLuxuryTaxAmt
FROM P_ID_StRpTaxItemFromBilling
LEFT OUTER JOIN I_StRpTaxItemBoxConfiguration ON /* join condition not captured in parsed metadata */
;