I_TranspChargeCalcRule
Transportation Charge Calculation Rule
I_TranspChargeCalcRule is a Basic CDS View that provides data about "Transportation Charge Calculation Rule" in SAP S/4HANA. It reads from 1 data source (/scmtms/d_tcrule) and exposes 11 fields with key field TranspChrgCalcRuleUUID. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| /scmtms/d_tcrule | /scmtms/d_tcrule | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_TranspChargeItemElement | _TranspChargeItemElement | $projection.TranspChargeItemElementUUID = _TranspChargeItemElement.TranspChargeItemElementUUID |
| [1..1] | I_TranspChargeObject | _TranspChargeObject | $projection.TransportationChargesObjUUID = _TranspChargeObject.TransportationChargesObjUUID |
| [0..1] | I_TranspCalculationBase | _TranspCalculationBase | $projection.TranspChrgCalculationBase = _TranspCalculationBase.TransportationCalculationBase |
| [0..1] | I_UnitOfMeasure | _TranspChrgCalcRuleQtyUnit | $projection.TranspChrgCalcRuleUnit = _TranspChrgCalcRuleQtyUnit.UnitOfMeasure |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Transportation Charge Calculation Rule | view | |
| ObjectModel.representativeKey | TranspChrgCalcRuleUUID | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #NONE | view |
Fields (11)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TranspChrgCalcRuleUUID | db_key | UUID | |
| TransportationChargesObjUUID | root_key | UUID | ||
| TranspChargeItemElementUUID | parent_key | UUID | ||
| TranspChrgCalculationBase | calc_base_code | Calc. Base | ||
| TranspChrgCalcRuleUnit | qty_unit_c | UoM | ||
| TranspChrgPricePerQuantity | qty_value | Quantity | ||
| TranspChrgDataSourceQuantity | quantity | Value | ||
| _TranspChargeItemElement | _TranspChargeItemElement | |||
| _TranspChargeObject | _TranspChargeObject | |||
| _TranspChrgCalcRuleQtyUnit | _TranspChrgCalcRuleQtyUnit | |||
| _TranspCalculationBase | _TranspCalculationBase |
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_TranspChargeCalcRule.
-- 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 I_TranspChargeCalcRule AS
SELECT
db_key AS TranspChrgCalcRuleUUID,
root_key AS TransportationChargesObjUUID,
parent_key AS TranspChargeItemElementUUID,
calc_base_code AS TranspChrgCalculationBase,
qty_unit_c AS TranspChrgCalcRuleUnit,
qty_value AS TranspChrgPricePerQuantity,
quantity AS TranspChrgDataSourceQuantity
FROM /scmtms/d_tcrule
LEFT OUTER JOIN I_TranspChargeItemElement AS _TranspChargeItemElement ON TranspChargeItemElementUUID = _TranspChargeItemElement.TranspChargeItemElementUUID -- association [1..1]
LEFT OUTER JOIN I_TranspChargeObject AS _TranspChargeObject ON TransportationChargesObjUUID = _TranspChargeObject.TransportationChargesObjUUID -- association [1..1]
LEFT OUTER JOIN I_TranspCalculationBase AS _TranspCalculationBase ON TranspChrgCalculationBase = _TranspCalculationBase.TransportationCalculationBase -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _TranspChrgCalcRuleQtyUnit ON TranspChrgCalcRuleUnit = _TranspChrgCalcRuleQtyUnit.UnitOfMeasure -- association [0..1]
;
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