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

C_VE_StRpSlsAndWhldgTxItmC

DDL: C_VE_STRPSLSANDWHLDGTXITMC SQL: CVESLSTAXITEMC Type: view CONSUMPTION

Venezuela Sales VAT and Withholding Tax Items Cube

C_VE_StRpSlsAndWhldgTxItmC is a Consumption CDS View (Cube) that provides data about "Venezuela Sales VAT and Withholding Tax Items Cube" in SAP S/4HANA. It reads from 1 data source (I_VE_StRpBPAndWhldgTaxItem) and exposes 51 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TransactionTypeDetermination, TaxCode.

Data Sources (1)

SourceAliasJoin Type
I_VE_StRpBPAndWhldgTaxItem I_VE_StRpBPAndWhldgTaxItem from

Parameters (3)

NameTypeDefault
P_StatryRptgEntity srf_reporting_entity
P_StatryRptCategory srf_rep_cat_id
P_StatryRptRunID srf_report_run_id

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CVESLSTAXITEMC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Venezuela Sales VAT and Withholding Tax Items Cube view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
Analytics.dataCategory #CUBE view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor C_VE_StRpSlsAndWhldgTxItmLogC view
Metadata.allowExtensions true view

Fields (51)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY TransactionTypeDetermination TransactionTypeDetermination Transaction Key
KEY TaxCode TaxCode Tax Code
KEY TaxItem TaxItem Tax Item
AccountingDocumentItem AccountingDocumentItem Posting View Item
AccountingDocumentType AccountingDocumentType Journal Entry Type
TaxRate TaxRate Tax Rate
IPITaxRate Tax Rate
DocumentDate DocumentDate Journal Entry Date
PostingDate PostingDate Posting Date for GR
ReportingDate ReportingDate
TaxID1endendasTaxNumber1
TaxBaseAmountInCoCodeCrcy
TaxAmountInCoCodeCrcy
WhldgTaxAmtInCoCodeCrcy WhldgTaxAmtInCoCodeCrcy
TotalAmountInDisplayCrcy
CompanyCodeCurrency CompanyCodeCurrency Local Currency
DocumentCurrency DocumentCurrency Document Currency
Supplier Supplier Supplier
Customer Customer Sold-to Party
BusinessPartnerCountry _Customer Country Venue: Ctry/Reg
Country Country Venue: Ctry/Reg
OriginalReferenceDocument OriginalReferenceDocument Reference Key
DocumentReferenceID DocumentReferenceID Reference
DocumentType DocumentType Order Type
TransactionTypeCategory TransactionTypeCategory
ReferenceDocumentType ReferenceDocumentType Reference Document Type
TargetSalesDocumentType TargetSalesDocumentType Document Cat.
PrecedingDocumentCategory PrecedingDocumentCategory
DefaultDebitCreditCode DefaultDebitCreditCode Single-Character Flag
DebitCreditCode DebitCreditCode Single-Character Flag
ReferenceDocumentNumber ReferenceDocumentNumber Invoice Reference
PrecedingDocument PrecedingDocument SD Document
AmendmentTaxInvoiceNumber AmendmentTaxInvoiceNumber
NFOverviewInvoiceNumber NFOverviewInvoiceNumber Reference Key
CancelledBillingDocument CancelledBillingDocument Canceld Bill.Dc
NFInvoiceNumber NFInvoiceNumber
AccountingDocumentHeaderText AccountingDocumentHeaderText Doc.Header Text
UtilsInvcgDocReversalRsn UtilsInvcgDocReversalRsn Reversal Reason
ReverseDocument ReverseDocument Reversed With
ReversedDocument ReversedDocument Reversed doc.
ReferenceAcctgDocumentType ReferenceAcctgDocumentType Reference Document Type
InvoiceReference InvoiceReference Invoice Reference
ReversalReason ReversalReason Reversal Reason
CADocumentType CADocumentType Document Type
ReverseDocumentFiscalYear ReverseDocumentFiscalYear Year
ReversalReferenceDocumentCntxt ReversalReferenceDocumentCntxt Reversal Reference Document Context
ReversalReferenceDocument ReversalReferenceDocument Reversal Reference Document
_Customer _Customer

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

CREATE VIEW C_VE_StRpSlsAndWhldgTxItmC AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  TransactionTypeDetermination,
  TaxCode,
  TaxItem,
  AccountingDocumentItem,
  AccountingDocumentType,
  TaxRate,
  cast(cast(TaxRate as abap.curr(11,2)) as char16) AS IPITaxRate,
  DocumentDate,
  PostingDate,
  ReportingDate,
  case _Customer.IsOneTimeAccount when '' then case when _Customer.TaxNumber1 is null then _Customer.TaxNumber2 else _Customer.TaxNumber1 end else case when _OneTimeAccountBP.TaxID1 is null then _OneTimeAccountBP.TaxID2 else _OneTimeAccountBP.TaxID1 end end as TaxNumber1 AS TaxID1endendasTaxNumber1,
  TaxBaseAmountInCoCodeCrcy * -1 AS TaxBaseAmountInCoCodeCrcy,
  -TaxAmountInCoCodeCrcy AS TaxAmountInCoCodeCrcy,
  WhldgTaxAmtInCoCodeCrcy,
  -TotalAmountInDisplayCrcy AS TotalAmountInDisplayCrcy,
  CompanyCodeCurrency,
  DocumentCurrency,
  Supplier,
  Customer,
  _Customer.Country AS BusinessPartnerCountry,
  Country,
  OriginalReferenceDocument,
  DocumentReferenceID,
  DocumentType,
  TransactionTypeCategory,
  ReferenceDocumentType,
  TargetSalesDocumentType,
  PrecedingDocumentCategory,
  DefaultDebitCreditCode,
  DebitCreditCode,
  ReferenceDocumentNumber,
  PrecedingDocument,
  AmendmentTaxInvoiceNumber,
  NFOverviewInvoiceNumber,
  CancelledBillingDocument,
  NFInvoiceNumber,
  AccountingDocumentHeaderText,
  UtilsInvcgDocReversalRsn,
  ReverseDocument,
  ReversedDocument,
  ReferenceAcctgDocumentType,
  InvoiceReference,
  ReversalReason,
  CADocumentType,
  ReverseDocumentFiscalYear,
  ReversalReferenceDocumentCntxt,
  ReversalReferenceDocument
FROM I_VE_StRpBPAndWhldgTaxItem
;