I_IN_GSTRetsSalesRegisterC

DDL: I_IN_GSTRETSSALESREGISTERC Type: view_entity COMPOSITE

India GSTR Sales Register - Cube

I_IN_GSTRetsSalesRegisterC is a Composite CDS View (Cube) that provides data about "India GSTR Sales Register - Cube" in SAP S/4HANA. It reads from 1 data source (I_IN_GSTRetsSlsRegDocument) and exposes 50 fields with key fields ElectronicDocUUID, TaxItem, TaxItemAcctgDocItemRef, IndianTaxConditionName. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_IN_GSTRetsSlsRegDocument I_IN_GSTRetsSlsRegDocument from

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_IN_GSTRetsSlsRegTaxItem _IN_GSTRetsSlsRegTaxItem _IN_GSTRetsSlsRegTaxItem.ElectronicDocUUID = I_IN_GSTRetsSlsRegDocument.ElectronicDocUUID and _IN_GSTRetsSlsRegTaxItem.CompanyCode = I_IN_GSTRetsSlsRegDocument.CompanyCode
[0..1] I_IN_OutgInvcTxAttrib _InvoiceTaxAttribute _InvoiceTaxAttribute.BillingDocument = I_IN_GSTRetsSlsRegDocument.BillingDocument

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label India GSTR Sales Register - Cube view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
Metadata.allowExtensions true view
Analytics.dataCategory #CUBE view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
Analytics.internalName #LOCAL view

Fields (50)

