P_RunOverheadOrder

DDL: P_RUNOVERHEADORDER SQL: PRUNOVHDORDER Type: view COMPOSITE Package: ODATA_OVERHEAD_CALC_SINGLE

List of Orders for Actual Overhead Calculation Run

P_RunOverheadOrder is a Composite CDS View that provides data about "List of Orders for Actual Overhead Calculation Run" in SAP S/4HANA. It reads from 2 data sources (I_InternalOrder, I_MaintenanceOrder) and exposes 10 fields with key field OrderID. Part of development package ODATA_OVERHEAD_CALC_SINGLE.

Data Sources (2)

SourceAliasJoin Type
I_InternalOrder _InternalOrder union
I_MaintenanceOrder _MaintenanceOrder from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PRUNOVHDORDER view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY OrderID MaintenanceOrder
OrderDescription MaintenanceOrderDesc
ControllingObject MaintenanceOrderInternalID
ControllingArea ControllingArea
CompanyCode CompanyCode
OrderDescription InternalOrderDescription
ControllingObject ControllingObject
ControllingArea ControllingArea
CompanyCode CompanyCode
_CompanyCode _CompanyCode
@AbapCatalog.sqlViewName: 'PRUNOVHDORDER'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #COMPOSITE
@VDM.private: true

define view P_RunOverheadOrder
  as select from I_MaintenanceOrder as _MaintenanceOrder
{
      @ObjectModel.text.element: 'OrderDescription'
  key MaintenanceOrder           as OrderID,

      @Semantics.text: true
      MaintenanceOrderDesc       as OrderDescription,

      MaintenanceOrderInternalID as ControllingObject,

      ControllingArea            as ControllingArea,

      @ObjectModel.foreignKey.association: '_CompanyCode'
      CompanyCode                as CompanyCode,

      _CompanyCode
}

union select from I_InternalOrder as _InternalOrder
{
      @ObjectModel.text.element: 'OrderDescription'
  key InternalOrder            as OrderID,

      @Semantics.text: true
      InternalOrderDescription as OrderDescription,

      ControllingObject        as ControllingObject,

      ControllingArea          as ControllingArea,

      @ObjectModel.foreignKey.association: '_CompanyCode'
      CompanyCode              as CompanyCode,

      _CompanyCode
}