I_ProductPlantMRP

DDL: I_PRODUCTPLANTMRP SQL: IPRDPLNTMRP Type: view BASIC

MRP area data of a Product

I_ProductPlantMRP is a Basic CDS View that provides data about "MRP area data of a Product" in SAP S/4HANA. It reads from 4 data sources (mdma, t001, t001k, t001w) and exposes 103 fields with key fields Product, MRPArea, Plant. It has 25 associations to related views.

Data Sources (4)

SourceAliasJoin Type
mdma MRPAreaData from
t001 t001 inner
t001k t001k inner
t001w t001w inner

Associations (25)

CardinalityTargetAliasCondition
[0..1] I_MRPType _MRPType $projection.MRPType = _MRPType.MRPType
[0..*] I_MRPTypeText _MRPTypeName $projection.MRPType = _MRPTypeName.MRPType
[0..1] I_MRPLotSizingProcedure _LotSizingProcedure $projection.LotSizingProcedure = _LotSizingProcedure.MaterialLotSizingProcedure
[0..*] I_MRPLotSizingProcedureText _LotSizingProcedureText $projection.LotSizingProcedure = _LotSizingProcedureText.MaterialLotSizingProcedure
[0..1] I_StorageLocation _PlantInvtryManagedLoc $projection.StorageLocation = _PlantInvtryManagedLoc.StorageLocation and $projection.Plant = _PlantInvtryManagedLoc.Plant
[1..1] I_Product _Product $projection.Product = _Product.Product
[0..1] I_MRPController _MRPResponsible $projection.MRPResponsible = _MRPResponsible.MRPController and $projection.Plant = _MRPResponsible.Plant
[0..1] I_UnitOfMeasure _LotSizeUnit $projection.LotSizeUnit = _LotSizeUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _GRHandlingCapacityUnit $projection.GRHandlingCapacityUnit = _GRHandlingCapacityUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _GIHandlingCapacityUnit $projection.GIHandlingCapacityUnit = _GIHandlingCapacityUnit.UnitOfMeasure
[0..1] I_SafetyTimePeriodProfile _SafetyTimePeriodProfile $projection.Plant = _SafetyTimePeriodProfile.Plant and $projection.PerdPrflForSftyTme = _SafetyTimePeriodProfile.SafetyTimePeriodProfile
[0..*] I_SafetyTimePeriodProfileText _SafetyTimePeriodProfileText $projection.Plant = _SafetyTimePeriodProfileText.Plant and $projection.PerdPrflForSftyTme = _SafetyTimePeriodProfileText.SafetyTimePeriodProfile
[0..1] I_ProductHeuristic _ProdnPlngHeuristic $projection.ProdnPlngHeuristic = _ProdnPlngHeuristic.ProdnPlngHeuristic
[0..1] I_ProdnPlanningProcedure _PPPlanningProcedure $projection.PPPlanningProcedure = _PPPlanningProcedure.ProdnPlanningProcedure
[0..1] I_PlanningPackage _ProductPlanningPackage $projection.ProductPlanningPackage = _ProductPlanningPackage.PlanningPackage
[0..1] I_RangeOfCoverageProfile _RangeOfCvrgPrflCode $projection.Plant = _RangeOfCvrgPrflCode.Plant and $projection.RangeOfCvrgPrflCode = _RangeOfCvrgPrflCode.RangeOfCoverageProfile
[0..*] I_RangeOfCoverageProfileText _RangeOfCvrgPrflCodeText $projection.Plant = _RangeOfCvrgPrflCodeText.Plant and $projection.RangeOfCvrgPrflCode = _RangeOfCvrgPrflCodeText.RangeOfCoverageProfile
[0..*] I_MRPGroupText _MRPGroupText $projection.Plant = _MRPGroupText.MRPPlant and $projection.MRPGroup = _MRPGroupText.MRPGroup
[0..*] I_MRPPlanningPeriodText _MRPPlanningCalendarText $projection.Plant = _MRPPlanningCalendarText.MRPPlant and $projection.MRPPlanningCalendar = _MRPPlanningCalendarText.MRPPlanningCalendar
[0..1] I_StorageCostsPercentageCode _StorageCostsPercentageCode $projection.Plant = _StorageCostsPercentageCode.Plant and $projection.StorageCostsPercentageCode = _StorageCostsPercentageCode.StorageCostsPercentageCode
[0..1] I_Plant _PlantVH $projection.Plant = _PlantVH.Plant
[0..1] I_ProductProcmtProfile _ProductProcmtProfile $projection.Plant = _ProductProcmtProfile.Plant and $projection.ProcurementSubType = _ProductProcmtProfile.ProcurementSubType
[0..*] I_ProductProcmtProfileText _ProductProcmtProfileText $projection.Plant = _ProductProcmtProfileText.Plant and $projection.ProcurementSubType = _ProductProcmtProfileText.ProcurementSubType
[0..1] I_MRPSafetyStockMethod _MRPSafetyStockMethod $projection.MRPSafetyStockMethod = _MRPSafetyStockMethod.MRPSafetyStockMethod
[0..*] I_MRPSafetyStockMethodText _MRPSafetyStockMethodText $projection.MRPSafetyStockMethod = _MRPSafetyStockMethodText.MRPSafetyStockMethod

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IPRDPLNTMRP view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label MRP area data of a Product view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #BASIC view
Metadata.ignorePropagatedAnnotations true view

