I_TranspChargeItemElement

DDL: I_TRANSPCHARGEITEMELEMENT Type: view_entity BASIC

Transportation Charge Item Element

I_TranspChargeItemElement is a Basic CDS View that provides data about "Transportation Charge Item Element" in SAP S/4HANA. It reads from 1 data source (/scmtms/d_tchrge) and exposes 70 fields with key field TranspChargeItemElementUUID. It has 25 associations to related views.

Data Sources (1)

SourceAliasJoin Type
/scmtms/d_tchrge /scmtms/d_tchrge from

Associations (25)

CardinalityTargetAliasCondition
[1..1] I_TranspChargeItem _TranspChargeItem $projection.TranspChargeItemUUID = _TranspChargeItem.TranspChargeItemUUID
[1..1] I_TranspChargeObject _TranspChargeObject $projection.TransportationChargesObjUUID = _TranspChargeObject.TransportationChargesObjUUID
[0..*] I_TranspChargeCalcBase _TranspChargeCalcBase $projection.TranspChargeItemElementUUID = _TranspChargeCalcBase.TranspChargeItemElementUUID
[0..*] I_TranspChargeCalcRule _TranspChargeCalcRule $projection.TranspChargeItemElementUUID = _TranspChargeCalcRule.TranspChargeItemElementUUID
[0..1] I_TranspChargeInstrnType _TranspChargeInstrnType $projection.TranspChargeInstrnType = _TranspChargeInstrnType.TranspChargeInstrnType
[0..1] I_TranspChargeType _TranspChargeType $projection.TranspChargeType = _TranspChargeType.TranspChargeType
[0..1] I_TranspChargeSubCategory _TranspChargeSubCategory $projection.TranspChargeSubCategory = _TranspChargeSubCategory.TranspChargeSubCategory
[0..1] I_TranspChargeCategory _TranspChargeCategory $projection.TranspChargeCategory = _TranspChargeCategory.TranspChargeCategory
[0..1] I_TranspChargeCalcReslnBase _TranspChargeCalcReslnBase $projection.TranspChargeCalcReslnBase = _TranspChargeCalcReslnBase.TranspChargeCalcReslnBase
[0..1] I_Currency _TranspChargeCalcdAmountCrcy $projection.TranspChargeCalcdAmountCrcy = _TranspChargeCalcdAmountCrcy.Currency
[0..1] I_Currency _CreditAmountCurrency $projection.CreditAmountCurrency = _CreditAmountCurrency.Currency
[0..1] I_Currency _InvoicedAmountCurrency $projection.InvoicedAmountCurrency = _InvoicedAmountCurrency.Currency
[0..1] I_Currency _RateAmountCurrency $projection.TranspChrgRateCurrency = _RateAmountCurrency.Currency
[0..1] I_Currency _DocumentAmountCurrency $projection.TranspChargeDocumentCurrency = _DocumentAmountCurrency.Currency
[0..1] I_Currency _LocalAmountCurrency $projection.TranspChargeLocalCurrency = _LocalAmountCurrency.Currency
[0..1] I_TranspChargeExchRate _TranspChargeExchRate $projection.TranspChargeItemElementUUID = _TranspChargeExchRate.TranspChargeItemElementUUID and _TranspChargeExchRate.TranspChrgIsLoclExchRate is initial
[0..1] I_TranspDimnWeightProfile _TranspDimnWeightProfile $projection.TranspDimnWeightProfile = _TranspDimnWeightProfile.TranspDimnWeightProfile
[1..1] I_TranspCalculationMethod _TranspCalculationMethod $projection.TranspCalculationMethodType = _TranspCalculationMethod.TranspCalculationMethodType and $projection.TranspCalculationMethodName = _TranspCalculationMethod.TranspCalculationMethodName
[1..1] I_TranspCalcMethodType _TranspCalcMethodType $projection.TranspCalculationMethodType = _TranspCalcMethodType.TranspCalculationMethodType
[0..1] I_InvoicingStatus _TranspChargePostingStatus $projection.TranspChargePostingStatus = _TranspChargePostingStatus.InvoicingStatus
[1..1] I_TranspChargeCalcStatusText _TranspChargeCalcStatusText $projection.TranspChargeCalcStatus = _TranspChargeCalcStatusText.TranspChargeCalcStatus and _TranspChargeCalcStatusText.Language = $session.system_language
[1..1] I_TranspChargeRateValue _TranspChargeRateValue $projection.TranspChargeRateValue = _TranspChargeRateValue.TranspChargeRateValue
[1..1] I_TranspCalculationDateType _TranspCalculationDateType $projection.TranspCalculationDateType = _TranspCalculationDateType.TranspCalculationDateType
[1..1] I_TransportationRate _TransportationRate $projection.TransportationRateUUID = _TransportationRate.TransportationRateUUID
[1..1] I_TransportationRate _TransportationIndexRate $projection.TranspChrgIndexRateTableUUID = _TransportationIndexRate.TransportationRateUUID