KeyFieldSource TableSource FieldDescription
KEY ElectronicDocUUID I_IN_GSTRetsSlsRegDocument ElectronicDocUUID
KEY TaxItem _IN_GSTRetsSlsRegTaxItem TaxItem Tax Item
KEY TaxItemAcctgDocItemRef _IN_GSTRetsSlsRegTaxItem TaxItemAcctgDocItemRef Tax doc. item number
KEY IndianTaxConditionName _IN_GSTRetsSlsRegTaxItem IndianTaxConditionName
CompanyCode I_IN_GSTRetsSlsRegDocument CompanyCode Receiver Company Code
AccountingDocument I_IN_GSTRetsSlsRegDocument AccountingDocument Journal Entry
FiscalYear I_IN_GSTRetsSlsRegDocument FiscalYear G/L Fiscal Year
BillingDocument I_IN_GSTRetsSlsRegDocument BillingDocument SD Document
TaxRate _IN_GSTRetsSlsRegTaxItem TaxRate Tax Rate
TaxRateInPercentAsText Tax Rate
IN_EDocEInvcExtNmbr I_IN_GSTRetsSlsRegDocument IN_EDocEInvcExtNmbr Invoice Number
ReportingDate I_IN_GSTRetsSlsRegDocument ReportingDate Tax Reporting Date
ElectronicDocProcessStatus I_IN_GSTRetsSlsRegDocument ElectronicDocProcessStatus Invoice status
IN_EDocEInvcEditActionFlag I_IN_GSTRetsSlsRegDocument IN_EDocEInvcEditActionFlag Deletion Indicator
InvoiceGrossAmount I_IN_GSTRetsSlsRegDocument InvoiceGrossAmount Invoice Gross Amount
CompanyCodeCurrency _IN_GSTRetsSlsRegTaxItem CompanyCodeCurrency Local Currency
ElectronicDocSourceType I_IN_GSTRetsSlsRegDocument ElectronicDocSourceType
Country I_IN_GSTRetsSlsRegDocument Country Venue: Ctry/Reg
IN_GSTPlaceOfSupply I_IN_GSTRetsSlsRegDocument IN_GSTPlaceOfSupply Place of Supply
IN_GSTPlaceOfSupplyName I_IN_GSTRetsSlsRegDocument IN_GSTPlaceOfSupplyName
IN_IsGSTReverseCharged I_IN_GSTRetsSlsRegDocument IN_IsGSTReverseCharged
IN_InvoiceType I_IN_GSTRetsSlsRegDocument IN_InvoiceType
IN_NoteType I_IN_GSTRetsSlsRegDocument IN_NoteType Note Type
IN_HasNilType I_IN_GSTRetsSlsRegDocument IN_HasNilType
00ashwbasendasIN_NilAmountInCoCodeCrcy Nil Amount
00ashwbasendasIN_ExpAmountInCoCodeCrcy Exempted Amount
00ashwbasendasTaxBaseAmountInCoCodeCrcy Taxable Amount
TaxAmountInCoCodeCrcy _IN_GSTRetsSlsRegTaxItem TaxAmountInCoCodeCrcy Tax Amount
IN_IntegratedGSTAmount _IN_GSTRetsSlsRegTaxItem IN_IntegratedGSTAmount Integrated GST Amount
IN_CentralGSTAmount _IN_GSTRetsSlsRegTaxItem IN_CentralGSTAmount Central GST Amount
IN_CessGSTAmtInCoCodeCrcy _IN_GSTRetsSlsRegTaxItem IN_CessGSTAmtInCoCodeCrcy Cess GST Amount
IN_StateGSTAmount _IN_GSTRetsSlsRegTaxItem IN_StateGSTAmount State GST Amount
IN_UnionGSTAmount _IN_GSTRetsSlsRegTaxItem IN_UnionGSTAmount Union GST Amount
00ashwbasendasIN_NetAdvanceAmount Advance Net Amount
TaxCalculationProcedure _IN_GSTRetsSlsRegTaxItem TaxCalculationProcedure Tax Calc. Procedure
IN_GSTNilType _IN_GSTRetsSlsRegTaxItem IN_GSTNilType
IN_GSTIdentificationNumber I_IN_GSTRetsSlsRegDocument IN_GSTIdentificationNumber Taxpayer GSTIN
IN_PrtnGSTIdentificationNmbr I_IN_GSTRetsSlsRegDocument IN_PrtnGSTIdentificationNmbr Counterparty GSTIN
BusinessPlace I_IN_GSTRetsSlsRegDocument BusinessPlace Business place
IN_DifferentialPercentageRate I_IN_GSTRetsSlsRegDocument IN_DifferentialPercentageRate
IN_HSNOrSACCode _IN_GSTRetsSlsRegTaxItem IN_HSNOrSACCode HSN/SAC Code
MaterialName _IN_GSTRetsSlsRegTaxItem MaterialName Material Description
SelectedValueIsExcluded _IN_GSTRetsSlsRegTaxItem SelectedValueIsExcluded Accounting Doc Excluded
Quantity _IN_GSTRetsSlsRegTaxItem Quantity Value
QuantityUnit _IN_GSTRetsSlsRegTaxItem QuantityUnit Unit of measure
IN_GSTUnitQuantityCode _IN_GSTRetsSlsRegTaxItem IN_GSTUnitQuantityCode
IN_EDocAmendmentDte _IN_GSTRetsSlsRegTaxItem IN_EDocAmendmentDte
IN_ShippingBillDate _InvoiceTaxAttribute IN_ShippingBillDate
IN_ShippingBillNumber _InvoiceTaxAttribute IN_ShippingBillNumber
IN_ShippingBillPortNumber _InvoiceTaxAttribute IN_ShippingBillPortNumber

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_IN_GSTRetsSalesRegisterC.
-- 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.

