I_FRTCOSTDISTRROOT
Freight Cost Distribution Root
I_FRTCOSTDISTRROOT is a CDS View in S/4HANA. Freight Cost Distribution Root. 1 CDS views read from this table.
CDS Views using this table (1)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| C_FrtCostDistrRoot | view | from | CONSUMPTION | Freight Cost Distribution Root |
@AbapCatalog.entityBuffer.definitionAllowed: false
@EndUserText.label: 'Freight Cost Distribution Root'
@Metadata.ignorePropagatedAnnotations: true
@VDM: {viewType: #BASIC}
@ObjectModel: {representativeKey: 'FrtCostDistrRootUUID',
usageType: {serviceQuality: #A,
sizeCategory: #XL,
dataClass: #TRANSACTIONAL},
sapObjectNodeType.name: 'FreightCostDistribution' }
//@Analytics.technicalName: 'IFRTCDROOT'
@AccessControl: {authorizationCheck : #PRIVILEGED_ONLY,
personalData.blocking:#('TRANSACTIONAL_DATA')}
define root view entity I_FrtCostDistrRoot
as select from /scmtms/d_tcdrot
association [0..1] to I_FrtCostDistrStatus as _DistrStatus on $projection.FrtCostDistrStatus = _DistrStatus.FrtCostDistrStatus
association [0..1] to I_FrtCostDistrRule as _DistrRule on $projection.FrtCostDistrRule = _DistrRule.FrtCostDistrRule
association [0..1] to I_FrtCostDistrLevel as _DistrLevel on $projection.FrtCostDistrLevel = _DistrLevel.FrtCostDistrLevel
association [1..1] to I_Currency as _DocCurrency on $projection.FrtCostDistrTotAmtCrcy = _DocCurrency.Currency
{
key cast(db_key as /bobf/conf_key preserving type) as FrtCostDistrRootUUID,
cast(host_key as /bobf/conf_key preserving type) as TransportationOrderUUID,
@ObjectModel.foreignKey.association: '_DistrLevel'
distr_level as FrtCostDistrLevel,
@ObjectModel.foreignKey.association: '_DistrRule'
distr_rule as FrtCostDistrRule,
@ObjectModel.foreignKey.association: '_DistrStatus'
distr_status as FrtCostDistrStatus,
distrdate as FrtCostDistrDate,
@Semantics.amount.currencyCode: 'FrtCostDistrTotAmtCrcy'
//cast((cast(net_amount as /scmtms/amount preserving type) * 10000) as /scmtms/amount) as FrtCostDistTotAmount, // S4CE 1902
cast( cast( net_amount as abap.dec(31,6) ) * 10000 as abap.curr(31,2) ) as FrtCostDistTotAmount,
@Consumption: { filter.hidden: true }
@ObjectModel.foreignKey.association: '_DocCurrency'
doc_currency as FrtCostDistrTotAmtCrcy,
_DistrRule,
_DistrLevel,
_DistrStatus,
_DocCurrency
}