P_CN_TaxEntity
CN Tax Entity
P_CN_TaxEntity is a Basic CDS View that provides data about "CN Tax Entity" in SAP S/4HANA. It reads from 2 data sources (txi_enty, txi_enty_map) and exposes 9 fields with key field CN_TaxEntityID. Part of development package GLO_FIN_TAX_INVC_MGMT_COMM_CN.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| txi_enty | enty | from |
| txi_enty_map | map | left_outer |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | PCNTXIENTITY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.representativeKey | CN_TaxEntityID | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
Fields (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CN_TaxEntityID | txi_enty | cntax_entity_id | Tax Entity |
| CN_TaxParEntityID | txi_enty | cntax_parent_entity_id | Tax Entity | |
| CN_TaxEntityType | txi_enty | cntax_entity_type | Tax Entity Type | |
| CN_TaxRegnNmbr | txi_enty | tax_reg_nmbr | Unfd Socl Crdt Code | |
| CN_TaxEntityValidFrom | txi_enty | valid_from | Validity Start Time | |
| CN_TaxEntityValidTo | txi_enty | valid_to | Validity End Time | |
| CN_DeclnPerdVar | txi_enty | decln_perd_var | Decln Timeline Var. | |
| CompanyCode | txi_enty_map | company_code | Company Code | |
| ProfitCenter | txi_enty_map | profit_center | Profit Center |
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_CN_TaxEntity.
-- 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_CN_TaxEntity AS
SELECT
enty.cntax_entity_id AS CN_TaxEntityID,
enty.cntax_parent_entity_id AS CN_TaxParEntityID,
enty.cntax_entity_type AS CN_TaxEntityType,
enty.tax_reg_nmbr AS CN_TaxRegnNmbr,
enty.valid_from AS CN_TaxEntityValidFrom,
enty.valid_to AS CN_TaxEntityValidTo,
enty.decln_perd_var AS CN_DeclnPerdVar,
map.company_code AS CompanyCode,
map.profit_center AS ProfitCenter
FROM txi_enty AS enty
LEFT OUTER JOIN txi_enty_map AS map ON /* join condition not captured in parsed metadata */
;
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