CREATE VIEW I_IN_GSTRetsSalesRegisterC AS
SELECT
  I_IN_GSTRetsSlsRegDocument.ElectronicDocUUID AS ElectronicDocUUID,
  _IN_GSTRetsSlsRegTaxItem.TaxItem AS TaxItem,
  _IN_GSTRetsSlsRegTaxItem.TaxItemAcctgDocItemRef AS TaxItemAcctgDocItemRef,
  _IN_GSTRetsSlsRegTaxItem.IndianTaxConditionName AS IndianTaxConditionName,
  I_IN_GSTRetsSlsRegDocument.CompanyCode AS CompanyCode,
  I_IN_GSTRetsSlsRegDocument.AccountingDocument AS AccountingDocument,
  I_IN_GSTRetsSlsRegDocument.FiscalYear AS FiscalYear,
  I_IN_GSTRetsSlsRegDocument.BillingDocument AS BillingDocument,
  _IN_GSTRetsSlsRegTaxItem.TaxRate AS TaxRate,
  cast(_IN_GSTRetsSlsRegTaxItem.TaxRate as abap.char(25) ) AS TaxRateInPercentAsText,
  I_IN_GSTRetsSlsRegDocument.IN_EDocEInvcExtNmbr AS IN_EDocEInvcExtNmbr,
  I_IN_GSTRetsSlsRegDocument.ReportingDate AS ReportingDate,
  I_IN_GSTRetsSlsRegDocument.ElectronicDocProcessStatus AS ElectronicDocProcessStatus,
  I_IN_GSTRetsSlsRegDocument.IN_EDocEInvcEditActionFlag AS IN_EDocEInvcEditActionFlag,
  I_IN_GSTRetsSlsRegDocument.InvoiceGrossAmount AS InvoiceGrossAmount,
  _IN_GSTRetsSlsRegTaxItem.CompanyCodeCurrency AS CompanyCodeCurrency,
  I_IN_GSTRetsSlsRegDocument.ElectronicDocSourceType AS ElectronicDocSourceType,
  I_IN_GSTRetsSlsRegDocument.Country AS Country,
  I_IN_GSTRetsSlsRegDocument.IN_GSTPlaceOfSupply AS IN_GSTPlaceOfSupply,
  I_IN_GSTRetsSlsRegDocument.IN_GSTPlaceOfSupplyName AS IN_GSTPlaceOfSupplyName,
  I_IN_GSTRetsSlsRegDocument.IN_IsGSTReverseCharged AS IN_IsGSTReverseCharged,
  I_IN_GSTRetsSlsRegDocument.IN_InvoiceType AS IN_InvoiceType,
  I_IN_GSTRetsSlsRegDocument.IN_NoteType AS IN_NoteType,
  I_IN_GSTRetsSlsRegDocument.IN_HasNilType AS IN_HasNilType,
  case when _IN_GSTRetsSlsRegTaxItem.IN_GSTNilType = 'NR' then _IN_GSTRetsSlsRegTaxItem.TaxBaseAmountInCoCodeCrcy else cast( 0.00 as hwbas) end as IN_NilAmountInCoCodeCrcy AS 00ashwbasendasIN_NilAmountInCoCodeCrcy,
  case when _IN_GSTRetsSlsRegTaxItem.IN_GSTNilType = 'EX' then _IN_GSTRetsSlsRegTaxItem.TaxBaseAmountInCoCodeCrcy else cast( 0.00 as hwbas) end as IN_ExpAmountInCoCodeCrcy AS 00ashwbasendasIN_ExpAmountInCoCodeCrcy,
  case when ( abs(_IN_GSTRetsSlsRegTaxItem.IN_CentralGSTAmount) > 0 or abs(_IN_GSTRetsSlsRegTaxItem.IN_IntegratedGSTAmount) > 0 or _IN_GSTRetsSlsRegTaxItem.IN_GSTNilType = 'NR'or _IN_GSTRetsSlsRegTaxItem.IN_GSTNilType = 'EX' or _IN_GSTRetsSlsRegTaxItem.IN_GSTNilType = 'NG' or I_IN_GSTRetsSlsRegDocument.IN_DocumentSectionCode = 'NIL' ) then _IN_GSTRetsSlsRegTaxItem.TaxBaseAmountInCoCodeCrcy else cast( 0.00 as hwbas) end as TaxBaseAmountInCoCodeCrcy AS 00ashwbasendasTaxBaseAmountInCoCodeCrcy,
  _IN_GSTRetsSlsRegTaxItem.TaxAmountInCoCodeCrcy AS TaxAmountInCoCodeCrcy,
  _IN_GSTRetsSlsRegTaxItem.IN_IntegratedGSTAmount AS IN_IntegratedGSTAmount,
  _IN_GSTRetsSlsRegTaxItem.IN_CentralGSTAmount AS IN_CentralGSTAmount,
  _IN_GSTRetsSlsRegTaxItem.IN_CessGSTAmtInCoCodeCrcy AS IN_CessGSTAmtInCoCodeCrcy,
  _IN_GSTRetsSlsRegTaxItem.IN_StateGSTAmount AS IN_StateGSTAmount,
  _IN_GSTRetsSlsRegTaxItem.IN_UnionGSTAmount AS IN_UnionGSTAmount,
  case when ( abs(_IN_GSTRetsSlsRegTaxItem.IN_CentralGSTAmount) > 0 or abs(_IN_GSTRetsSlsRegTaxItem.IN_IntegratedGSTAmount) > 0 ) then _IN_GSTRetsSlsRegTaxItem.IN_NetAdvanceAmount else cast( 0.00 as hwbas) end as IN_NetAdvanceAmount AS 00ashwbasendasIN_NetAdvanceAmount,
  _IN_GSTRetsSlsRegTaxItem.TaxCalculationProcedure AS TaxCalculationProcedure,
  _IN_GSTRetsSlsRegTaxItem.IN_GSTNilType AS IN_GSTNilType,
  I_IN_GSTRetsSlsRegDocument.IN_GSTIdentificationNumber AS IN_GSTIdentificationNumber,
  I_IN_GSTRetsSlsRegDocument.IN_PrtnGSTIdentificationNmbr AS IN_PrtnGSTIdentificationNmbr,
  I_IN_GSTRetsSlsRegDocument.BusinessPlace AS BusinessPlace,
  I_IN_GSTRetsSlsRegDocument.IN_DifferentialPercentageRate AS IN_DifferentialPercentageRate,
  _IN_GSTRetsSlsRegTaxItem.IN_HSNOrSACCode AS IN_HSNOrSACCode,
  _IN_GSTRetsSlsRegTaxItem.MaterialName AS MaterialName,
  _IN_GSTRetsSlsRegTaxItem.SelectedValueIsExcluded AS SelectedValueIsExcluded,
  _IN_GSTRetsSlsRegTaxItem.Quantity AS Quantity,
  _IN_GSTRetsSlsRegTaxItem.QuantityUnit AS QuantityUnit,
  _IN_GSTRetsSlsRegTaxItem.IN_GSTUnitQuantityCode AS IN_GSTUnitQuantityCode,
  _IN_GSTRetsSlsRegTaxItem.IN_EDocAmendmentDte AS IN_EDocAmendmentDte,
  _InvoiceTaxAttribute.IN_ShippingBillDate AS IN_ShippingBillDate,
  _InvoiceTaxAttribute.IN_ShippingBillNumber AS IN_ShippingBillNumber,
  _InvoiceTaxAttribute.IN_ShippingBillPortNumber AS IN_ShippingBillPortNumber
FROM I_IN_GSTRetsSlsRegDocument
LEFT OUTER JOIN I_IN_GSTRetsSlsRegTaxItem AS _IN_GSTRetsSlsRegTaxItem ON _IN_GSTRetsSlsRegTaxItem.ElectronicDocUUID = I_IN_GSTRetsSlsRegDocument.ElectronicDocUUID AND _IN_GSTRetsSlsRegTaxItem.CompanyCode = I_IN_GSTRetsSlsRegDocument.CompanyCode  -- association [0..*]
LEFT OUTER JOIN I_IN_OutgInvcTxAttrib AS _InvoiceTaxAttribute ON _InvoiceTaxAttribute.BillingDocument = I_IN_GSTRetsSlsRegDocument.BillingDocument  -- association [0..1]
;