P_TaxCode
P_TaxCode is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (t007a) and exposes 15 fields with key fields TaxCalculationProcedure, TaxCode. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| t007a | t007a | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_TaxCodeText | _Text | $projection.TaxCalculationProcedure = _Text.TaxCalculationProcedure and $projection.TaxCode = _Text.TaxCode |
| [0..1] | I_TaxType | _TaxType | $projection.TaxType = _TaxType.TaxType |
| [0..1] | I_TaxCalculationProcedure | _TaxCalculationProcedure | $projection.TaxCalculationProcedure = _TaxCalculationProcedure.TaxCalculationProcedure |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFITAXCODE | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.representativeKey | TaxCode | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TaxCalculationProcedure | kalsm | ||
| KEY | TaxCode | |||
| TaxType | mwart | |||
| TargetTaxCode | ||||
| EUTaxClassification | egrkz | |||
| IsSalesTaxes | xslta | |||
| TaxCategory | ||||
| TaxReturnCountry | lstml | |||
| TaxTolerancePercent | ||||
| EUAcqnInputTaxCode | zmwsk_esa | |||
| EUAcqnOutputTaxCode | zmwsk_ese | |||
| MossTaxCode | mossc | |||
| _TaxCalculationProcedure | _TaxCalculationProcedure | |||
| _TaxType | _TaxType | |||
| _Text | _Text |
@AbapCatalog.sqlViewName: 'PFITAXCODE'
//@EndUserText.label: 'Private view to retrieve Tax Code Details'
@VDM.private: true
@VDM.viewType: #BASIC
@AbapCatalog.compiler.compareFilter: true
@ClientHandling.algorithm: #SESSION_VARIABLE
//@Analytics: { dataCategory: #DIMENSION, dataExtraction.enabled: true }
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.representativeKey: 'TaxCode'
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.usageType.dataClass: #CUSTOMIZING
define view P_TaxCode
as select from t007a
association [0..*] to I_TaxCodeText as _Text on $projection.TaxCalculationProcedure = _Text.TaxCalculationProcedure
and $projection.TaxCode = _Text.TaxCode
association [0..1] to I_TaxType as _TaxType on $projection.TaxType = _TaxType.TaxType
association [0..1] to I_TaxCalculationProcedure as _TaxCalculationProcedure on $projection.TaxCalculationProcedure = _TaxCalculationProcedure.TaxCalculationProcedure
{
@ObjectModel.foreignKey.association: '_TaxCalculationProcedure'
key kalsm as TaxCalculationProcedure,
@ObjectModel.text.association: '_Text'
key cast(mwskz as fis_mwskz) as TaxCode,
@ObjectModel.foreignKey.association: '_TaxType'
mwart as TaxType,
cast (zmwsk as farp_dzmwsk) as TargetTaxCode,
egrkz as EUTaxClassification,
xslta as IsSalesTaxes,
cast ( txind as smwsk ) as TaxCategory,
lstml as TaxReturnCountry,
cast( tolerance as fot_tax_tolerance ) as TaxTolerancePercent,
zmwsk_esa as EUAcqnInputTaxCode,
zmwsk_ese as EUAcqnOutputTaxCode,
mossc as MossTaxCode,
_TaxCalculationProcedure,
_TaxType,
_Text
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"T007A"
],
"ASSOCIATED":
[
"I_TAXCALCULATIONPROCEDURE",
"I_TAXCODETEXT",
"I_TAXTYPE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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