P_IN_GST_TAXITEMRATE

DDL: P_IN_GST_TAXITEMRATE SQL: PINGSTTAXRATE Type: view COMPOSITE

P_IN_GST_TAXITEMRATE is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_TaxDefCondType, I_StRpTaxItem) and exposes 6 fields with key fields CompanyCode, AccountingDocument, FiscalYear.

Data Sources (2)

SourceAliasJoin Type
I_TaxDefCondType _CndnName left_outer
I_StRpTaxItem I_StRpTaxItem from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PINGSTTAXRATE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #COMPOSITE view
VDM.private true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_StRpTaxItem CompanyCode Receiver Company Code
KEY AccountingDocument I_StRpTaxItem AccountingDocument Journal Entry
KEY FiscalYear I_StRpTaxItem FiscalYear G/L Fiscal Year
TaxItemGroup I_StRpTaxItem TaxItemGroup Tax doc. item number
IndianTaxConditionName I_TaxDefCondType IndianTaxConditionName Condition Name
TaxRate2endasTaxRate

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 P_IN_GST_TAXITEMRATE.
-- 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: PINGSTTAXRATE

CREATE VIEW P_IN_GST_TAXITEMRATE AS
SELECT
  I_StRpTaxItem.CompanyCode AS CompanyCode,
  I_StRpTaxItem.AccountingDocument AS AccountingDocument,
  I_StRpTaxItem.FiscalYear AS FiscalYear,
  I_StRpTaxItem.TaxItemGroup AS TaxItemGroup,
  _CndnName.IndianTaxConditionName AS IndianTaxConditionName,
  case when _CndnName.IndianTaxConditionName = 'IGSTAR' or _CndnName.IndianTaxConditionName = 'IGSTINVAP' or _CndnName.IndianTaxConditionName = 'IGSTSOFFAP' or _CndnName.IndianTaxConditionName = 'IGSTIMPAP' or _CndnName.IndianTaxConditionName = 'IGSTRCMINV' or _CndnName.IndianTaxConditionName = 'IGSTNVIMAP' then I_StRpTaxItem.TaxRate when _CndnName.IndianTaxConditionName = 'CGSTAR' or _CndnName.IndianTaxConditionName = 'CGSTINVAP' or _CndnName.IndianTaxConditionName = 'CGSTSOFFAP' or _CndnName.IndianTaxConditionName = 'CGSTRCMINV' then I_StRpTaxItem.TaxRate * 2 end as TaxRate AS TaxRate2endasTaxRate
FROM I_StRpTaxItem
LEFT OUTER JOIN I_TaxDefCondType AS _CndnName ON /* join condition not captured in parsed metadata */
;