I_Order

DDL: I_ORDER SQL: IORDER Type: view BASIC Package: VDM_PP_SFC

Order Header

I_Order is a Basic CDS View (Dimension) that provides data about "Order Header" in SAP S/4HANA. It reads from 1 data source (I_OrderBasic) and exposes 25 fields with key field OrderID. It has 4 associations to related views. It is exposed through 1 OData service (FARR_SD_REV_CATCHUP). Part of development package VDM_PP_SFC.

Data Sources (1)

SourceAliasJoin Type
I_OrderBasic aufk from

Associations (4)

CardinalityTargetAliasCondition
[1..1] E_LogisticsOrder _Extension $projection.OrderID = _Extension.OrderID
[1..1] I_Plant _PlantText $projection.Plant = _PlantText.Plant
[0..1] I_CompanyCode _CompanyCodeText $projection.CompanyCode = _CompanyCodeText.CompanyCode
[0..1] I_ControllingArea _ControllingAreaText $projection.ControllingArea = _ControllingAreaText.ControllingArea

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName IORDER view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
Analytics.dataCategory #DIMENSION view
ClientHandling.algorithm #SESSION_VARIABLE view
ClientHandling.type #CLIENT_DEPENDENT view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.representativeKey OrderID view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Search.searchable true view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
EndUserText.label Order Header view

OData Services (1)

