I_CN_GoldenTaxDocumentMapping

DDL: I_CN_GOLDENTAXDOCUMENTMAPPING Type: view BASIC

China Golden Tax Document Mapping

I_CN_GoldenTaxDocumentMapping is a Basic CDS View that provides data about "China Golden Tax Document Mapping" in SAP S/4HANA. It reads from 1 data source (eiv_gtd_map) and exposes 21 fields with key field CN_GoldenTaxMapUUID. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
eiv_gtd_map eiv_gtd_map from

Associations (3)

CardinalityTargetAliasCondition
[1] I_CN_GoldenTaxDocumentBasic _GTDHeader $projection.CN_GoldenTaxDocument = _GTDHeader.CN_GoldenTaxDocument
[0..1] I_CN_GoldenTaxDocumentItmBasic _GTDItem $projection.CN_GoldenTaxDocument = _GTDItem.CN_GoldenTaxDocument and $projection.CN_GoldenTaxDocumentItem = _GTDItem.CN_GoldenTaxDocumentItem
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode

Annotations (11)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName ICNGTDMAP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label China Golden Tax Document Mapping view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY CN_GoldenTaxMapUUID eiv_gtd_map map_uuid Tax Invc. Mappg UUID
CN_GoldenTaxDocument eiv_gtd_map gtd_nmbr GT Doc No
CN_GoldenTaxDocumentItem eiv_gtd_map gtd_item_nmbr Item Number
CN_GoldenTaxCombinationID eiv_gtd_map combine_id Combine ID
CN_GoldenTaxDataSourceType eiv_gtd_map doc_type VAT Document Type
CN_GoldenTaxSourceDocument1
CN_GoldenTaxSourceDocument2
CN_GoldenTaxSourceDocument3
SourceDocumentItem
CompanyCode eiv_gtd_map company_code Company Code
SalesOrganization eiv_gtd_map sales_org Sales Organization
DistributionChannel eiv_gtd_map distr_chnl Distr. Channel
Division eiv_gtd_map division Internal Division ID
CN_TaxEntityID eiv_gtd_map cntax_entity_id Tax Entity
CreatedByUser eiv_gtd_map create_user User Name
CreationDateTime eiv_gtd_map create_time Time
LastChangedByUser eiv_gtd_map change_user User Name
ChangedDateTime eiv_gtd_map change_time Time Stamp
_GTDHeader _GTDHeader
_GTDItem _GTDItem
_CompanyCode _CompanyCode

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 I_CN_GoldenTaxDocumentMapping.
-- 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 I_CN_GoldenTaxDocumentMapping AS
SELECT
  eiv_gtd_map.map_uuid AS CN_GoldenTaxMapUUID,
  eiv_gtd_map.gtd_nmbr AS CN_GoldenTaxDocument,
  eiv_gtd_map.gtd_item_nmbr AS CN_GoldenTaxDocumentItem,
  eiv_gtd_map.combine_id AS CN_GoldenTaxCombinationID,
  eiv_gtd_map.doc_type AS CN_GoldenTaxDataSourceType,
  cast(eiv_gtd_map.doc_key1 as eiv_doc_key1) AS CN_GoldenTaxSourceDocument1,
  cast(eiv_gtd_map.doc_key2 as eiv_doc_key2) AS CN_GoldenTaxSourceDocument2,
  cast(eiv_gtd_map.doc_key3 as eiv_doc_key3) AS CN_GoldenTaxSourceDocument3,
  cast(eiv_gtd_map.doc_item_nmbr as cds_source_document_item) AS SourceDocumentItem,
  eiv_gtd_map.company_code AS CompanyCode,
  eiv_gtd_map.sales_org AS SalesOrganization,
  eiv_gtd_map.distr_chnl AS DistributionChannel,
  eiv_gtd_map.division AS Division,
  eiv_gtd_map.cntax_entity_id AS CN_TaxEntityID,
  eiv_gtd_map.create_user AS CreatedByUser,
  eiv_gtd_map.create_time AS CreationDateTime,
  eiv_gtd_map.change_user AS LastChangedByUser,
  eiv_gtd_map.change_time AS ChangedDateTime
FROM eiv_gtd_map
LEFT OUTER JOIN I_CN_GoldenTaxDocumentBasic AS _GTDHeader ON CN_GoldenTaxDocument = _GTDHeader.CN_GoldenTaxDocument  -- association [1]
LEFT OUTER JOIN I_CN_GoldenTaxDocumentItmBasic AS _GTDItem ON CN_GoldenTaxDocument = _GTDItem.CN_GoldenTaxDocument AND CN_GoldenTaxDocumentItem = _GTDItem.CN_GoldenTaxDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
;