I_IN_GSTRetsSlsRegDocument
India GSTR Sales Register Document
I_IN_GSTRetsSlsRegDocument is a Composite CDS View that provides data about "India GSTR Sales Register Document" in SAP S/4HANA. It reads from 3 data sources (I_IN_BusinessPlace, P_IN_EDocSalesRegister, P_IN_EDocSalesRegister) and exposes 76 fields with key field ElectronicDocUUID. It has 4 associations to related views. Part of development package GLO_FIN_GST_IN.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_IN_BusinessPlace | I_IN_BusinessPlace | inner |
| P_IN_EDocSalesRegister | P_IN_EDocSalesRegister | from |
| P_IN_EDocSalesRegister | P_IN_EDocSalesRegister | union_all |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..*] | I_IN_GSTRetsSlsRegTaxItem | _GSTRetsSlsRegTaxItem | _GSTRetsSlsRegTaxItem.ElectronicDocUUID = $projection.ElectronicDocUUID |
| [0..1] | I_JournalEntryOneTimeAccount | _JournalEntryOneTimeAcc | _JournalEntryOneTimeAcc.CompanyCode = P_IN_EDocSalesRegister.ElectronicDocCompanyCode and _JournalEntryOneTimeAcc.AccountingDocument = P_IN_EDocSalesRegister.AccountingDocument and _JournalEntryOneTimeAcc.FiscalYear = P_IN_EDocSalesRegister.FiscalYear |
| [0..1] | I_JournalEntry | _JournalEntry | _JournalEntry.CompanyCode = P_IN_EDocSalesRegister.ElectronicDocCompanyCode and _JournalEntry.AccountingDocument = I_BillingDocumentBasic.AccountingDocument and _JournalEntry.FiscalYear = I_BillingDocumentBasic.FiscalYear |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | India GSTR Sales Register Document | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (76)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ElectronicDocUUID | P_IN_EDocSalesRegister | ElectronicDocUUID | |
| ElectronicDocSourceKey | P_IN_EDocSalesRegister | ElectronicDocSourceKey | ||
| CompanyCode | P_IN_EDocSalesRegister | ElectronicDocCompanyCode | ||
| ReportingCountry | P_IN_EDocSalesRegister | ReportingCountry | ||
| AccountingDocument | P_IN_EDocSalesRegister | AccountingDocument | Journal Entry | |
| FiscalYear | P_IN_EDocSalesRegister | FiscalYear | G/L Fiscal Year | |
| BillingDocument | P_IN_EDocSalesRegister | BillingDocument | SD Document | |
| IN_DocumentSectionCode | P_IN_EDocSalesRegister | IN_DocumentSectionCode | ||
| IN_EDocEInvcExtNmbr | P_IN_EDocSalesRegister | IN_EDocEInvcExtNmbr | ||
| ReportingDate | P_IN_EDocSalesRegister | TaxReportingDate | Tax Reporting Date | |
| ElectronicDocProcessStatus | P_IN_EDocSalesRegister | ElectronicDocProcessStatus | ||
| ElectronicDocProcess | P_IN_EDocSalesRegister | ElectronicDocProcess | ||
| IN_EDocEInvcEditActionFlag | P_IN_EDocSalesRegister | IN_EDocEInvcEditActionFlag | ||
| InvoiceGrossAmount | ||||
| GrossAmount | ||||
| CompanyCodeCurrency | P_IN_GSTRetsSlsDocValue | CompanyCodeCurrency | Local Currency | |
| ElectronicDocSourceType | P_IN_EDocSalesRegister | ElectronicDocSourceType | ||
| BusinessPlace | P_IN_EDocSalesRegister | IN_EDocEInvcBusinessPlace | ||
| IN_GSTPlaceOfSupply | P_IN_EDocSalesRegister | IN_GSTPlaceOfSupply | Place of Supply | |
| IN_GSTPlaceOfSupplyName | P_IN_EDocSalesRegister | IN_GSTPlaceOfSupplyName | ||
| IN_IsGSTReverseCharged | P_IN_EDocSalesRegister | IN_IsGSTReverseCharged | ||
| IN_DifferentialPercentageRate | P_IN_EDocSalesRegister | IN_DifferentialPercentageRate | ||
| IN_NoteType | P_IN_EDocSalesRegister | IN_NoteType | ||
| IN_HasNilType | P_IN_EDocSalesRegister | IN_HasNilType | ||
| AddressNumber | P_IN_EDocSalesRegister | AddressNumber | Src Address No | |
| IN_GSTPartner | P_IN_EDocSalesRegister | BusinessPartner | Issuing Authority | |
| IN_InvoiceType | P_IN_EDocSalesRegister | IN_InvoiceType | ||
| Country | _CompanyCode | Country | Venue: Ctry/Reg | |
| IN_GSTIdentificationNumber | P_IN_EDocSalesRegister | IN_GSTIdentificationNumber | Taxpayer GSTIN | |
| IN_PrtnGSTIdentificationNmbr | ||||
| BusinessPartnerFullName | P_IN_EDocSalesRegister | BusinessPartnerFullName | Broker Name | |
| ReconciliationStatus | ||||
| _GSTRetsSlsRegTaxItem | _GSTRetsSlsRegTaxItem | |||
| _BusPartAddrDepdntTaxNmbr | P_IN_EDocSalesRegister | _BusPartAddrDepdntTaxNmbr | ||
| _IN_ElectronicDocInvoice | P_IN_EDocSalesRegister | _IN_ElectronicDocInvoice | ||
| _CompanyCode | _CompanyCode | |||
| _ElectronicDocEInvc | P_IN_EDocSalesRegister | _ElectronicDocEInvc | ||
| _ElectronicDocEWbill | P_IN_EDocSalesRegister | _ElectronicDocEWbill | ||
| _JournalEntry | P_IN_EDocSalesRegister | _JournalEntry | ||
| ElectronicDocUUID | ||||
| ElectronicDocSourceKey | P_IN_EDocSalesRegister | ElectronicDocSourceKey | ||
| CompanyCode | P_IN_EDocSalesRegister | ElectronicDocCompanyCode | ||
| ReportingCountry | P_IN_EDocSalesRegister | ReportingCountry | ||
| AccountingDocument | I_BillingDocumentBasic | AccountingDocument | Journal Entry | |
| FiscalYear | I_BillingDocumentBasic | FiscalYear | G/L Fiscal Year | |
| BillingDocument | P_IN_EDocSalesRegister | BillingDocument | SD Document | |
| IN_DocumentSectionCode | P_IN_EDocSalesRegister | IN_DocumentSectionCode | ||
| IN_EDocEInvcExtNmbr | P_IN_EDocSalesRegister | IN_EDocEInvcExtNmbr | ||
| ReportingDate | P_IN_EDocSalesRegister | TaxReportingDate | Tax Reporting Date | |
| ElectronicDocProcessStatus | P_IN_EDocSalesRegister | ElectronicDocProcessStatus | ||
| ElectronicDocProcess | P_IN_EDocSalesRegister | ElectronicDocProcess | ||
| IN_EDocEInvcEditActionFlag | P_IN_EDocSalesRegister | IN_EDocEInvcEditActionFlag | ||
| ElectronicDocSourceType | P_IN_EDocSalesRegister | ElectronicDocSourceType | ||
| BusinessPlace | P_IN_EDocSalesRegister | IN_EDocEInvcBusinessPlace | ||
| IN_GSTPlaceOfSupply | P_IN_EDocSalesRegister | IN_GSTPlaceOfSupply | Place of Supply | |
| IN_GSTPlaceOfSupplyName | P_IN_EDocSalesRegister | IN_GSTPlaceOfSupplyName | ||
| IN_IsGSTReverseCharged | P_IN_EDocSalesRegister | IN_IsGSTReverseCharged | ||
| IN_DifferentialPercentageRate | P_IN_EDocSalesRegister | IN_DifferentialPercentageRate | ||
| IN_NoteType | P_IN_EDocSalesRegister | IN_NoteType | ||
| IN_HasNilType | P_IN_EDocSalesRegister | IN_HasNilType | ||
| AddressNumber | P_IN_EDocSalesRegister | AddressNumber | Src Address No | |
| IN_GSTPartner | P_IN_EDocSalesRegister | BusinessPartner | Issuing Authority | |
| IN_InvoiceType | P_IN_EDocSalesRegister | IN_InvoiceType | ||
| Country | _CompanyCode | Country | Venue: Ctry/Reg | |
| IN_GSTIdentificationNumber | P_IN_EDocSalesRegister | IN_GSTIdentificationNumber | Taxpayer GSTIN | |
| IN_PrtnGSTIdentificationNmbr | ||||
| BusinessPartnerFullName | P_IN_EDocSalesRegister | BusinessPartnerFullName | Broker Name | |
| ReconciliationStatus | ||||
| _GSTRetsSlsRegTaxItem | _GSTRetsSlsRegTaxItem | |||
| _BusPartAddrDepdntTaxNmbr | P_IN_EDocSalesRegister | _BusPartAddrDepdntTaxNmbr | ||
| _IN_ElectronicDocInvoice | P_IN_EDocSalesRegister | _IN_ElectronicDocInvoice | ||
| _CompanyCode | _CompanyCode | |||
| _ElectronicDocEInvc | P_IN_EDocSalesRegister | _ElectronicDocEInvc | ||
| _ElectronicDocEWbill | P_IN_EDocSalesRegister | _ElectronicDocEWbill | ||
| _JournalEntry | _JournalEntry | |||
| IN_EDocAmendmentDte | P_IN_EDocSalesRegister | IN_EDocAmendmentDte |
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_GSTRetsSlsRegDocument.
-- 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_GSTRetsSlsRegDocument AS
SELECT
P_IN_EDocSalesRegister.ElectronicDocUUID AS ElectronicDocUUID,
P_IN_EDocSalesRegister.ElectronicDocSourceKey AS ElectronicDocSourceKey,
P_IN_EDocSalesRegister.ElectronicDocCompanyCode AS CompanyCode,
P_IN_EDocSalesRegister.ReportingCountry AS ReportingCountry,
P_IN_EDocSalesRegister.AccountingDocument AS AccountingDocument,
P_IN_EDocSalesRegister.FiscalYear AS FiscalYear,
P_IN_EDocSalesRegister.BillingDocument AS BillingDocument,
P_IN_EDocSalesRegister.IN_DocumentSectionCode AS IN_DocumentSectionCode,
P_IN_EDocSalesRegister.IN_EDocEInvcExtNmbr AS IN_EDocEInvcExtNmbr,
P_IN_EDocSalesRegister.TaxReportingDate AS ReportingDate,
P_IN_EDocSalesRegister.ElectronicDocProcessStatus AS ElectronicDocProcessStatus,
P_IN_EDocSalesRegister.ElectronicDocProcess AS ElectronicDocProcess,
P_IN_EDocSalesRegister.IN_EDocEInvcEditActionFlag AS IN_EDocEInvcEditActionFlag,
cast(abs( P_IN_GSTRetsSlsDocValue.TaxAmountInCoCodeCrcy + P_IN_GSTRetsSlsDocValue.TaxBaseAmountInCoCodeCrcy) as hwbas ) AS InvoiceGrossAmount,
cast((P_IN_GSTRetsSlsDocValue.TaxAmountInCoCodeCrcy + P_IN_GSTRetsSlsDocValue.TaxBaseAmountInCoCodeCrcy) as hwbas ) AS GrossAmount,
P_IN_GSTRetsSlsDocValue.CompanyCodeCurrency AS CompanyCodeCurrency,
P_IN_EDocSalesRegister.ElectronicDocSourceType AS ElectronicDocSourceType,
P_IN_EDocSalesRegister.IN_EDocEInvcBusinessPlace AS BusinessPlace,
P_IN_EDocSalesRegister.IN_GSTPlaceOfSupply AS IN_GSTPlaceOfSupply,
P_IN_EDocSalesRegister.IN_GSTPlaceOfSupplyName AS IN_GSTPlaceOfSupplyName,
P_IN_EDocSalesRegister.IN_IsGSTReverseCharged AS IN_IsGSTReverseCharged,
P_IN_EDocSalesRegister.IN_DifferentialPercentageRate AS IN_DifferentialPercentageRate,
P_IN_EDocSalesRegister.IN_NoteType AS IN_NoteType,
P_IN_EDocSalesRegister.IN_HasNilType AS IN_HasNilType,
P_IN_EDocSalesRegister.AddressNumber AS AddressNumber,
P_IN_EDocSalesRegister.BusinessPartner AS IN_GSTPartner,
P_IN_EDocSalesRegister.IN_InvoiceType AS IN_InvoiceType,
_CompanyCode.Country AS Country,
P_IN_EDocSalesRegister.IN_GSTIdentificationNumber AS IN_GSTIdentificationNumber,
coalesce(P_IN_EDocSalesRegister.IN_PrtnGSTIdentificationNmbr,_JournalEntryOneTimeAcc.TaxID3) AS IN_PrtnGSTIdentificationNmbr,
P_IN_EDocSalesRegister.BusinessPartnerFullName AS BusinessPartnerFullName,
'' AS ReconciliationStatus,
P_IN_EDocSalesRegister._BusPartAddrDepdntTaxNmbr AS _BusPartAddrDepdntTaxNmbr,
P_IN_EDocSalesRegister._IN_ElectronicDocInvoice AS _IN_ElectronicDocInvoice,
P_IN_EDocSalesRegister._ElectronicDocEInvc AS _ElectronicDocEInvc,
P_IN_EDocSalesRegister._ElectronicDocEWbill AS _ElectronicDocEWbill,
P_IN_EDocSalesRegister._JournalEntry AS _JournalEntry,
P_IN_EDocSalesRegister.IN_EDocAmendmentDte AS IN_EDocAmendmentDte
FROM P_IN_EDocSalesRegister
INNER JOIN I_IN_BusinessPlace ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_IN_GSTRetsSlsRegTaxItem AS _GSTRetsSlsRegTaxItem ON _GSTRetsSlsRegTaxItem.ElectronicDocUUID = ElectronicDocUUID -- association [0..*]
LEFT OUTER JOIN I_JournalEntryOneTimeAccount AS _JournalEntryOneTimeAcc ON _JournalEntryOneTimeAcc.CompanyCode = P_IN_EDocSalesRegister.ElectronicDocCompanyCode AND _JournalEntryOneTimeAcc.AccountingDocument = P_IN_EDocSalesRegister.AccountingDocument AND _JournalEntryOneTimeAcc.FiscalYear = P_IN_EDocSalesRegister.FiscalYear -- association [0..1]
LEFT OUTER JOIN I_JournalEntry AS _JournalEntry ON _JournalEntry.CompanyCode = P_IN_EDocSalesRegister.ElectronicDocCompanyCode AND _JournalEntry.AccountingDocument = I_BillingDocumentBasic.AccountingDocument AND _JournalEntry.FiscalYear = I_BillingDocumentBasic.FiscalYear -- association [0..1]
-- UNION ALL with additional select branch(es): P_IN_EDocSalesRegister
;
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