I_TranspChargeCalcRule

DDL: I_TRANSPCHARGECALCRULE Type: view_entity BASIC

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)

SourceAliasJoin Type
/scmtms/d_tcrule /scmtms/d_tcrule from

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;