Annotations (8)

NameValueLevelField
EndUserText.label Transportation Charge Item Element view
ObjectModel.representativeKey TranspChargeItemElementUUID view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #NONE view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view

Fields (70)

KeyFieldSource TableSource FieldDescription
KEY TranspChargeItemElementUUID UUID
TransportationChargesObjUUID root_key UUID
TranspChargeItemUUID parent_key UUID
TranspChargeCalcSheetLineNmbr linenr Source Select. Index
TranspChargeInstrnType tccalcresins040 Instruction Ty.
TranspChargeType tcet084 Charge Type
TranspChargeSubCategory tcclass037 Charge Subcategory
TranspChargeCategory chrgcatcd021_i Charge Category
TranspChargeCalcReslnBase clcresbas036 Calc. Res. Base
TranspCalculationDateType calc_date_type Calc. Date Ty.
TranspChargeItmElmntCalcDteTme calc_date_tstmp Calc. Date Timestamp
TranspChargeIsInactive inactive WO Locked
TranspChargeCalcdAmount Calculated Val
TranspChargeCalcdAmountCrcy Currency
CreditAmount Net Amt in Doc Crcy
CreditAmountCurrency Currency
InvoicedAmount Net Amt in Doc Crcy
InvoicedAmountCurrency Currency
TranspChrgIsException exceptionind Exception
TranspChrgLogisticalRefDesc ref_desc Explanation
TranspChrgRateCurrency Currency
TranspChrgRateAmount Amount
TranspRateAmtIsManuallyChanged fixatincod179_i Man.-Chgd Amt
TranspChrgLineNumber Line Number
TranspChrgRefFromLineNumber calc_ref_line_no From Line No.
TranspChrgRefToLineNumber calc_ref_to_no To Line No.
TranspChargeDocumentCurrency Currency
TranspChrgAmountInDocCurrency Value Amount
TranspChargeLocalCurrency Currency
TranspChrgAmountInLoclCurrency Amount
TranspChargeIndexBaseDateTime index_base_date_ts Index Base Date
TranspChrgIndexRateTableUUID uuid_index_rate UUID Internal
TransportationRate rate_id Rate Table
TranspChargeIsMandatory mandatory Yes/No
TranspChargeRoundingProfile round_rule Rounding Prof.
TranspDimnWeightProfile dim_wt_profile Dim. Wt Prof.
TranspCalculationMethodType calc_meth_code Calc. Meth. Ty.
TranspCalculationMethodName calc_meth_name Calc. Method
TranspChargePostingStatus invoicing Invoicing Status
TranspChargeRateValue rateval_ind Rate Value
TransportationRateUUID uuid026 Rate UUID
TranspChrgRefElementUUID ref_elem_key NodeID
TranspChargeIsTechnical is_technical Local
TranspChargeIsTax charge_is_tax Tax
TranspChargeIsInvcNotRlvt setl_not_relev TRUE
_TranspChargeItem _TranspChargeItem
_TranspChargeObject _TranspChargeObject
_TranspChargeInstrnType _TranspChargeInstrnType
_TranspChargeType _TranspChargeType
_TranspChargeSubCategory _TranspChargeSubCategory
_TranspChargeCategory _TranspChargeCategory
_TranspChargeCalcReslnBase _TranspChargeCalcReslnBase
_TranspChargeCalcdAmountCrcy _TranspChargeCalcdAmountCrcy
_CreditAmountCurrency _CreditAmountCurrency
_InvoicedAmountCurrency _InvoicedAmountCurrency
_RateAmountCurrency _RateAmountCurrency
_DocumentAmountCurrency _DocumentAmountCurrency
_LocalAmountCurrency _LocalAmountCurrency
_TranspChargeCalcBase _TranspChargeCalcBase
_TranspChargeCalcRule _TranspChargeCalcRule
_TranspChargeExchRate _TranspChargeExchRate
_TranspDimnWeightProfile _TranspDimnWeightProfile
_TranspCalculationMethod _TranspCalculationMethod
_TranspCalcMethodType _TranspCalcMethodType
_TranspChargePostingStatus _TranspChargePostingStatus
_TranspChargeCalcStatusText _TranspChargeCalcStatusText
_TranspChargeRateValue _TranspChargeRateValue
_TranspCalculationDateType _TranspCalculationDateType
_TransportationRate _TransportationRate
_TransportationIndexRate _TransportationIndexRate

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_TranspChargeItemElement.
-- 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_TranspChargeItemElement AS
SELECT
  cast(db_key as /scmtms/vdm_chrg_itm_el_db_key preserving type) AS TranspChargeItemElementUUID,
  root_key AS TransportationChargesObjUUID,
  parent_key AS TranspChargeItemUUID,
  linenr AS TranspChargeCalcSheetLineNmbr,
  tccalcresins040 AS TranspChargeInstrnType,
  tcet084 AS TranspChargeType,
  tcclass037 AS TranspChargeSubCategory,
  chrgcatcd021_i AS TranspChargeCategory,
  clcresbas036 AS TranspChargeCalcReslnBase,
  calc_date_type AS TranspCalculationDateType,
  calc_date_tstmp AS TranspChargeItmElmntCalcDteTme,
  inactive AS TranspChargeIsInactive,
  cast( cast( calc_amount as abap.dec(31,6) ) * 10000 as abap.curr(31,2) ) AS TranspChargeCalcdAmount,
  cast(calc_amount_curr as /scmtms/vdm_calc_amount_crcy preserving type) AS TranspChargeCalcdAmountCrcy,
  cast( cast( credit_amount as abap.dec(31,6) ) * 10000 as abap.curr(31,2) ) AS CreditAmount,
  cast(credit_amount_curr as /scmtms/vdm_credit_amount_crcy preserving type) AS CreditAmountCurrency,
  cast( cast( invoiced_amt as abap.dec(31,6) ) * 10000 as abap.curr(31,2) ) AS InvoicedAmount,
  cast(invoiced_amt_curr as /scmtms/vdm_invc_amount_crcy preserving type) AS InvoicedAmountCurrency,
  exceptionind AS TranspChrgIsException,
  ref_desc AS TranspChrgLogisticalRefDesc,
  cast(rate_amount_curr as /scmtms/vdm_rate_amount_crcy preserving type) AS TranspChrgRateCurrency,
  cast( cast( rate_amount as abap.dec(31,6) ) * 10000 as abap.curr(31,2) ) AS TranspChrgRateAmount,
  fixatincod179_i AS TranspRateAmtIsManuallyChanged,
  cast(my_tce_linenr as /scmtms/tcc_from_line_no preserving type) AS TranspChrgLineNumber,
  calc_ref_line_no AS TranspChrgRefFromLineNumber,
  calc_ref_to_no AS TranspChrgRefToLineNumber,
  cast(currcode016 as /scmtms/doc_currency preserving type) AS TranspChargeDocumentCurrency,
  cast( cast( amount as abap.dec(31,6) ) * 10000 as abap.curr(31,2) ) AS TranspChrgAmountInDocCurrency,
  cast(currcode016lcl as /scmtms/vdm_local_amount_crcy preserving type) AS TranspChargeLocalCurrency,
  cast( cast( amountlcl as abap.dec(31,6) ) * 10000 as abap.curr(31,2) ) AS TranspChrgAmountInLoclCurrency,
  index_base_date_ts AS TranspChargeIndexBaseDateTime,
  uuid_index_rate AS TranspChrgIndexRateTableUUID,
  rate_id AS TransportationRate,
  mandatory AS TranspChargeIsMandatory,
  round_rule AS TranspChargeRoundingProfile,
  dim_wt_profile AS TranspDimnWeightProfile,
  calc_meth_code AS TranspCalculationMethodType,
  calc_meth_name AS TranspCalculationMethodName,
  invoicing AS TranspChargePostingStatus,
  rateval_ind AS TranspChargeRateValue,
  uuid026 AS TransportationRateUUID,
  ref_elem_key AS TranspChrgRefElementUUID,
  is_technical AS TranspChargeIsTechnical,
  charge_is_tax AS TranspChargeIsTax,
  setl_not_relev AS TranspChargeIsInvcNotRlvt
