P_IN_StRpGSTAnnexCube

DDL: P_IN_STRPGSTANNEXCUBE SQL: PISTRPGSTANX Type: view COMPOSITE Package: GLO_FIN_IS_VAT_IN

Tax Item Details for GST Returns

P_IN_StRpGSTAnnexCube is a Composite CDS View that provides data about "Tax Item Details for GST Returns" in SAP S/4HANA. It reads from 2 data sources (I_IN_GSTStateCodeMap, P_IN_GSTRowColumnTrnsfmtn) and exposes 36 fields with key fields CompanyCode, AccountingDocument, FiscalYear. Part of development package GLO_FIN_IS_VAT_IN.

Data Sources (2)

SourceAliasJoin Type
I_IN_GSTStateCodeMap _StateCode left_outer
P_IN_GSTRowColumnTrnsfmtn P_IN_GSTRowColumnTrnsfmtn from

Parameters (5)

NameTypeDefault
P_CompanyCode bukrs
P_BusinessPlace bupla
P_StartDate datum
P_EndDate datum
P_IN_GSTRetType abap.char( 8 )

Annotations (11)

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

Fields (36)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode _TaxItem CompanyCode Receiver Company Code
KEY AccountingDocument _TaxItem AccountingDocument Journal Entry
KEY FiscalYear _TaxItem FiscalYear G/L Fiscal Year
TaxCode TaxCode Tax Code
TaxCalculationProcedure TaxCalculationProcedure Tax Procedure
TaxRate TaxRate Tax Rate
DocumentReferenceID DocumentReferenceID Reference
PostingDate PostingDate Posting Date for GR
TaxReportingDate TaxReportingDate Tax Reporting Date
ReportingDate ReportingDate
FiscalPeriod FiscalPeriod Tax period
IsReversal IsReversal Reversal doc.
IsReversed IsReversed Reversed?
InvoiceReference InvoiceReference Invoice Reference
InvoiceReferenceFiscalYear InvoiceReferenceFiscalYear Invoice Reference Fiscal Year
InvoiceItemReference InvoiceItemReference Item
FollowOnDocumentType FollowOnDocumentType Follow-On Document Type
IN_GSTPlaceOfSupply IN_GSTPlaceOfSupply Place of Supply
IN_HSNOrSACCode IN_HSNOrSACCode
Country _TaxItem Country Venue: Ctry/Reg
CustomerTaxClassification CustomerTaxClassification Tax Classific.
Customer Customer Sold-to Party
Supplier Supplier Supplier
SupplierName SupplierName Supplier Name
TaxItemGroup TaxItemGroup Tax doc. item number
IN_GSTDocumentType IN_GSTDocumentType
DebitCreditCode DebitCreditCode Single-Character Flag
BusinessPartnerName BusinessPartnerName Extracted Customer Name
BusinessPartner BusinessPartner Issuing Authority
TaxNumber3 TaxNumber3
DocumentDate DocumentDate Journal Entry Date
FinancialAccountType FinancialAccountType Fin. Account Type
CompanyCodeCurrency CompanyCodeCurrency Local Currency
BusinessPlace BusinessPlace Business place
IN_GSTLegalStateCode I_IN_GSTStateCodeMap IN_GSTLegalStateCode ITD State Code
curr232endasIN_TotalGSTAmtInCoCodeCrcy

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_StRpGSTAnnexCube.
-- 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: PISTRPGSTANX
-- Parameters: P_CompanyCode : bukrs, P_BusinessPlace : bupla, P_StartDate : datum, P_EndDate : datum, P_IN_GSTRetType : abap.char( 8 )

CREATE VIEW P_IN_StRpGSTAnnexCube AS
SELECT
  _TaxItem.CompanyCode AS CompanyCode,
  _TaxItem.AccountingDocument AS AccountingDocument,
  _TaxItem.FiscalYear AS FiscalYear,
  TaxCode,
  TaxCalculationProcedure,
  TaxRate,
  DocumentReferenceID,
  PostingDate,
  TaxReportingDate,
  ReportingDate,
  FiscalPeriod,
  IsReversal,
  IsReversed,
  InvoiceReference,
  InvoiceReferenceFiscalYear,
  InvoiceItemReference,
  FollowOnDocumentType,
  IN_GSTPlaceOfSupply,
  IN_HSNOrSACCode,
  _TaxItem.Country AS Country,
  CustomerTaxClassification,
  Customer,
  Supplier,
  SupplierName,
  TaxItemGroup,
  IN_GSTDocumentType,
  DebitCreditCode,
  BusinessPartnerName,
  BusinessPartner,
  TaxNumber3,
  DocumentDate,
  FinancialAccountType,
  CompanyCodeCurrency,
  BusinessPlace,
  _StateCode.IN_GSTLegalStateCode AS IN_GSTLegalStateCode,
  case when ( IN_IntegratedGSTAmount = 0.0 ) then cast ( ( abs(IN_CentralGSTAmount) + abs(IN_StateGSTAmount) + coalesce(abs(IN_StateCessAmount ),0))as abap.curr(23,2)) else cast ( ( abs( IN_IntegratedGSTAmount ) + coalesce(abs(IN_IntegratedCessAmount ),0))as abap.curr(23,2)) end as IN_TotalGSTAmtInCoCodeCrcy AS curr232endasIN_TotalGSTAmtInCoCodeCrcy
FROM P_IN_GSTRowColumnTrnsfmtn
LEFT OUTER JOIN I_IN_GSTStateCodeMap AS _StateCode ON /* join condition not captured in parsed metadata */
;