ServiceBindingVersionContractRelease
FARR_SD_REV_CATCHUP FARR_SDB_REV_CATCHUP V2 C1 NOT_RELEASED

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY OrderID I_OrderBasic OrderID
OrderCategory I_OrderBasic OrderCategory
OrderType I_OrderBasic OrderType
OrderInternalID afko OrderInternalID
OrderDescription I_OrderBasic OrderDescription
OrderHasLongText I_OrderBasic OrderHasLongText
Plant I_OrderBasic Plant
MRPController afko MRPController
ControllingArea I_OrderBasic ControllingArea
CompanyCode I_OrderBasic CompanyCode
ProfitCenter I_OrderBasic ProfitCenter
CreationDate I_OrderBasic CreationDate
CreationTime I_OrderBasic CreationTime
LastChangeDate I_OrderBasic LastChangeDate
LastChangeTime I_OrderBasic LastChangeTime
ObjectInternalID I_OrderBasic ObjectInternalID
IsStatisticalOrder I_OrderBasic IsStatisticalOrder
IsMarkedForDeletion I_OrderBasic IsMarkedForDeletion
_OrderCategory I_OrderBasic _OrderCategory
_OrderType I_OrderBasic _OrderType
_OrderInternalID afko _OrderInternalID
_OrderHierarchyNode I_OrderBasic _OrderHierarchyNode
_PlantText _PlantText
_CompanyCodeText _CompanyCodeText
_ControllingAreaText _ControllingAreaText
@AbapCatalog.sqlViewName: 'IORDER'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Analytics.dataCategory: #DIMENSION
@ClientHandling.algorithm: #SESSION_VARIABLE
@ClientHandling.type: #CLIENT_DEPENDENT
@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ObjectModel.supportedCapabilities: [#ANALYTICAL_DIMENSION, #CDS_MODELING_ASSOCIATION_TARGET, #SEARCHABLE_ENTITY]
@ObjectModel.representativeKey: 'OrderID'
@ObjectModel.semanticKey: ['OrderID']
@ObjectModel.usageType: {serviceQuality: #A, sizeCategory: #L, dataClass: #TRANSACTIONAL}
@Search.searchable: true
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC
@EndUserText.label: 'Order Header'
// basic view for existence check on orders of any category (AUFTYP); 

// details on orders are provided e.g. by basic views I_LogisticsOrder or I_InternalOrder        


/*+[hideWarning] { "IDS" : [ "CALCULATED_FIELD_CHECK" ]  } */
define view I_Order
  as select from           I_OrderBasic          as aufk
    left outer to one join I_LogisticsOrderBasic as afko on afko.OrderID = aufk.OrderID

  association [1..1] to E_LogisticsOrder as _Extension            on $projection.OrderID = _Extension.OrderID

  // Text relations

  association [1..1] to I_Plant           as _PlantText           on  $projection.Plant = _PlantText.Plant
  association [0..1] to I_CompanyCode     as _CompanyCodeText     on  $projection.CompanyCode = _CompanyCodeText.CompanyCode
  association [0..1] to I_ControllingArea as _ControllingAreaText on  $projection.ControllingArea = _ControllingAreaText.ControllingArea 
  
{
  // Key

  @ObjectModel.hierarchy.association: '_OrderHierarchyNode'
  @ObjectModel.text.element: ['OrderDescription']
  @Search:{
    defaultSearchElement: true,
    fuzzinessThreshold: 0.8,
    ranking: #HIGH
  }
  key aufk.OrderID,

  // Category and Type

  @ObjectModel.foreignKey.association: '_OrderCategory'
  @Search:{
    defaultSearchElement: true,
    fuzzinessThreshold: 0.8,
    ranking: #LOW
  }
  aufk.OrderCategory,
  @ObjectModel.foreignKey.association: '_OrderType'
  @Search:{
    defaultSearchElement: true,
    fuzzinessThreshold: 0.8,
    ranking: #LOW
  }
  aufk.OrderType,

  // Internal ID

  @ObjectModel.foreignKey.association: '_OrderInternalID'
  @Search:{
    defaultSearchElement: true,
    fuzzinessThreshold: 0.8,
    ranking: #LOW
  }
  afko.OrderInternalID,

  // Text

  @Semantics.text: true
  @Search:{
    defaultSearchElement: true,
    fuzzinessThreshold: 0.8,
    ranking: #LOW
  }
  aufk.OrderDescription,
  aufk.OrderHasLongText,

  // Additionals

  @Consumption.valueHelpDefinition: [ { 
    entity: { name: 'I_PlantStdVH', 
    element: 'Plant' } 
  } ]
  @Search:{
    defaultSearchElement: true,
    fuzzinessThreshold: 0.8,
    ranking: #LOW
  }
  aufk.Plant,

  @Search:{
    defaultSearchElement: true,
    fuzzinessThreshold: 0.8,
    ranking: #LOW
  }
  afko.MRPController,

  @Consumption.valueHelpDefinition: [ { 
    entity: { name: 'I_ControllingAreaStdVH', 
    element: 'ControllingArea' } 
  } ]
  @Search:{
    defaultSearchElement: true,
    fuzzinessThreshold: 0.8,
    ranking: #LOW
  }
  aufk.ControllingArea,

  @Consumption.valueHelpDefinition: [ { 
    entity: { name: 'I_CompanyCodeStdVH', 
    element: 'CompanyCode' } 
  } ]
  @Search:{
    defaultSearchElement: true,
    fuzzinessThreshold: 0.8,
    ranking: #LOW
  }
  aufk.CompanyCode,

  @Consumption.valueHelpDefinition: [ { 
    entity: { name: 'I_ProfitCenterStdVH', 
    element: 'ProfitCenter' } 
  } ]
  @Search:{
    defaultSearchElement: true,
    fuzzinessThreshold: 0.8,
    ranking: #LOW
  }
  aufk.ProfitCenter,

  // Admin

  @Semantics.systemDate.createdAt: true
  aufk.CreationDate,
  @Semantics.systemTime.createdAt: true
  aufk.CreationTime,
  @Semantics.systemDate.lastChangedAt: true
  aufk.LastChangeDate,
  @Semantics.systemTime.lastChangedAt: true
  aufk.LastChangeTime,


  aufk.ObjectInternalID,
  aufk.IsStatisticalOrder,
  aufk.IsMarkedForDeletion,

  // Associations

  aufk._OrderCategory,
  aufk._OrderType,
  afko._OrderInternalID,
  aufk._OrderHierarchyNode,

  // Text relations

  _PlantText,
  _CompanyCodeText,
  _ControllingAreaText
};