P_TH_TaxCodeRate
P_TH_TaxCodeRate is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (a003, I_TaxCode, konp) and exposes 6 fields with key fields TaxCode, ConditionType, TaxCalculationProcedure.
Data Sources (3)
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PTHTAXCODERATE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view |
@AbapCatalog.sqlViewName: 'PTHTAXCODERATE'
@VDM.viewType: #COMPOSITE
@VDM.private: true
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass: #CUSTOMIZING
define view P_TH_TaxCodeRate
as select from a003
left outer join konp on konp.kappl = a003.kappl
and konp.knumh = a003.knumh
and konp.kschl = a003.kschl
left outer join I_TaxCode on a003.mwskz = I_TaxCode.TaxCode
// and I_TaxCode.TaxCalculationProcedure = 'TAXTH' //get tax code for Thailand
{
key a003.mwskz as TaxCode,
key a003.kschl as ConditionType,
key I_TaxCode.TaxCalculationProcedure,
a003.knumh as ConditionNumber,
I_TaxCode.TaxType,
division ( konp.kbetr , 10, 2 ) as TaxRate // rate need to be division by 10
}
where
a003.kappl = 'TX'
and a003.aland = 'TH' //get tax code for Thailand
and I_TaxCode.TaxType = 'V' // input tax
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