P_IN_StRpGSTAnnexCube
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)
| Source | Alias | Join Type |
|---|---|---|
| I_IN_GSTStateCodeMap | _StateCode | left_outer |
| P_IN_GSTRowColumnTrnsfmtn | P_IN_GSTRowColumnTrnsfmtn | from |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| P_CompanyCode | bukrs | |
| P_BusinessPlace | bupla | |
| P_StartDate | datum | |
| P_EndDate | datum | |
| P_IN_GSTRetType | abap.char( 8 ) |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
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