C_CO_DIANStRpTaxItemQuery
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)
| Source | Alias | Join Type |
|---|---|---|
| C_CO_DIANStRpBPTaxItemCube | C_CO_DIANStRpBPTaxItemCube | from |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_StatryRptgEntity | srf_reporting_entity | |
| P_StatryRptCategory | srf_rep_cat_id | |
| P_StatryRptRunID | srf_report_run_id | |
| P_CompanyCode | fis_bukrs |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
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