Deprecated
This CDS view is deprecated in S/4HANA. Use <P_EG_StRpTaxLineItem> instead. View all deprecated CDS views →

C_AccountingVATReturnDocItem

DDL: C_ACCOUNTINGVATRETURNDOCITEM SQL: CACVATRETDOCITM Type: view CONSUMPTION Package: GLO_FIN_VAT_MENA

To get details of Acct VAT Return Docs

C_AccountingVATReturnDocItem is a Consumption CDS View that provides data about "To get details of Acct VAT Return Docs" in SAP S/4HANA. It reads from 1 data source (P_AccountingVATReturnDocItem) and exposes 56 fields with key fields StatryRptgEntity, StatryRptCategory, StatryRptRunID, CompanyCode, AccountingDocument. It has 2 associations to related views. Part of development package GLO_FIN_VAT_MENA.

Data Sources (1)

SourceAliasJoin Type
P_AccountingVATReturnDocItem P_AccountingVATReturnDocItem from

Parameters (3)

NameTypeDefault
P_StatryRptgEntity srf_reporting_entity
P_StatryRptCategory srf_rep_cat_id
P_StatryRptRunID srf_report_run_id

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_Product _Product $projection.Material = _Product.Product
[0..*] I_ProductDescription _ProductText $projection.Material = _ProductText.Product

Annotations (13)

NameValueLevelField
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor <P_EG_StRpTaxLineItem> view
AbapCatalog.sqlViewName CACVATRETDOCITM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label To get details of Acct VAT Return Docs view

Fields (56)

KeyFieldSource TableSource FieldDescription
KEY StatryRptgEntity _Item StatryRptgEntity Reporting Entity
KEY StatryRptCategory _Item StatryRptCategory Report ID
KEY StatryRptRunID _Item StatryRptRunID Report Run ID
KEY CompanyCode _Item CompanyCode Receiver Company Code
KEY AccountingDocument _Item AccountingDocument Journal Entry
KEY FiscalYear _Item FiscalYear G/L Fiscal Year
KEY AccountingDocumentItem _Item AccountingDocumentItem Posting View Item
DocumentItemNumber
TaxCode _Item TaxCode Tax Code
TaxItemGroup _Item TaxItemGroup Tax doc. item number
AccountingDocumentType _Item AccountingDocumentType Journal Entry Type
AccountingDocumentItemType _Item AccountingDocumentItemType Line Item ID
ReferenceDocumentType _Item ReferenceDocumentType Reference Document Type
TransactionTypeDetermination _Item TransactionTypeDetermination Transaction Key
PostingKey _Item PostingKey Posting Key
DebitCreditCode _Item DebitCreditCode Single-Character Flag
GLAccount _Item GLAccount General Ledger
FinancialAccountType _Item FinancialAccountType Fin. Account Type
AccountType _Item FinancialAccountType Fin. Account Type
FiscalPeriod _Item FiscalPeriod Tax period
ReportingDate _Item ReportingDate
PostingDate _Item PostingDate Posting Date for GR
DocumentDate _Item DocumentDate Journal Entry Date
DocumentCurrency _Item DocumentCurrency Document Currency
CompanyCodeCurrency _Item CompanyCodeCurrency Local Currency
ReportingCurrency _Item ReportingCurrency Currency
DebitCreditCodeIsChanged _Item DebitCreditCodeIsChanged
CountryCurrency _Item CountryCurrency Currency
AdditionalCurrency1 _Item AdditionalCurrency1 Local curr. 2
AdditionalCurrency2 _Item AdditionalCurrency2 Local curr. 3
Material _Item Material Vehicle Model
DocumentItemText _Item DocumentItemText Text
QuantityInActlPostg _Item QuantityInActlPostg
QuantityUnit _Item QuantityUnit Unit of measure
TaxRate _Item TaxRate Tax Rate
OriginalReferenceDocument _Item OriginalReferenceDocument Reference Key
BusinessArea _Item BusinessArea Business Area
Supplier _Item Supplier Supplier
Customer _Item Customer Sold-to Party
SupplierAccountGroup _Item SupplierAccountGroup Account group
ReportingCountry _Item ReportingCountry
CompanyCodeCountry _Item CompanyCodeCountry Reporting Ctry/Reg.
TaxNumber1 _Item TaxNumber1 VAT Reg. No.
TaxNumber2 _Item TaxNumber2 Tax Number 2
TaxNumber3 _Item TaxNumber3
BusinessPartnerName _Item BusinessPartnerName Extracted Customer Name
CustomerSupplierAddress _Item CustomerSupplierAddress
ReverseDocument _Item ReverseDocument Reversed With
ReverseDocumentFiscalYear _Item ReverseDocumentFiscalYear Year
InvoiceReference _Item InvoiceReference Invoice Reference
InvoiceReferenceFiscalYear _Item InvoiceReferenceFiscalYear Invoice Reference Fiscal Year
TaxCalculationProcedure TaxCalculationProcedure Tax Procedure
TaxRateValidityStartDate TaxRateValidityStartDate Tax Rate Validity Start Date
_Product _Product
_ProductText _ProductText
DocumentReferenceID DocumentReferenceID Reference

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 C_AccountingVATReturnDocItem.
-- 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: CACVATRETDOCITM
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id

