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

P_CODIANStRpTaxCodesAndItems

DDL: P_CODIANSTRPTAXCODESANDITEMS Type: view CONSUMPTION

DIAN Format 1001 Tax Codes And Tax Items

P_CODIANStRpTaxCodesAndItems is a Consumption CDS View that provides data about "DIAN Format 1001 Tax Codes And Tax Items" in SAP S/4HANA. It reads from 3 data sources (I_CO_DIANTaxCode, I_StRpTaxItem, I_CO_DIANItemType) and exposes 16 fields with key fields StatryRptgEntity, StatryRptCategory, StatryRptRunID, CO_DIANReportFormat, CO_DIANReportItemType.

Data Sources (3)

SourceAliasJoin Type
I_CO_DIANTaxCode DIAN_TaxCodes inner
I_StRpTaxItem DIAN_TaxItems from
I_CO_DIANItemType DIANItemType inner

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName PSRCOTXCODESITMS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label DIAN Format 1001 Tax Codes And Tax Items view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #C view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor P_CO_DIANFrmt1001TaxItem view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY StatryRptgEntity
KEY StatryRptCategory
KEY StatryRptRunID
KEY CO_DIANReportFormat I_CO_DIANTaxCode CO_DIANReportFormat Report Format
KEY CO_DIANReportItemType I_CO_DIANTaxCode CO_DIANReportItemType Item Type
KEY CompanyCode I_StRpTaxItem CompanyCode Receiver Company Code
KEY AccountingDocument I_StRpTaxItem AccountingDocument Journal Entry
KEY FiscalYear
KEY TaxItem I_StRpTaxItem TaxItem Tax Item
TaxCalculationProcedure I_CO_DIANTaxCode TaxCalculationProcedure Tax Procedure
TaxCode I_CO_DIANTaxCode TaxCode Tax Code
TransactionTypeDetermination I_CO_DIANTaxCode TransactionTypeDetermination Transaction Key
CO_DIANAmountClassification I_CO_DIANTaxCode CO_DIANAmountClassification Amount Classif.
TaxRate I_StRpTaxItem TaxRate Tax Rate
TaxExchangeRate
_ReportedItemsLog I_StRpTaxItem _ReportedItemsLog

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 P_CODIANStRpTaxCodesAndItems.
-- 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.

CREATE VIEW P_CODIANStRpTaxCodesAndItems AS
SELECT
  DIAN_TaxItems._ReportedItemsLog.StatryRptgEntity AS StatryRptgEntity,
  DIAN_TaxItems._ReportedItemsLog.StatryRptCategory AS StatryRptCategory,
  DIAN_TaxItems._ReportedItemsLog.StatryRptRunID AS StatryRptRunID,
  DIAN_TaxCodes.CO_DIANReportFormat AS CO_DIANReportFormat,
  DIAN_TaxCodes.CO_DIANReportItemType AS CO_DIANReportItemType,
  DIAN_TaxItems.CompanyCode AS CompanyCode,
  DIAN_TaxItems.AccountingDocument AS AccountingDocument,
  cast( DIAN_TaxItems.FiscalYear as fis_gjahr_no_conv preserving type ) AS FiscalYear,
  DIAN_TaxItems.TaxItem AS TaxItem,
  DIAN_TaxCodes.TaxCalculationProcedure AS TaxCalculationProcedure,
  DIAN_TaxCodes.TaxCode AS TaxCode,
  DIAN_TaxCodes.TransactionTypeDetermination AS TransactionTypeDetermination,
  DIAN_TaxCodes.CO_DIANAmountClassification AS CO_DIANAmountClassification,
  DIAN_TaxItems.TaxRate AS TaxRate,
  (DIAN_TaxItems.TaxRate + 100) AS TaxExchangeRate,
  DIAN_TaxItems._ReportedItemsLog AS _ReportedItemsLog
FROM I_StRpTaxItem AS DIAN_TaxItems
INNER JOIN I_CO_DIANItemType AS DIANItemType ON /* join condition not captured in parsed metadata */
INNER JOIN I_CO_DIANTaxCode AS DIAN_TaxCodes ON /* join condition not captured in parsed metadata */
;