Fields (103)

KeyFieldSource TableSource FieldDescription
KEY Product mdma matnr
KEY MRPArea mdma berid
KEY Plant mdma werks
MRPType mdma dismm
MRPResponsible mdma dispo
MRPGroup mdma disgr
ReorderThresholdQuantity mdma minbe
PlanAndOrderDayDetermination mdma lfrhy
PlanningTimeFence mdma fxhor
LotSizingProcedure mdma disls
RoundingProfile mdma rdprf
LotSizeRoundingQuantity mdma bstrf
MinimumLotSizeQuantity mdma bstmi
MaximumLotSizeQuantity mdma bstma
MaximumStockQuantity mdma mabst
AssemblyScrapPercent mdma ausss
ProcurementSubType mdma sobsl
StorageLocation mdma lgpro
DfltStorageLocationExtProcmt mdma lgfsb
MRPPlanningCalendar mdma mrppp
SafetyStockQuantity mdma eisbe
RangeOfCvrgPrflCode mdma rwpro
SafetyDuration mdma shzet
FixedLotSizeQuantity mdma bstfe
LotSizeIndependentCosts mdma losfx
StorageCostsPercentageCode mdma lagpr
SrvcLvl mdma lgrad
CreationDate mdma vrbdt
IsMarkedForDeletion mdma loekz
PerdPrflForSftyTme mdma shpro
IsMRPDependentRqmt mdma ahdis
DependentRqmtMRPRelevance mdma ahdis
MaintenanceStatusName mdma pstat
IsSafetyTime mdma shflg
ProductSafetyTimeMRPRelevance mdma shflg
PlannedDeliveryDurationInDays mdma plifz
IsPlannedDeliveryTime
RqmtQtyRcptTaktTmeInWrkgDays mdma takzt
PPPlanningProcedure mdma scm_rrp_type
ProdnPlngHeuristic mdma scm_heur_id
ProductPlanningGroup mdma scm_rrp_sel_group
ProductPlanningPackage mdma scm_package_id
AdvncdPlngPPDSHorizonInDays mdma convh
LotSizeUnit mdma scm_lsuom
TargetDaysSupplyInWorkDays
ReorderDaysSupplyInWorkDays
PlngCalendarPerdcLotSizing mdma scm_tstrid
LocProdGoodsReceiptProcHours
LocProdGoodsIssueProcHours
GRHandlingCapacityQuantity mdma scm_conhap
GRHandlingCapacityUnit mdma scm_hunit
GIHandlingCapacityQuantity mdma scm_conhap_out
GIHandlingCapacityUnit mdma scm_hunit_out
SrvcPartsThroughputTimeDurn
ParLocSafetyStockQuantity mdma scm_ppsaftystk
VCLSafetyStockQuantity mdma scm_safty_v
VCLParLocSafetyStockQuantity mdma scm_ppsaftystk_v
VCLReorderPointQuantity mdma scm_reord_v
VCLMaximumStockQuantity mdma scm_maxstock_v
CostFactorForStockHoldingVal mdma scm_scost_prcnt
ProductProcurementCostsVal mdma scm_proc_cost
GoodsReceiptHandlingCost mdma scm_ndcostwe
GoodsIssueHandlingCost mdma scm_ndcostwa
ConsumptionOfStorageCapacity mdma scm_coninp
ConsumptionOfStorageCapUnit mdma scm_iunit
MRPSafetyStockMethod mdma sfty_stk_meth
Currency t001 waers
BaseUnit _Product BaseUnit
MaxDaysOfSupplyIsActive mdma maxdos_flg
MaxDaysOfSupplyPenaltyAmount mdma maxdos_pen
AdvncdPlngSftyStkMeth mdma saftystock_method
AdvncdPlngTgtStkLvlMeth mdma target_stock_level_meth
SftyStkMethIsAutomlyDtmnd
PeriodFactorIsUsed mdma use_period_factor
AdvncdPlngPeriodFactorValue mdma period_factor_value
TimeDepdntStkLvlPerdFactorVal mdma period_factor_tds
LocProdStorageCostValue mdma scm_scost
SftyStkVioltnPnltyCostValue mdma scm_sspen
_MRPType _MRPType
_MRPTypeName _MRPTypeName
_MRPResponsible _MRPResponsible
_LotSizingProcedure _LotSizingProcedure
_PlantInvtryManagedLoc _PlantInvtryManagedLoc
_Product _Product
_LotSizeUnit _LotSizeUnit
_GRHandlingCapacityUnit _GRHandlingCapacityUnit
_GIHandlingCapacityUnit _GIHandlingCapacityUnit
_ProdnPlngHeuristic _ProdnPlngHeuristic
_PPPlanningProcedure _PPPlanningProcedure
_ProductPlanningPackage _ProductPlanningPackage
_RangeOfCvrgPrflCode _RangeOfCvrgPrflCode
_RangeOfCvrgPrflCodeText _RangeOfCvrgPrflCodeText
_MRPGroupText _MRPGroupText
_LotSizingProcedureText _LotSizingProcedureText
_MRPPlanningCalendarText _MRPPlanningCalendarText
_StorageCostsPercentageCode _StorageCostsPercentageCode
_SafetyTimePeriodProfile _SafetyTimePeriodProfile
_SafetyTimePeriodProfileText _SafetyTimePeriodProfileText
_PlantVH _PlantVH
_ProductProcmtProfile _ProductProcmtProfile
_ProductProcmtProfileText _ProductProcmtProfileText
_MRPSafetyStockMethod _MRPSafetyStockMethod
_MRPSafetyStockMethodText _MRPSafetyStockMethodText
@AbapCatalog.sqlViewName: 'IPRDPLNTMRP'
@AbapCatalog.preserveKey:true
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.privilegedAssociations: ['_MRPResponsible']
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'MRP area data of a Product'
@ObjectModel: {
  usageType.serviceQuality: #C,
  usageType.sizeCategory : #L,
  usageType.dataClass: #MASTER
}
@VDM.viewType : #BASIC
@Metadata.ignorePropagatedAnnotations:true
@ObjectModel.supportedCapabilities: [ #SQL_DATA_SOURCE,
                                      #CDS_MODELING_DATA_SOURCE,
                                      #CDS_MODELING_ASSOCIATION_TARGET ]
define view I_ProductPlantMRP
  as select from mdma as MRPAreaData
    inner join   t001w on MRPAreaData.werks = t001w.werks
    inner join   t001k on t001k.bwkey = t001w.bwkey
    inner join   t001  on t001.bukrs = t001k.bukrs

  association [0..1] to I_MRPType                     as _MRPType                     on  $projection.MRPType = _MRPType.MRPType
  association [0..*] to I_MRPTypeText                 as _MRPTypeName                 on  $projection.MRPType = _MRPTypeName.MRPType
  association [0..1] to I_MRPLotSizingProcedure       as _LotSizingProcedure          on  $projection.LotSizingProcedure = _LotSizingProcedure.MaterialLotSizingProcedure
  association [0..*] to I_MRPLotSizingProcedureText   as _LotSizingProcedureText      on  $projection.LotSizingProcedure = _LotSizingProcedureText.MaterialLotSizingProcedure
  association [0..1] to I_StorageLocation             as _PlantInvtryManagedLoc       on  $projection.StorageLocation = _PlantInvtryManagedLoc.StorageLocation
                                                                                      and $projection.Plant           = _PlantInvtryManagedLoc.Plant
  association [1..1] to I_Product                     as _Product                     on  $projection.Product = _Product.Product
  association [0..1] to I_MRPController               as _MRPResponsible              on  $projection.MRPResponsible = _MRPResponsible.MRPController
                                                                                      and $projection.Plant          = _MRPResponsible.Plant
  association [0..1] to I_UnitOfMeasure               as _LotSizeUnit                 on  $projection.LotSizeUnit = _LotSizeUnit.UnitOfMeasure
  association [0..1] to I_UnitOfMeasure               as _GRHandlingCapacityUnit      on  $projection.GRHandlingCapacityUnit = _GRHandlingCapacityUnit.UnitOfMeasure
  association [0..1] to I_UnitOfMeasure               as _GIHandlingCapacityUnit      on  $projection.GIHandlingCapacityUnit = _GIHandlingCapacityUnit.UnitOfMeasure

  association [0..1] to I_SafetyTimePeriodProfile     as _SafetyTimePeriodProfile     on  $projection.Plant              = _SafetyTimePeriodProfile.Plant
                                                                                      and $projection.PerdPrflForSftyTme = _SafetyTimePeriodProfile.SafetyTimePeriodProfile
  association [0..*] to I_SafetyTimePeriodProfileText as _SafetyTimePeriodProfileText on  $projection.Plant              = _SafetyTimePeriodProfileText.Plant
                                                                                      and $projection.PerdPrflForSftyTme = _SafetyTimePeriodProfileText.SafetyTimePeriodProfile

  association [0..1] to I_ProductHeuristic            as _ProdnPlngHeuristic          on  $projection.ProdnPlngHeuristic = _ProdnPlngHeuristic.ProdnPlngHeuristic
  association [0..1] to I_ProdnPlanningProcedure      as _PPPlanningProcedure         on  $projection.PPPlanningProcedure = _PPPlanningProcedure.ProdnPlanningProcedure
  association [0..1] to I_PlanningPackage             as _ProductPlanningPackage      on  $projection.ProductPlanningPackage = _ProductPlanningPackage.PlanningPackage
  association [0..1] to I_RangeOfCoverageProfile      as _RangeOfCvrgPrflCode         on  $projection.Plant               = _RangeOfCvrgPrflCode.Plant
                                                                                      and $projection.RangeOfCvrgPrflCode = _RangeOfCvrgPrflCode.RangeOfCoverageProfile

  association [0..*] to I_RangeOfCoverageProfileText  as _RangeOfCvrgPrflCodeText     on  $projection.Plant               = _RangeOfCvrgPrflCodeText.Plant
                                                                                      and $projection.RangeOfCvrgPrflCode = _RangeOfCvrgPrflCodeText.RangeOfCoverageProfile
  association [0..*] to I_MRPGroupText                as _MRPGroupText                on  $projection.Plant    = _MRPGroupText.MRPPlant
                                                                                      and $projection.MRPGroup = _MRPGroupText.MRPGroup
  association [0..*] to I_MRPPlanningPeriodText       as _MRPPlanningCalendarText     on  $projection.Plant               = _MRPPlanningCalendarText.MRPPlant
                                                                                      and $projection.MRPPlanningCalendar = _MRPPlanningCalendarText.MRPPlanningCalendar
  association [0..1] to I_StorageCostsPercentageCode  as _StorageCostsPercentageCode  on  $projection.Plant                      = _StorageCostsPercentageCode.Plant
                                                                                      and $projection.StorageCostsPercentageCode = _StorageCostsPercentageCode.StorageCostsPercentageCode

  association [0..1] to I_Plant                       as _PlantVH                     on  $projection.Plant = _PlantVH.Plant

  //  association [0..1] to E_ProductPlantMRP            as _ProductPlantMRPExt      on  $projection.Product = _ProductPlantMRPExt.Product

  //                                                                                 and $projection.MRPArea = _ProductPlantMRPExt.MRPArea

  //                                                                                 and $projection.Plant   = _ProductPlantMRPExt.Plant


  association [0..1] to I_ProductProcmtProfile        as _ProductProcmtProfile        on  $projection.Plant              = _ProductProcmtProfile.Plant
                                                                                      and $projection.ProcurementSubType = _ProductProcmtProfile.ProcurementSubType
  association [0..*] to I_ProductProcmtProfileText    as _ProductProcmtProfileText    on  $projection.Plant              = _ProductProcmtProfileText.Plant
                                                                                      and $projection.ProcurementSubType = _ProductProcmtProfileText.ProcurementSubType

  association [0..1] to I_MRPSafetyStockMethod        as _MRPSafetyStockMethod        on  $projection.MRPSafetyStockMethod = _MRPSafetyStockMethod.MRPSafetyStockMethod
  association [0..*] to I_MRPSafetyStockMethodText    as _MRPSafetyStockMethodText    on  $projection.MRPSafetyStockMethod = _MRPSafetyStockMethodText.MRPSafetyStockMethod


{
  key MRPAreaData.matnr                                                               as Product,
  key MRPAreaData.berid                                                               as MRPArea,
      @ObjectModel.foreignKey.association: '_PlantVH'
  key MRPAreaData.werks                                                               as Plant,

      @ObjectModel.foreignKey.association: '_MRPType'
      @ObjectModel.text.association: '_MRPTypeName'
      @ObjectModel.sapObjectNodeTypeReference:'MRPType'
      MRPAreaData.dismm                                                               as MRPType,
      @ObjectModel.foreignKey.association: '_MRPResponsible'
      @ObjectModel.sapObjectNodeTypeReference:'MRPController'
      MRPAreaData.dispo                                                               as MRPResponsible,
      @ObjectModel.text.association:'_MRPGroupText'
      @ObjectModel.sapObjectNodeTypeReference:'MRPGroup'
      MRPAreaData.disgr                                                               as MRPGroup,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      MRPAreaData.minbe                                                               as ReorderThresholdQuantity,
      MRPAreaData.lfrhy                                                               as PlanAndOrderDayDetermination,
      MRPAreaData.fxhor                                                               as PlanningTimeFence,
      @ObjectModel.foreignKey.association: '_LotSizingProcedure'
      @ObjectModel.text.association: '_LotSizingProcedureText'
      MRPAreaData.disls                                                               as LotSizingProcedure,
      MRPAreaData.rdprf                                                               as RoundingProfile,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      MRPAreaData.bstrf                                                               as LotSizeRoundingQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      MRPAreaData.bstmi                                                               as MinimumLotSizeQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      MRPAreaData.bstma                                                               as MaximumLotSizeQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      MRPAreaData.mabst                                                               as MaximumStockQuantity,
      MRPAreaData.ausss                                                               as AssemblyScrapPercent,
      @ObjectModel.foreignKey.association: '_ProductProcmtProfile'
      @ObjectModel.text.association:'_ProductProcmtProfileText'
      @ObjectModel.sapObjectNodeTypeReference:'ProcurementSubType'
      MRPAreaData.sobsl                                                               as ProcurementSubType,
      @ObjectModel.foreignKey.association: '_PlantInvtryManagedLoc'
      MRPAreaData.lgpro                                                               as StorageLocation,
      @ObjectModel.sapObjectNodeTypeReference:'StorageLocation'
      MRPAreaData.lgfsb                                                               as DfltStorageLocationExtProcmt,
      @ObjectModel.text.association: '_MRPPlanningCalendarText'
      @ObjectModel.sapObjectNodeTypeReference:'MRPPlanningCalendar'
      MRPAreaData.mrppp                                                               as MRPPlanningCalendar,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      MRPAreaData.eisbe                                                               as SafetyStockQuantity,
      @ObjectModel.foreignKey.association: '_RangeOfCvrgPrflCode'
      @ObjectModel.text.association:'_RangeOfCvrgPrflCodeText'
      @ObjectModel.sapObjectNodeTypeReference:'MatlStkRangeOfCoverageProfile'
      MRPAreaData.rwpro                                                               as RangeOfCvrgPrflCode,
      MRPAreaData.shzet                                                               as SafetyDuration,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      MRPAreaData.bstfe                                                               as FixedLotSizeQuantity,
      @Semantics.amount.currencyCode: 'Currency'
      MRPAreaData.losfx                                                               as LotSizeIndependentCosts,
      @ObjectModel.foreignKey.association: '_StorageCostsPercentageCode'
      @ObjectModel.sapObjectNodeTypeReference:'StorageCostsPercentageCode'
      MRPAreaData.lagpr                                                               as StorageCostsPercentageCode,
      MRPAreaData.lgrad                                                               as SrvcLvl,
      MRPAreaData.vrbdt                                                               as CreationDate,
      MRPAreaData.loekz                                                               as IsMarkedForDeletion,
      @ObjectModel.foreignKey.association: '_SafetyTimePeriodProfile'
      @ObjectModel.text.association:'_SafetyTimePeriodProfileText'
      @ObjectModel.sapObjectNodeTypeReference:'MatlStkSafetyTimePeriodProfile'
      MRPAreaData.shpro                                                               as PerdPrflForSftyTme,
      @VDM.lifecycle:{
             status: #DEPRECATED,
             successor: 'DependentRqmtMRPRelevance'
      }
      MRPAreaData.ahdis                                                               as IsMRPDependentRqmt,
      MRPAreaData.ahdis                                                               as DependentRqmtMRPRelevance,
      MRPAreaData.pstat                                                               as MaintenanceStatusName,
      @VDM.lifecycle:{
             status: #DEPRECATED,
             successor: 'ProductSafetyTimeMRPRelevance'
      }
      MRPAreaData.shflg                                                               as IsSafetyTime,
      MRPAreaData.shflg                                                               as ProductSafetyTimeMRPRelevance,
      MRPAreaData.plifz                                                               as PlannedDeliveryDurationInDays,
      cast(MRPAreaData.plifzx as isplanneddeliverytime preserving type )              as IsPlannedDeliveryTime,
      //takzt                                                      as     TaktTime,

      MRPAreaData.takzt                                                               as RqmtQtyRcptTaktTmeInWrkgDays,
      // proc / ppds fields for MRP Area

      @ObjectModel.foreignKey.association: '_PPPlanningProcedure'
      MRPAreaData.scm_rrp_type                                                        as PPPlanningProcedure,
      @ObjectModel.foreignKey.association: '_ProdnPlngHeuristic'
      MRPAreaData.scm_heur_id                                                         as ProdnPlngHeuristic,

      MRPAreaData.scm_rrp_sel_group                                                   as ProductPlanningGroup,
      @ObjectModel.foreignKey.association: '_ProductPlanningPackage'
      MRPAreaData.scm_package_id                                                      as ProductPlanningPackage,
      MRPAreaData.convh                                                               as AdvncdPlngPPDSHorizonInDays,

      //lot size fields

      @ObjectModel.foreignKey.association: '_LotSizeUnit'
      MRPAreaData.scm_lsuom                                                           as LotSizeUnit,
      cast (MRPAreaData.scm_target_dur as cmd_prd_target_dur_n preserving type )      as TargetDaysSupplyInWorkDays,
      cast (MRPAreaData.scm_reord_dur as cmd_prd_reord_dur_n preserving type )        as ReorderDaysSupplyInWorkDays,
      //   @ObjectModel.foreignKey.association: '_PlngCalendarPerdcLotSizing'

      MRPAreaData.scm_tstrid                                                          as PlngCalendarPerdcLotSizing,

      // GR/GI fields

      cast (MRPAreaData.scm_grprt as cmd_prd_good_rcpt_proc_time_n preserving type )  as LocProdGoodsReceiptProcHours,
      cast (MRPAreaData.scm_giprt as cmd_prd_good_issue_proc_time_n preserving type ) as LocProdGoodsIssueProcHours,
      @Semantics.quantity.unitOfMeasure: 'GRHandlingCapacityUnit'
      MRPAreaData.scm_conhap                                                          as GRHandlingCapacityQuantity,
      @ObjectModel.foreignKey.association: '_GRHandlingCapacityUnit'
      @Semantics.unitOfMeasure: true
      MRPAreaData.scm_hunit                                                           as GRHandlingCapacityUnit,
      @Semantics.quantity.unitOfMeasure: 'GIHandlingCapacityUnit'
      MRPAreaData.scm_conhap_out                                                      as GIHandlingCapacityQuantity,
      @ObjectModel.foreignKey.association: '_GIHandlingCapacityUnit'
      @Semantics.unitOfMeasure: true
      MRPAreaData.scm_hunit_out                                                       as GIHandlingCapacityUnit,   
      cast(MRPAreaData.scm_thruput_time  as cmd_prd_srvc_prts_thruput_time preserving type )    as SrvcPartsThroughputTimeDurn,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      MRPAreaData.scm_ppsaftystk                                                      as ParLocSafetyStockQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      MRPAreaData.scm_safty_v                                                         as VCLSafetyStockQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      MRPAreaData.scm_ppsaftystk_v                                                    as VCLParLocSafetyStockQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      MRPAreaData.scm_reord_v                                                         as VCLReorderPointQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      MRPAreaData.scm_maxstock_v                                                      as VCLMaximumStockQuantity,
      MRPAreaData.scm_scost_prcnt                                                     as CostFactorForStockHoldingVal,
      MRPAreaData.scm_proc_cost                                                       as ProductProcurementCostsVal,
      MRPAreaData.scm_ndcostwe                                                        as GoodsReceiptHandlingCost,
      MRPAreaData.scm_ndcostwa                                                        as GoodsIssueHandlingCost,
      @Semantics.quantity.unitOfMeasure: 'ConsumptionOfStorageCapUnit'
      MRPAreaData.scm_coninp                                                          as ConsumptionOfStorageCapacity,
      @Semantics.unitOfMeasure: true
      MRPAreaData.scm_iunit                                                           as ConsumptionOfStorageCapUnit,
      @ObjectModel.foreignKey.association: '_MRPSafetyStockMethod'
      @ObjectModel.text.association:'_MRPSafetyStockMethodText'
      MRPAreaData.sfty_stk_meth                                                       as MRPSafetyStockMethod,
      @Semantics.currencyCode: true
      t001.waers                                                                      as Currency,
      @Semantics.unitOfMeasure: true
      _Product.BaseUnit                                                               as BaseUnit,

      MRPAreaData.maxdos_flg                                                          as MaxDaysOfSupplyIsActive,
      MRPAreaData.maxdos_pen                                                          as MaxDaysOfSupplyPenaltyAmount,
      MRPAreaData.saftystock_method                                                   as AdvncdPlngSftyStkMeth,
      MRPAreaData.target_stock_level_meth                                             as AdvncdPlngTgtStkLvlMeth,
      cast(MRPAreaData.auto_det_sftystk_meth as xfeld)                                as SftyStkMethIsAutomlyDtmnd,
      MRPAreaData.use_period_factor                                                   as PeriodFactorIsUsed,
      MRPAreaData.period_factor_value                                                 as AdvncdPlngPeriodFactorValue,
      MRPAreaData.period_factor_tds                                                   as TimeDepdntStkLvlPerdFactorVal,
      MRPAreaData.scm_scost                                                           as LocProdStorageCostValue,
      MRPAreaData.scm_sspen                                                           as SftyStkVioltnPnltyCostValue,
      
      _MRPType,
      _MRPTypeName,
      _MRPResponsible,
      _LotSizingProcedure,
      _PlantInvtryManagedLoc,
      _Product,
      _LotSizeUnit,
      _GRHandlingCapacityUnit,
      _GIHandlingCapacityUnit,
      _ProdnPlngHeuristic,
      _PPPlanningProcedure,
      _ProductPlanningPackage,
      _RangeOfCvrgPrflCode,
      _RangeOfCvrgPrflCodeText,
      _MRPGroupText,
      _LotSizingProcedureText,
      _MRPPlanningCalendarText,
      _StorageCostsPercentageCode,
      _SafetyTimePeriodProfile,
      _SafetyTimePeriodProfileText,
      _PlantVH,
      _ProductProcmtProfile,
      _ProductProcmtProfileText,
      _MRPSafetyStockMethod,
      _MRPSafetyStockMethodText
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PRODUCT",
"MDMA",
"T001",
"T001K",
"T001W"
],
"ASSOCIATED":
[
"I_MRPCONTROLLER",
"I_MRPGROUPTEXT",
"I_MRPLOTSIZINGPROCEDURE",
"I_MRPLOTSIZINGPROCEDURETEXT",
"I_MRPPLANNINGPERIODTEXT",
"I_MRPSAFETYSTOCKMETHOD",
"I_MRPSAFETYSTOCKMETHODTEXT",
"I_MRPTYPE",
"I_MRPTYPETEXT",
"I_PLANNINGPACKAGE",
"I_PLANT",
"I_PRODNPLANNINGPROCEDURE",
"I_PRODUCT",
"I_PRODUCTHEURISTIC",
"I_PRODUCTPROCMTPROFILE",
"I_PRODUCTPROCMTPROFILETEXT",
"I_RANGEOFCOVERAGEPROFILE",
"I_RANGEOFCOVERAGEPROFILETEXT",
"I_SAFETYTIMEPERIODPROFILE",
"I_SAFETYTIMEPERIODPROFILETEXT",
"I_STORAGECOSTSPERCENTAGECODE",
"I_STORAGELOCATION",
"I_UNITOFMEASURE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/