I_TaxBoxStructure2
Tax Box Structure definition
I_TaxBoxStructure2 is a Basic CDS View that provides data about "Tax Box Structure definition" in SAP S/4HANA. It reads from 5 data sources (fot_atr_tax_box, fot_atr_tbs, fot_atr_tax_grp, fot_atr_tbtg_map, t007b) and exposes 26 fields with key fields Country, TaxBoxStructureType, ValidFrom, TaxGroup, TaxCode. It has 2 associations to related views.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| fot_atr_tax_box | TaxBox | left_outer |
| fot_atr_tbs | TaxBoxStructure | from |
| fot_atr_tax_grp | TaxGroup | left_outer |
| fot_atr_tbtg_map | TaxGroupBoxAssignment | left_outer |
| t007b | TransactionKey | left_outer |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | fot_atr_tbs_typt | _TaxBoxStructureTypeText | $projection.Country = _TaxBoxStructureTypeText.land1 and $projection.TaxBoxStructureType = _TaxBoxStructureTypeText.type |
| [0..*] | fot_atr_tax_boxt | _TaxBoxText | $projection.Country = _TaxBoxText.land1 and $projection.ValidFrom = _TaxBoxText.valid_from and $projection.TaxBoxStructureType = _TaxBoxText.type and $projection.TaxBox = _TaxBoxText.tax_box |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ITAXBOXSTRUC2 | 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 (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Country | fot_atr_tbs | land1 | Trip Ctry/Reg |
| KEY | TaxBoxStructureType | fot_atr_tbs | type | Worklist Type |
| KEY | ValidFrom | fot_atr_tbs | valid_from | Validity Start Time |
| KEY | TaxGroup | fot_atr_tbtg_map | tax_group | Tax Grouping |
| KEY | TaxCode | fot_atr_tax_grp | mwskz | Tax Code |
| KEY | TransactionTypeDetermination | fot_atr_tax_grp | ktosl | Transaction |
| KEY | TaxBox | fot_atr_tbtg_map | tax_box | Tax Box |
| ValidTo | fot_atr_tbs | valid_to | Validity End Time | |
| TaxBoxStructureTypeName | ||||
| TaxBoxStructure | fot_atr_tbs | tax_box_struct | Tax Box Structure | |
| TaxCountry | tax_rept_country | Reporting Ctry/Reg. | ||
| TaxBoxName | ||||
| TaxBoxOutputType | fot_atr_tax_box | tax_box_op_type | Tax Box Output Type | |
| TaxBoxCondition | fot_atr_tax_box | tax_box_cond | Tax Box Condition | |
| TaxRateValidityStartDate | fot_atr_tax_grp | txdat_from | Tax Rate Valid-From | |
| TaxRateValidityEndDate | fot_atr_tax_grp | txdat_to | Tax Rate Valid-To | |
| TaxIsNotDeductible | t007b | stazf | Not deductible | |
| DebitCreditCode | fot_atr_tax_grp | shkzg_umsv | Tot./Deb./Cred. | |
| TaxJurisdiction | fot_atr_tax_grp | txjcd | Tax Jurisdict. | |
| AccountingDocumentType | fot_atr_tax_grp | blart | Rep. rec. doc. type | |
| SpecialGLCode | fot_atr_tax_grp | umskz | Special G/L Ind | |
| SupplierAccountGroup | fot_atr_tax_grp | ktokk | Vendor Group | |
| TaxGroupOperation | fot_atr_tax_grp | opera | Arithmet. Oper. | |
| TaxGroupFreeClassification | fot_atr_tax_grp | fc_code | FC Code | |
| GLAccount | fot_atr_tax_grp | racct | GL Account From | |
| TaxBoxAggregationOperation | fot_atr_tbtg_map | opera | Arithmet. Oper. |
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_TaxBoxStructure2.
-- 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: ITAXBOXSTRUC2
CREATE VIEW I_TaxBoxStructure2 AS
SELECT
TaxBoxStructure.land1 AS Country,
TaxBoxStructure.type AS TaxBoxStructureType,
TaxBoxStructure.valid_from AS ValidFrom,
TaxGroupBoxAssignment.tax_group AS TaxGroup,
TaxGroup.mwskz AS TaxCode,
TaxGroup.ktosl AS TransactionTypeDetermination,
TaxGroupBoxAssignment.tax_box AS TaxBox,
TaxBoxStructure.valid_to AS ValidTo,
_TaxBoxStructureTypeText[1: langu = $session.system_language].text AS TaxBoxStructureTypeName,
TaxBoxStructure.tax_box_struct AS TaxBoxStructure,
tax_rept_country AS TaxCountry,
_TaxBoxText[1: langu = $session.system_language].text AS TaxBoxName,
TaxBox.tax_box_op_type AS TaxBoxOutputType,
TaxBox.tax_box_cond AS TaxBoxCondition,
TaxGroup.txdat_from AS TaxRateValidityStartDate,
TaxGroup.txdat_to AS TaxRateValidityEndDate,
TransactionKey.stazf AS TaxIsNotDeductible,
TaxGroup.shkzg_umsv AS DebitCreditCode,
TaxGroup.txjcd AS TaxJurisdiction,
TaxGroup.blart AS AccountingDocumentType,
TaxGroup.umskz AS SpecialGLCode,
TaxGroup.ktokk AS SupplierAccountGroup,
TaxGroup.opera AS TaxGroupOperation,
TaxGroup.fc_code AS TaxGroupFreeClassification,
TaxGroup.racct AS GLAccount,
TaxGroupBoxAssignment.opera AS TaxBoxAggregationOperation
FROM fot_atr_tbs AS TaxBoxStructure
LEFT OUTER JOIN fot_atr_tbtg_map AS TaxGroupBoxAssignment ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN fot_atr_tax_box AS TaxBox ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN fot_atr_tax_grp AS TaxGroup ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN t007b AS TransactionKey ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN fot_atr_tbs_typt AS _TaxBoxStructureTypeText ON Country = _TaxBoxStructureTypeText.land1 AND TaxBoxStructureType = _TaxBoxStructureTypeText.type -- association [0..*]
LEFT OUTER JOIN fot_atr_tax_boxt AS _TaxBoxText ON Country = _TaxBoxText.land1 AND ValidFrom = _TaxBoxText.valid_from AND TaxBoxStructureType = _TaxBoxText.type AND TaxBox = _TaxBoxText.tax_box -- 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