C_CO_DIANStRpTaxItemQuery

DDL: C_CO_DIANSTRPTAXITEMQUERY Type: view CONSUMPTION

Format 1005 & 1006 - Tax Item Query

C_CO_DIANStRpTaxItemQuery is a Consumption CDS View that provides data about "Format 1005 & 1006 - Tax Item Query" in SAP S/4HANA. It reads from 1 data source (C_CO_DIANStRpBPTaxItemCube) and exposes 62 fields with key fields CompanyCode, FiscalYear, StatryRptgEntity, StatryRptCategory, StatryRptRunID.

Data Sources (1)

SourceAliasJoin Type
C_CO_DIANStRpBPTaxItemCube C_CO_DIANStRpBPTaxItemCube from

Parameters (4)

NameTypeDefault
P_StatryRptgEntity srf_reporting_entity
P_StatryRptCategory srf_rep_cat_id
P_StatryRptRunID srf_report_run_id
P_CompanyCode fis_bukrs

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CSRCOTAXITEMQ view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
Analytics.query true view
Analytics.settings.zeroValues.handling #HIDE view
Analytics.settings.zeroValues.hideOnAxis #ROWS view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Format 1005 & 1006 - Tax Item Query view
Metadata.allowExtensions true view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view

Fields (62)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY StatryRptgEntity StatryRptgEntity Reporting Entity
KEY StatryRptCategory StatryRptCategory Report ID
KEY StatryRptRunID StatryRptRunID Report Run ID
KEY CO_DIANReportFormat CO_DIANReportFormat Report Format
KEY AccountingDocument Journal Entry
KEY TaxType TaxType Tax Type
KEY ReportedTaxNumber ReportedTaxNumber
TaxCode TaxCode Tax Code
TaxCodeName TaxCodeName Tax Code Name
GLAccount GLAccount General Ledger
GLAccountName GLAccountName Short Text
AccountingDocumentType AccountingDocumentType Journal Entry Type
BusinessPlace BusinessPlace Business place
TransactionTypeDetermination TransactionTypeDetermination Transaction Key
TaxReturnCountry TaxReturnCountry Reporting C/R
CompanyCodeCountry CompanyCodeCountry Reporting Ctry/Reg.
TaxCalculationProcedure TaxCalculationProcedure Tax Procedure
TaxJurisdiction TaxJurisdiction Tax Jurisdiction
ReportingDate ReportingDate
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
TaxReportingDate TaxReportingDate Tax Reporting Date
TaxNumberType TaxNumberType Tax number type
CO_DIANTaxNumberType CO_DIANTaxNumberType DIAN Doc. Type
TaxNumber1 TaxNumber1 VAT Reg. No.
TaxNumber2 TaxNumber2 Tax Number 2
TaxNumber3 TaxNumber3
TaxNumber4 TaxNumber4
TaxNumber5 TaxNumber5
CO_DIANBPTaxLongNumber CO_DIANBPTaxLongNumber
Reference1IDByBusinessPartner Reference1IDByBusinessPartner Reference Key 1
Reference3IDByBusinessPartner Reference3IDByBusinessPartner Reference Key 3
BusinessPartnerCategory BusinessPartnerCategory Partner Cat.
FirstName FirstName First Name
MiddleName MiddleName Middle Name
LastName LastName Last Name
AdditionalLastName AdditionalLastName Other Last Name
BusinessPartnerOrgLongName BusinessPartnerOrgLongName
OrganizationBPName1 OrganizationBPName1 Name 1
OrganizationBPName2 OrganizationBPName2 Name 2
OrganizationBPName3 OrganizationBPName3 Name 3
OrganizationBPName4 OrganizationBPName4 Name 4
BusinessPartner BusinessPartner Issuing Authority
Customer Customer Sold-to Party
Supplier Supplier Supplier
IsNaturalPerson IsNaturalPerson Natural person
BusinessPartnerCountry BusinessPartnerCountry BP Ctry/Reg.
CO_DIANCountry CO_DIANCountry
CountryCurrency CountryCurrency Currency
TaxBaseAmountInCountryCrcy TaxBaseAmountInCountryCrcy Base Amount
TaxAmountInCountryCrcy TaxAmountInCountryCrcy Tax Rept. Crcy
ReportingCurrency ReportingCurrency Currency
TaxBaseAmountInRptgCrcy TaxBaseAmountInRptgCrcy Base Amount
TaxAmountInRptgCrcy TaxAmountInRptgCrcy Tax Rept. Crcy
InptTxDebitAmtInCntryCurrency InptTxDebitAmtInCntryCurrency
OutpTxDebitAmtInCntryCurrency OutpTxDebitAmtInCntryCurrency
CO_VATHigherThanCostAmount CO_VATHigherThanCostAmount
OutpTxCrdtAmtInCntryCurrency OutpTxCrdtAmtInCntryCurrency
InptTxCrdtAmtInCntryCurrency InptTxCrdtAmtInCntryCurrency
CnsmpnTxAmtInCountryCurrency CnsmpnTxAmtInCountryCurrency

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_CO_DIANStRpTaxItemQuery.
-- 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.
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id, P_CompanyCode : fis_bukrs

CREATE VIEW C_CO_DIANStRpTaxItemQuery AS
SELECT
  CompanyCode,
  FiscalYear,
  StatryRptgEntity,
  StatryRptCategory,
  StatryRptRunID,
  CO_DIANReportFormat,
  cast( AccountingDocument as fis_belnr preserving type ) AS AccountingDocument,
  TaxType,
  ReportedTaxNumber,
  TaxCode,
  TaxCodeName,
  GLAccount,
  GLAccountName,
  AccountingDocumentType,
  BusinessPlace,
  TransactionTypeDetermination,
  TaxReturnCountry,
  CompanyCodeCountry,
  TaxCalculationProcedure,
  TaxJurisdiction,
  ReportingDate,
  PostingDate,
  DocumentDate,
  TaxReportingDate,
  TaxNumberType,
  CO_DIANTaxNumberType,
  TaxNumber1,
  TaxNumber2,
  TaxNumber3,
  TaxNumber4,
  TaxNumber5,
  CO_DIANBPTaxLongNumber,
  Reference1IDByBusinessPartner,
  Reference3IDByBusinessPartner,
  BusinessPartnerCategory,
  FirstName,
  MiddleName,
  LastName,
  AdditionalLastName,
  BusinessPartnerOrgLongName,
  OrganizationBPName1,
  OrganizationBPName2,
  OrganizationBPName3,
  OrganizationBPName4,
  BusinessPartner,
  Customer,
  Supplier,
  IsNaturalPerson,
  BusinessPartnerCountry,
  CO_DIANCountry,
  CountryCurrency,
  TaxBaseAmountInCountryCrcy,
  TaxAmountInCountryCrcy,
  ReportingCurrency,
  TaxBaseAmountInRptgCrcy,
  TaxAmountInRptgCrcy,
  InptTxDebitAmtInCntryCurrency,
  OutpTxDebitAmtInCntryCurrency,
  CO_VATHigherThanCostAmount,
  OutpTxCrdtAmtInCntryCurrency,
  InptTxCrdtAmtInCntryCurrency,
  CnsmpnTxAmtInCountryCurrency
FROM C_CO_DIANStRpBPTaxItemCube
;