I_VN_VATReturnGroupCube

DDL: I_VN_VATRETURNGROUPCUBE SQL: IVNVATRETGRPC Type: view_entity COMPOSITE Package: GLO_FIN_IS_VN_VAT_DECLARATION

Vietnam VAT Declaration Form - Cube

I_VN_VATReturnGroupCube is a Composite CDS View (Cube) that provides data about "Vietnam VAT Declaration Form - Cube" in SAP S/4HANA. It reads from 1 data source (I_StRpTaxReturnBoxCube) and exposes 84 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, TaxCode. Part of development package GLO_FIN_IS_VN_VAT_DECLARATION.

Data Sources (1)

SourceAliasJoin Type
I_StRpTaxReturnBoxCube I_StRpTaxReturnBoxCube from

Parameters (7)

NameTypeDefault
P_TaxIsDeferredRelevant figen_deferred_check
P_TaxIsMossRelevant figen_moss_check
P_StatryRptgEntity srf_reporting_entity
P_StatryRptCategory srf_rep_cat_id
P_StatryRptRunID srf_report_run_id
P_ReportingCountry land1
P_TaxBoxConfiguration figen_tdt_taxbox_config

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IVNVATRETGRPC view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Vietnam VAT Declaration Form - Cube view
VDM.viewType #COMPOSITE view
Analytics.dataCategory #CUBE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
Metadata.allowExtensions true view
Analytics.internalName #LOCAL view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view

Fields (84)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear G/L Fiscal Year
keyFiscalYear
KEY TaxItem TaxItem Tax Item
KEY TaxCode TaxCode Tax Code
KEY TransactionTypeDetermination TransactionTypeDetermination Transaction Key
KEY TaxBox TaxBox Tax.Bs.Gp.No.
KEY TaxGroup TaxGroup Tax Group
KEY Country Country Venue: Ctry/Reg
KEY TaxDeclnAmountType TaxDeclnAmountType
KEY TaxBoxStrucValidityStartDate TaxBoxStrucValidityStartDate
KEY UnifiedTaxBoxStructureType UnifiedTaxBoxStructureType
KEY StatryRptgEntity StatryRptgEntity Reporting Entity
KEY StatryRptCategory StatryRptCategory Report ID
KEY StatryRptRunID StatryRptRunID Report Run ID
StatryRptRun StatryRptRun
TaxBoxStructureType TaxBoxStructureType
TaxItemGroupingVersion TaxItemGroupingVersion Tax Grping Ver.
TaxBoxStrucValidityEndDate TaxBoxStrucValidityEndDate
DebitCreditCode DebitCreditCode Single-Character Flag
TaxCalculationProcedure TaxCalculationProcedure Tax Procedure
TaxRate TaxRate Tax Rate
Customer Customer Sold-to Party
GLAccount GLAccount General Ledger
BusinessPlace BusinessPlace Business place
AccountingDocumentType AccountingDocumentType Journal Entry Type
ReferenceDocumentType ReferenceDocumentType Reference Document Type
DocumentReferenceID DocumentReferenceID Reference
Ledger Ledger Ledger
LedgerGroup LedgerGroup Ledger Group
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
TaxReportingDate TaxReportingDate Tax Reporting Date
ReportingDate ReportingDate
TaxReportingDocumentDate TaxReportingDocumentDate
FiscalPeriod FiscalPeriod Tax period
IsReversal IsReversal Reversal doc.
IsReversed IsReversed Reversed?
AccountingDocumentHeaderText AccountingDocumentHeaderText Doc.Header Text
CompanyCodeCountry CompanyCodeCountry Reporting Ctry/Reg.
ReportingCountry ReportingCountry
TaxReturnCountry TaxReturnCountry Reporting C/R
TaxCountry TaxCountry Tax Ctry/Reg.
CompanyCodeCurrency CompanyCodeCurrency Local Currency
CountryCurrency CountryCurrency Currency
DocumentCurrency DocumentCurrency Document Currency
ReportingCurrency ReportingCurrency Currency
TaxBaseAmountInRptgCrcy TaxBaseAmountInRptgCrcy Tax Base Amount in Reporting Currency
AmountInReportingCurrency AmountInReportingCurrency Amount in Reporting Currency
TaxAmountInRptgCrcy TaxAmountInRptgCrcy Tax Rept. Crcy
TaxBaseAmountInCoCodeCrcy TaxBaseAmountInCoCodeCrcy TxBaseAmt CoCodeCrcy
TaxAmountInCoCodeCrcy TaxAmountInCoCodeCrcy Tax Amount in Company Code Currency
TaxBaseAmountInTransCrcy TaxBaseAmountInTransCrcy Value-Added Tax
TaxAmount TaxAmount Tax Amt in Rptg Crcy
TotalGrossAmountInCoCodeCrcy TotalGrossAmountInCoCodeCrcy Total Gross Amt In Comp. Code Currency
TotalGrossAmountInTransCrcy TotalGrossAmountInTransCrcy Total Gross Amount In Trans. Currency
TaxBaseAmountInCountryCrcy TaxBaseAmountInCountryCrcy Base Amount
TaxAmountInCountryCrcy TaxAmountInCountryCrcy Tax Rept. Crcy
TaxType TaxType Tax Type
BPTaxNumber BPTaxNumber Tax Number
ReportingVATRegistration Reporting VAT Number
TaxNumber1 TaxNumber1 VAT Reg. No.
TaxNumber2 TaxNumber2 Tax Number 2
TaxNumber3 TaxNumber3
TaxTypeName TaxTypeName
BusinessPartner BusinessPartner Issuing Authority
BusinessPartnerName BusinessPartnerName Extracted Customer Name
BusinessPartnerCountry BusinessPartnerCountry BP Ctry/Reg.
CustomerSupplierAddress
TaxIsNotDeductible TaxIsNotDeductible Non-Deductible
IsVATRelevant IsVATRelevant VAT on int.mat.
TaxIsDeferredRelevant TaxIsDeferredRelevant
TaxIsMossRelevant TaxIsMossRelevant
TaxBoxStructure TaxBoxStructure
TaxBoxStructureName TaxBoxStructureName
TaxBoxName TaxBoxName
TaxBoxCondition TaxBoxCondition
SupplierAccountGroup SupplierAccountGroup Account group
TaxBoxAggregationOperation TaxBoxAggregationOperation
IsNegativePosting IsNegativePosting Negative Posting
TaxGroupOperation
TaxCntryOrCompanyCodeCntry TaxCntryOrCompanyCodeCntry
_TaxTypeText _TaxTypeText

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_VN_VATReturnGroupCube.
-- 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: IVNVATRETGRPC
-- Parameters: P_TaxIsDeferredRelevant : figen_deferred_check, P_TaxIsMossRelevant : figen_moss_check, P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id, P_ReportingCountry : land1, P_TaxBoxConfiguration : figen_tdt_taxbox_config