FROM /scmtms/d_tchrge
LEFT OUTER JOIN I_TranspChargeItem AS _TranspChargeItem ON TranspChargeItemUUID = _TranspChargeItem.TranspChargeItemUUID  -- association [1..1]
LEFT OUTER JOIN I_TranspChargeObject AS _TranspChargeObject ON TransportationChargesObjUUID = _TranspChargeObject.TransportationChargesObjUUID  -- association [1..1]
LEFT OUTER JOIN I_TranspChargeCalcBase AS _TranspChargeCalcBase ON TranspChargeItemElementUUID = _TranspChargeCalcBase.TranspChargeItemElementUUID  -- association [0..*]
LEFT OUTER JOIN I_TranspChargeCalcRule AS _TranspChargeCalcRule ON TranspChargeItemElementUUID = _TranspChargeCalcRule.TranspChargeItemElementUUID  -- association [0..*]
LEFT OUTER JOIN I_TranspChargeInstrnType AS _TranspChargeInstrnType ON TranspChargeInstrnType = _TranspChargeInstrnType.TranspChargeInstrnType  -- association [0..1]
LEFT OUTER JOIN I_TranspChargeType AS _TranspChargeType ON TranspChargeType = _TranspChargeType.TranspChargeType  -- association [0..1]
LEFT OUTER JOIN I_TranspChargeSubCategory AS _TranspChargeSubCategory ON TranspChargeSubCategory = _TranspChargeSubCategory.TranspChargeSubCategory  -- association [0..1]
LEFT OUTER JOIN I_TranspChargeCategory AS _TranspChargeCategory ON TranspChargeCategory = _TranspChargeCategory.TranspChargeCategory  -- association [0..1]
LEFT OUTER JOIN I_TranspChargeCalcReslnBase AS _TranspChargeCalcReslnBase ON TranspChargeCalcReslnBase = _TranspChargeCalcReslnBase.TranspChargeCalcReslnBase  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _TranspChargeCalcdAmountCrcy ON TranspChargeCalcdAmountCrcy = _TranspChargeCalcdAmountCrcy.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CreditAmountCurrency ON CreditAmountCurrency = _CreditAmountCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _InvoicedAmountCurrency ON InvoicedAmountCurrency = _InvoicedAmountCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _RateAmountCurrency ON TranspChrgRateCurrency = _RateAmountCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _DocumentAmountCurrency ON TranspChargeDocumentCurrency = _DocumentAmountCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _LocalAmountCurrency ON TranspChargeLocalCurrency = _LocalAmountCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_TranspChargeExchRate AS _TranspChargeExchRate ON TranspChargeItemElementUUID = _TranspChargeExchRate.TranspChargeItemElementUUID AND _TranspChargeExchRate.TranspChrgIsLoclExchRate is initial  -- association [0..1]
LEFT OUTER JOIN I_TranspDimnWeightProfile AS _TranspDimnWeightProfile ON TranspDimnWeightProfile = _TranspDimnWeightProfile.TranspDimnWeightProfile  -- association [0..1]
LEFT OUTER JOIN I_TranspCalculationMethod AS _TranspCalculationMethod ON TranspCalculationMethodType = _TranspCalculationMethod.TranspCalculationMethodType AND TranspCalculationMethodName = _TranspCalculationMethod.TranspCalculationMethodName  -- association [1..1]
LEFT OUTER JOIN I_TranspCalcMethodType AS _TranspCalcMethodType ON TranspCalculationMethodType = _TranspCalcMethodType.TranspCalculationMethodType  -- association [1..1]
LEFT OUTER JOIN I_InvoicingStatus AS _TranspChargePostingStatus ON TranspChargePostingStatus = _TranspChargePostingStatus.InvoicingStatus  -- association [0..1]
LEFT OUTER JOIN I_TranspChargeCalcStatusText AS _TranspChargeCalcStatusText ON TranspChargeCalcStatus = _TranspChargeCalcStatusText.TranspChargeCalcStatus AND _TranspChargeCalcStatusText.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_TranspChargeRateValue AS _TranspChargeRateValue ON TranspChargeRateValue = _TranspChargeRateValue.TranspChargeRateValue  -- association [1..1]
LEFT OUTER JOIN I_TranspCalculationDateType AS _TranspCalculationDateType ON TranspCalculationDateType = _TranspCalculationDateType.TranspCalculationDateType  -- association [1..1]
LEFT OUTER JOIN I_TransportationRate AS _TransportationRate ON TransportationRateUUID = _TransportationRate.TransportationRateUUID  -- association [1..1]
LEFT OUTER JOIN I_TransportationRate AS _TransportationIndexRate ON TranspChrgIndexRateTableUUID = _TransportationIndexRate.TransportationRateUUID  -- association [1..1]
;