CREATE VIEW C_AccountingVATReturnDocItem AS
SELECT
  _Item.StatryRptgEntity AS StatryRptgEntity,
  _Item.StatryRptCategory AS StatryRptCategory,
  _Item.StatryRptRunID AS StatryRptRunID,
  _Item.CompanyCode AS CompanyCode,
  _Item.AccountingDocument AS AccountingDocument,
  _Item.FiscalYear AS FiscalYear,
  _Item.AccountingDocumentItem AS AccountingDocumentItem,
  concat('000',_Item.AccountingDocumentItem) AS DocumentItemNumber,
  _Item.TaxCode AS TaxCode,
  _Item.TaxItemGroup AS TaxItemGroup,
  _Item.AccountingDocumentType AS AccountingDocumentType,
  _Item.AccountingDocumentItemType AS AccountingDocumentItemType,
  _Item.ReferenceDocumentType AS ReferenceDocumentType,
  _Item.TransactionTypeDetermination AS TransactionTypeDetermination,
  _Item.PostingKey AS PostingKey,
  _Item.DebitCreditCode AS DebitCreditCode,
  _Item.GLAccount AS GLAccount,
  _Item.FinancialAccountType AS FinancialAccountType,
  _Item.FinancialAccountType AS AccountType,
  _Item.FiscalPeriod AS FiscalPeriod,
  _Item.ReportingDate AS ReportingDate,
  _Item.PostingDate AS PostingDate,
  _Item.DocumentDate AS DocumentDate,
  _Item.DocumentCurrency AS DocumentCurrency,
  _Item.CompanyCodeCurrency AS CompanyCodeCurrency,
  _Item.ReportingCurrency AS ReportingCurrency,
  _Item.DebitCreditCodeIsChanged AS DebitCreditCodeIsChanged,
  _Item.CountryCurrency AS CountryCurrency,
  _Item.AdditionalCurrency1 AS AdditionalCurrency1,
  _Item.AdditionalCurrency2 AS AdditionalCurrency2,
  _Item.Material AS Material,
  _Item.DocumentItemText AS DocumentItemText,
  _Item.QuantityInActlPostg AS QuantityInActlPostg,
  _Item.QuantityUnit AS QuantityUnit,
  _Item.TaxRate AS TaxRate,
  _Item.OriginalReferenceDocument AS OriginalReferenceDocument,
  _Item.BusinessArea AS BusinessArea,
  _Item.Supplier AS Supplier,
  _Item.Customer AS Customer,
  _Item.SupplierAccountGroup AS SupplierAccountGroup,
  _Item.ReportingCountry AS ReportingCountry,
  _Item.CompanyCodeCountry AS CompanyCodeCountry,
  _Item.TaxNumber1 AS TaxNumber1,
  _Item.TaxNumber2 AS TaxNumber2,
  _Item.TaxNumber3 AS TaxNumber3,
  _Item.BusinessPartnerName AS BusinessPartnerName,
  _Item.CustomerSupplierAddress AS CustomerSupplierAddress,
  _Item.ReverseDocument AS ReverseDocument,
  _Item.ReverseDocumentFiscalYear AS ReverseDocumentFiscalYear,
  _Item.InvoiceReference AS InvoiceReference,
  _Item.InvoiceReferenceFiscalYear AS InvoiceReferenceFiscalYear,
  TaxCalculationProcedure,
  TaxRateValidityStartDate,
  DocumentReferenceID
FROM P_AccountingVATReturnDocItem
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product  -- association [0..1]
LEFT OUTER JOIN I_ProductDescription AS _ProductText ON Material = _ProductText.Product  -- association [0..*]
;