CREATE VIEW I_VN_VATReturnGroupCube AS
SELECT
  CompanyCode,
  AccountingDocument,
  cast (FiscalYear as numc4 ) AS FiscalYear,
  TaxItem,
  TaxCode,
  TransactionTypeDetermination,
  TaxBox,
  TaxGroup,
  Country,
  TaxDeclnAmountType,
  TaxBoxStrucValidityStartDate,
  UnifiedTaxBoxStructureType,
  StatryRptgEntity,
  StatryRptCategory,
  StatryRptRunID,
  StatryRptRun,
  TaxBoxStructureType,
  TaxItemGroupingVersion,
  TaxBoxStrucValidityEndDate,
  DebitCreditCode,
  TaxCalculationProcedure,
  TaxRate,
  Customer,
  GLAccount,
  BusinessPlace,
  AccountingDocumentType,
  ReferenceDocumentType,
  DocumentReferenceID,
  Ledger,
  LedgerGroup,
  PostingDate,
  DocumentDate,
  TaxReportingDate,
  ReportingDate,
  TaxReportingDocumentDate,
  FiscalPeriod,
  IsReversal,
  IsReversed,
  AccountingDocumentHeaderText,
  CompanyCodeCountry,
  ReportingCountry,
  TaxReturnCountry,
  TaxCountry,
  CompanyCodeCurrency,
  CountryCurrency,
  DocumentCurrency,
  ReportingCurrency,
  TaxBaseAmountInRptgCrcy,
  AmountInReportingCurrency,
  TaxAmountInRptgCrcy,
  TaxBaseAmountInCoCodeCrcy,
  TaxAmountInCoCodeCrcy,
  TaxBaseAmountInTransCrcy,
  TaxAmount,
  TotalGrossAmountInCoCodeCrcy,
  TotalGrossAmountInTransCrcy,
  TaxBaseAmountInCountryCrcy,
  TaxAmountInCountryCrcy,
  TaxType,
  BPTaxNumber,
  cast (ReportingVATRegistration as stceg) AS ReportingVATRegistration,
  TaxNumber1,
  TaxNumber2,
  TaxNumber3,
  TaxTypeName,
  BusinessPartner,
  BusinessPartnerName,
  BusinessPartnerCountry,
  TaxIsNotDeductible,
  IsVATRelevant,
  TaxIsDeferredRelevant,
  TaxIsMossRelevant,
  TaxBoxStructure,
  TaxBoxStructureName,
  TaxBoxName,
  TaxBoxCondition,
  SupplierAccountGroup,
  TaxBoxAggregationOperation,
  IsNegativePosting,
  TaxCntryOrCompanyCodeCntry
FROM I_StRpTaxReturnBoxCube
;