I_TaxBoxStructure
Tax Box Structure definition
I_TaxBoxStructure is a Basic CDS View that provides data about "Tax Box Structure definition" in SAP S/4HANA. It reads from 5 data sources (vgtaxbox, vgtbs, P_TaxBoxStructureValidTo2, vgtaxgr, vgtgtb) and exposes 22 fields with key fields SAPClient, Country, TaxBoxStrucValidityStartDate, TaxBoxStructureType, TaxGroup. It has 2 associations to related views. Part of development package GLO_FIN_IS_GEN.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| vgtaxbox | TaxBox | left_outer |
| vgtbs | TaxBoxStructure | from |
| P_TaxBoxStructureValidTo2 | TaxBoxStructureValidTo | inner |
| vgtaxgr | TaxGroup | left_outer |
| vgtgtb | TaxGroupBoxAssignment | left_outer |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | vgtbst | _TaxBoxStructureText | $projection.Country = _TaxBoxStructureText.land1 and $projection.ValidFrom = _TaxBoxStructureText.fdate and TaxBoxStructure.tbstype = _TaxBoxStructureText.tbstype |
| [0..*] | vgtaxboxt | _TaxBoxText | $projection.Country = _TaxBoxText.land1 and $projection.ValidFrom = _TaxBoxText.fdate and TaxBoxStructure.tbstype = _TaxBoxText.tbstyp and $projection.TaxBox = _TaxBoxText.taxbox |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ITAXBOXSTRUC | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #NOT_ALLOWED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Tax Box Structure definition | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SAPClient | vgtbs | mandt | Editing Client |
| KEY | Country | vgtbs | land1 | Trip Ctry/Reg |
| KEY | TaxBoxStrucValidityStartDate | vgtbs | fdate | Valid from |
| KEY | TaxBoxStructureType | |||
| KEY | TaxGroup | vgtgtb | acr_tg | Tax Group |
| KEY | TaxCode | vgtaxgr | mwskz | Tax Code |
| KEY | TransactionTypeDetermination | vgtaxgr | ktosl | Transaction |
| KEY | DebitCreditCode | vgtaxgr | shkzg_umsv | Tot./Deb./Cred. |
| KEY | AccountingDocumentType | vgtaxgr | blart | Rep. rec. doc. type |
| KEY | SpecialGLCode | vgtaxgr | umskz | Special G/L Ind |
| KEY | SupplierAccountGroup | vgtaxgr | ktokk | Vendor Group |
| ValidTo1INITIALendasValidTo | ||||
| ValidFrom | vgtbs | fdate | Valid from | |
| TaxBoxStructure | ||||
| TaxBoxStructureName | ||||
| TaxBox | vgtgtb | taxbox | Tax.Bs.Gp.No. | |
| TaxBoxName | ||||
| TaxBoxCondition | vgtaxbox | tb_condition | Tax Box Condition | |
| TaxBoxOutputType | vgtaxbox | taxbox_ot | Tax Box Output Type | |
| TaxRate | ||||
| TaxGroupOperation | vgtaxgr | opera | Arithmet. Oper. | |
| TaxBoxAggregationOperation | vgtgtb | operation | Transaction |
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_TaxBoxStructure.
-- 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.
-- SQL view name: ITAXBOXSTRUC
CREATE VIEW I_TaxBoxStructure AS
SELECT
TaxBoxStructure.mandt AS SAPClient,
TaxBoxStructure.land1 AS Country,
TaxBoxStructure.fdate AS TaxBoxStrucValidityStartDate,
cast (TaxBoxStructure.tbstype as fot_atr_tax_box_struct_type) AS TaxBoxStructureType,
TaxGroupBoxAssignment.acr_tg AS TaxGroup,
TaxGroup.mwskz AS TaxCode,
TaxGroup.ktosl AS TransactionTypeDetermination,
TaxGroup.shkzg_umsv AS DebitCreditCode,
TaxGroup.blart AS AccountingDocumentType,
TaxGroup.umskz AS SpecialGLCode,
TaxGroup.ktokk AS SupplierAccountGroup,
case when TaxBoxStructureValidTo.ValidTo = '99991231' then TaxBoxStructureValidTo.ValidTo else dats_add_days(TaxBoxStructureValidTo.ValidTo, -1, 'INITIAL' ) end as ValidTo AS ValidTo1INITIALendasValidTo,
TaxBoxStructure.fdate AS ValidFrom,
cast (TaxBoxStructure.tsxbstr as fot_atr_tax_box_structure) AS TaxBoxStructure,
_TaxBoxStructureText[1: langu = $session.system_language].txt50 AS TaxBoxStructureName,
TaxGroupBoxAssignment.taxbox AS TaxBox,
_TaxBoxText[1: langu = $session.system_language].tbname AS TaxBoxName,
TaxBox.tb_condition AS TaxBoxCondition,
TaxBox.taxbox_ot AS TaxBoxOutputType,
division(TaxGroup.kbetr,100,2) AS TaxRate,
TaxGroup.opera AS TaxGroupOperation,
TaxGroupBoxAssignment.operation AS TaxBoxAggregationOperation
FROM vgtbs AS TaxBoxStructure
INNER JOIN P_TaxBoxStructureValidTo2 AS TaxBoxStructureValidTo ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN vgtgtb AS TaxGroupBoxAssignment ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN vgtaxbox AS TaxBox ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN vgtaxgr AS TaxGroup ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN vgtbst AS _TaxBoxStructureText ON Country = _TaxBoxStructureText.land1 AND ValidFrom = _TaxBoxStructureText.fdate AND TaxBoxStructure.tbstype = _TaxBoxStructureText.tbstype -- association [0..*]
LEFT OUTER JOIN vgtaxboxt AS _TaxBoxText ON Country = _TaxBoxText.land1 AND ValidFrom = _TaxBoxText.fdate AND TaxBoxStructure.tbstype = _TaxBoxText.tbstyp AND TaxBox = _TaxBoxText.taxbox -- association [0..*]
;
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