I_LogisticsOrderBasic

DDL: I_LOGISTICSORDERBASIC SQL: ILOGSORDBASIC Type: view BASIC

Logistics Order Basic

I_LogisticsOrderBasic is a Basic CDS View (Dimension) that provides data about "Logistics Order Basic" in SAP S/4HANA. It reads from 1 data source (afko) and exposes 102 fields with key field OrderID. It has 19 associations to related views.

Data Sources (1)

SourceAliasJoin Type
afko afko from

Associations (19)

CardinalityTargetAliasCondition
[1..1] I_OrderInternalID _OrderInternalID $projection.OrderInternalID = _OrderInternalID.OrderInternalID
[1..1] I_Order _Order $projection.OrderID = _Order.OrderID
[0..1] I_LogisticsOrderPriority _OrderPriority $projection.PriorityCode = _OrderPriority.PriorityCode
[0..1] I_UnitOfMeasure _BaseUnit $projection.BaseUnit = _BaseUnit.UnitOfMeasure
[0..1] I_ReservationDocumentHeader _Reservation $projection.Reservation = _Reservation.Reservation
[0..1] I_ReservationDocumentHeader _SettlementReservation $projection.SettlementReservation = _SettlementReservation.Reservation
[0..1] I_ProjectNetwork _SuperiorProjectNetwork $projection.SuperiorProjectNetwork = _SuperiorProjectNetwork.ProjectNetwork
[0..1] I_ProjectBasicData _Project $projection.ProjectInternalID = _Project.ProjectInternalID
[0..1] I_CapacityRequirement _CapacityRequirement $projection.CapacityRequirement = _CapacityRequirement.CapacityRequirement
[0..1] I_ConfirmationGroup _ConfirmationGroup $projection.MfgOrderConfirmation = _ConfirmationGroup.ConfirmationGroup
[0..1] I_ChangeMaster _ChangeNumber $projection.ChangeNumber = _ChangeNumber.ChangeNumber
[0..1] I_BillOfOperationsType _BillOfOperationsType $projection.BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType
[0..1] I_BillOfOperationsGroup _BillOfOperationsGroup $projection.BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsGroup.BillOfOperationsGroup
[0..1] I_BillOfOperations _BillOfOperations $projection.BillOfOperationsType = _BillOfOperations.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperations.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperations.BillOfOperationsVariant
[0..1] I_BillOfOperationsChangeState _BillOfOperationsChangeState $projection.BillOfOperationsType = _BillOfOperationsChangeState.BillOfOperationsType and $projection.BillOfOperationsGroup = _BillOfOperationsChangeState.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _BillOfOperationsChangeState.BillOfOperationsVariant and $projection.BOOInternalVersionCounter = _BillOfOperationsChangeState.BOOInternalVersionCounter
[0..1] I_BillOfOperationsUsage _BillOfOperationsUsage $projection.BillOfOperationsUsage = _BillOfOperationsUsage.BillOfOperationsUsage
[0..1] I_InspectionLot _InspectionLot $projection.InspectionLot = _InspectionLot.InspectionLot
[0..1] I_SchedulingType _BasicSchedulingType $projection.BasicSchedulingType = _BasicSchedulingType.SchedulingType
[0..1] I_SchedulingType _ForecastSchedulingType $projection.ForecastSchedulingType = _ForecastSchedulingType.SchedulingType

Annotations (20)

NameValueLevelField
AbapCatalog.sqlViewName ILOGSORDBASIC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
ClientHandling.algorithm #SESSION_VARIABLE view
ClientHandling.type #CLIENT_DEPENDENT view
Consumption.ranked true view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #NONE 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 Logistics Order Basic view

Fields (102)

KeyFieldSource TableSource FieldDescription
KEY OrderID afko aufnr
OrderInternalID
PriorityCode afko aprio
MfgOrderIsPartOfCollvOrder afko prodnet
OrderIsNotCostedAutomatically afko naucost
OrdIsNotSchedldAutomatically afko nauterm
MfgOrderHierarchyLevel afko stufe
ProdnProcgIsFlexible afko flexible_processing
MfgOrderSuperiorMfgOrder afko maufnr
lead_aufnrasLeadingOrder
sfcpfasProductionSchedulingProfile
plgrpasResponsiblePlannerGroup
ProjectInternalID
aufntasSuperiorProjectNetwork
Reservation afko rsnum
SettlementReservation afko arsnr
MfgOrderConfirmation afko rueck
MfgOrderConfirmationCount afko rmzhl
CapacityRequirement afko bedid
InspectionLot afko prueflos
ChangeNumber afko aennr
BasicSchedulingType
ProdAvailyCheckPlanningType afko plart
NtwkAccountAssignmentCode afko netzkont
NetworkProfile afko profid
ProductConfiguration afko cuobj
MaterialRevisionLevel
CapacityActiveVersion afko kapversa
CapacityRqmtHasNotToBeCreated afko kbed
OrderSequenceNumber afko cy_seqnr
ExtdQualityCheckIsRequired afko extended_quality_checks
ActualCostsCostingVariant afko klvari
PlannedCostsCostingVariant afko klvarp
Material
BillOfOperationsType
BillOfOperationsGroup
BillOfOperationsVariant
BOOInternalVersionCounter afko zaehl
BillOfOperationsUsage
BillOfOperationsVersion afko tl_versn
BOOExplosionDate afko plauf
BOOValidityStartDate afko pdatv
plnnrasBillOfOperations
BillOfMaterialCategory
BillOfMaterial
BillOfMaterialVariant afko stlal
BillOfMaterialVariantUsage afko stlan
BillOfMaterialVersion afko bom_versn
BillOfMaterialStatus afko stlst
BOMExplosionDate afko aufld
BOMValidityStartDate afko sdatv
MasterProductionOrder afko fsh_mprod_ord
SchedulingFloatProfile
FloatBeforeProductionInWrkDays
FloatAfterProductionInWorkDays
ReleasePeriodInWorkDays afko freiz
PlannedStartDate afko gstrp
PlannedStartTime afko gsuzp
PlannedEndDate afko gltrp
PlannedEndTime afko gluzp
PlannedReleaseDate
ScheduledBasicStartDate afko gstrs
ScheduledBasicStartTime afko gsuzs
ScheduledBasicEndDate
ScheduledBasicEndTime afko gluzs
ScheduledReleaseDate
ActualStartDate
ActualStartTime afko gsuzi
ActualEndDate afko gltri
ActualReleasedDate
ConfirmedEndDate afko getri
ConfirmedEndTime afko geuzi
ScheduledFcstdReleaseDate afko ftrps
TotalCommitmentDate afko gsbtr
LastScheduledDate afko trmdt
BaseUnit afko gmein
OrderPlannedTotalQty afko gamng
OrderPlannedScrapQty afko gasmg
OrderConfirmedYieldQty afko igmng
OrderConfirmedScrapQty afko iasmg
MfgOrderConfirmedReworkQty afko rmnga
TotalConfirmedQuantity
MaterialFromLotSizeQuantity afko slsvn
MaterialToLotSizeQuantity afko slsbs
_BaseUnit _BaseUnit
_Order _Order
_OrderInternalID _OrderInternalID
_OrderPriority _OrderPriority
_BillOfOperationsType _BillOfOperationsType
_BillOfOperationsGroup _BillOfOperationsGroup
_BillOfOperations _BillOfOperations
_BillOfOperationsChangeState _BillOfOperationsChangeState
_BillOfOperationsUsage _BillOfOperationsUsage
_Reservation _Reservation
_SettlementReservation _SettlementReservation
_ChangeNumber _ChangeNumber
_CapacityRequirement _CapacityRequirement
_ConfirmationGroup _ConfirmationGroup
_SuperiorProjectNetwork _SuperiorProjectNetwork
_Project _Project
_InspectionLot _InspectionLot
_BasicSchedulingType _BasicSchedulingType
@AbapCatalog.sqlViewName: 'ILOGSORDBASIC'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED
@Analytics.dataCategory: #DIMENSION
@Analytics.internalName: #LOCAL
@ClientHandling.algorithm: #SESSION_VARIABLE
@ClientHandling.type: #CLIENT_DEPENDENT
@Consumption.ranked: true
@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.modelingPattern: #NONE
@ObjectModel.supportedCapabilities: [#CDS_MODELING_ASSOCIATION_TARGET, #CDS_MODELING_DATA_SOURCE, #SQL_DATA_SOURCE, #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: 'Logistics Order Basic'
// Basic view for order header table AFKO only (mainly logistics/work orders)

// Due to the high number of consumers, this CDS view is protected against incompatible changes


define view I_LogisticsOrderBasic
  as select from afko as afko

  association [1..1] to I_OrderInternalID             as _OrderInternalID             on  $projection.OrderInternalID = _OrderInternalID.OrderInternalID
  association [1..1] to I_Order                       as _Order                       on  $projection.OrderID = _Order.OrderID
  association [0..1] to I_LogisticsOrderPriority      as _OrderPriority               on  $projection.PriorityCode = _OrderPriority.PriorityCode
  association [0..1] to I_UnitOfMeasure               as _BaseUnit                    on  $projection.BaseUnit = _BaseUnit.UnitOfMeasure
  association [0..1] to I_ReservationDocumentHeader   as _Reservation                 on  $projection.Reservation = _Reservation.Reservation
  association [0..1] to I_ReservationDocumentHeader   as _SettlementReservation       on  $projection.SettlementReservation = _SettlementReservation.Reservation
  association [0..1] to I_ProjectNetwork              as _SuperiorProjectNetwork      on  $projection.SuperiorProjectNetwork = _SuperiorProjectNetwork.ProjectNetwork
  association [0..1] to I_ProjectBasicData            as _Project                     on  $projection.ProjectInternalID = _Project.ProjectInternalID
  association [0..1] to I_CapacityRequirement         as _CapacityRequirement         on  $projection.CapacityRequirement = _CapacityRequirement.CapacityRequirement
  association [0..1] to I_ConfirmationGroup           as _ConfirmationGroup           on  $projection.MfgOrderConfirmation = _ConfirmationGroup.ConfirmationGroup
  association [0..1] to I_ChangeMaster                as _ChangeNumber                on  $projection.ChangeNumber = _ChangeNumber.ChangeNumber
  association [0..1] to I_BillOfOperationsType        as _BillOfOperationsType        on  $projection.BillOfOperationsType  = _BillOfOperationsType.BillOfOperationsType
  association [0..1] to I_BillOfOperationsGroup       as _BillOfOperationsGroup       on  $projection.BillOfOperationsType  = _BillOfOperationsGroup.BillOfOperationsType
                                                                                      and $projection.BillOfOperationsGroup = _BillOfOperationsGroup.BillOfOperationsGroup
  association [0..1] to I_BillOfOperations            as _BillOfOperations            on  $projection.BillOfOperationsType    = _BillOfOperations.BillOfOperationsType
                                                                                      and $projection.BillOfOperationsGroup   = _BillOfOperations.BillOfOperationsGroup
                                                                                      and $projection.BillOfOperationsVariant = _BillOfOperations.BillOfOperationsVariant
  association [0..1] to I_BillOfOperationsChangeState as _BillOfOperationsChangeState on  $projection.BillOfOperationsType      = _BillOfOperationsChangeState.BillOfOperationsType
                                                                                      and $projection.BillOfOperationsGroup     = _BillOfOperationsChangeState.BillOfOperationsGroup
                                                                                      and $projection.BillOfOperationsVariant   = _BillOfOperationsChangeState.BillOfOperationsVariant
                                                                                      and $projection.BOOInternalVersionCounter = _BillOfOperationsChangeState.BOOInternalVersionCounter
  association [0..1] to I_BillOfOperationsUsage       as _BillOfOperationsUsage       on  $projection.BillOfOperationsUsage = _BillOfOperationsUsage.BillOfOperationsUsage
  association [0..1] to I_InspectionLot               as _InspectionLot               on  $projection.InspectionLot = _InspectionLot.InspectionLot
  association [0..1] to I_SchedulingType              as _BasicSchedulingType         on  $projection.BasicSchedulingType = _BasicSchedulingType.SchedulingType
  association [0..1] to I_SchedulingType              as _ForecastSchedulingType      on  $projection.ForecastSchedulingType = _ForecastSchedulingType.SchedulingType

{
      @Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}  
  key afko.aufnr                                                     as OrderID,

      // Internal Key

      @ObjectModel.foreignKey.association: '_OrderInternalID'
      cast(afko.aufpl as pph_aufpl preserving type)                  as OrderInternalID,

      // Attributes

      @ObjectModel.foreignKey.association: '_OrderPriority'
      afko.aprio                                                     as PriorityCode,
      @Semantics.booleanIndicator 
      afko.prodnet                                                   as MfgOrderIsPartOfCollvOrder,
      @Semantics.booleanIndicator 
      afko.naucost                                                   as OrderIsNotCostedAutomatically,
      @Semantics.booleanIndicator 
      afko.nauterm                                                   as OrdIsNotSchedldAutomatically,
      afko.stufe                                                     as MfgOrderHierarchyLevel,
      afko.flexible_processing                                       as ProdnProcgIsFlexible,

      // Assignments

      afko.maufnr                                                    as MfgOrderSuperiorMfgOrder,
--    @ObjectModel.foreignKey.association: '_LeadingOrder'
      afko.lead_aufnr                                                as LeadingOrder,
--    @ObjectModel.foreignKey.association: '_MRPController'
      cast(afko.dispo as pph_dispo preserving type)                  as MRPController,
--    @ObjectModel.foreignKey.association: '_ProductionSupervisor'
      cast(afko.fevor as pph_fevor preserving type)                  as ProductionSupervisor,
--    @ObjectModel.foreignKey.association: '_ProductionSchedulingProfile'
      afko.sfcpf                                                     as ProductionSchedulingProfile,
--    @ObjectModel.foreignKey.association: '_ResponsiblePlannerGroup'
      afko.plgrp                                                     as ResponsiblePlannerGroup,
      @ObjectModel.foreignKey.association: '_Project'
      cast(afko.pronr as ps_s4_proj_pspnr preserving type)           as ProjectInternalID,   // w/o conversion exit  

--    @ObjectModel.foreignKey.association: '_SuperiorProjectNetwork'
      afko.aufnt                                                     as SuperiorProjectNetwork,
      @ObjectModel.foreignKey.association: '_Reservation'
      afko.rsnum                                                     as Reservation,
      @ObjectModel.foreignKey.association: '_SettlementReservation'    
      afko.arsnr                                                     as SettlementReservation,
      @ObjectModel.foreignKey.association: '_ConfirmationGroup'
      afko.rueck                                                     as MfgOrderConfirmation,
      afko.rmzhl                                                     as MfgOrderConfirmationCount,
      @ObjectModel.foreignKey.association: '_CapacityRequirement'
      afko.bedid                                                     as CapacityRequirement,
      @ObjectModel.foreignKey.association: '_InspectionLot'
      afko.prueflos                                                  as InspectionLot,
      @ObjectModel.foreignKey.association: '_ChangeNumber'
      afko.aennr                                                     as ChangeNumber,
      @ObjectModel.foreignKey.association: '_BasicSchedulingType'
      cast(afko.terkz as pph_termkz preserving type)                 as BasicSchedulingType,
      @ObjectModel.foreignKey.association: '_ForecastSchedulingType'
      afko.trkzp                                                     as ForecastSchedulingType,
      afko.plart                                                     as ProdAvailyCheckPlanningType,
      afko.netzkont                                                  as NtwkAccountAssignmentCode,
      afko.profid                                                    as NetworkProfile,
      afko.cuobj                                                     as ProductConfiguration,
      cast(afko.revlv as vdm_qm_revlv preserving type)               as MaterialRevisionLevel,
      afko.kapversa                                                  as CapacityActiveVersion,
      afko.kbed                                                      as CapacityRqmtHasNotToBeCreated,
      afko.cy_seqnr                                                  as OrderSequenceNumber,

      //Extended Quality Check

      afko.extended_quality_checks                                   as ExtdQualityCheckIsRequired,

      // Assignments FI/CO

      afko.klvari                                                    as ActualCostsCostingVariant,
      afko.klvarp                                                    as PlannedCostsCostingVariant,

      // Assignments BOO

      cast(afko.plnbez as billofoperationsmaterial  preserving type) as Material,
      @ObjectModel.foreignKey.association: '_BillOfOperationsType'
      cast(afko.plnty as billofoperationstype       preserving type) as BillOfOperationsType,
      @ObjectModel.foreignKey.association: '_BillOfOperationsGroup'
      cast(afko.plnnr as billofoperationsgroup      preserving type) as BillOfOperationsGroup,
      @ObjectModel.foreignKey.association: '_BillOfOperations'
      cast(afko.plnal as billofoperationsvariant    preserving type) as BillOfOperationsVariant,
      @ObjectModel.foreignKey.association: '_BillOfOperationsChangeState'
      afko.zaehl                                                     as BOOInternalVersionCounter,
      @ObjectModel.foreignKey.association: '_BillOfOperationsUsage'
      cast(afko.pverw as billofoperationsusage      preserving type) as BillOfOperationsUsage,
      afko.tl_versn                                                  as BillOfOperationsVersion,
      afko.plauf                                                     as BOOExplosionDate,
      afko.pdatv                                                     as BOOValidityStartDate,
      -- kept for compatibility reasons
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: 'BillOfOperationsGroup'
      afko.plnnr                                                     as BillOfOperations,

      // Assignments BOM

      cast(afko.stlty as pph_stlty preserving type)                  as  BillOfMaterialCategory,
      cast(afko.stlnr as pph_stnum preserving type)                  as  BillOfMaterial,     // with conv. exit ALPHA 

      afko.stlal                                                     as  BillOfMaterialVariant,
      afko.stlan                                                     as  BillOfMaterialVariantUsage,
      afko.bom_versn                                                 as  BillOfMaterialVersion,
      afko.stlst                                                     as  BillOfMaterialStatus,
      afko.aufld                                                     as  BOMExplosionDate,
      afko.sdatv                                                     as  BOMValidityStartDate,

      // Fashion Manufacturing Fields

      afko.fsh_mprod_ord                                             as  MasterProductionOrder,

      // Floats

      cast(afko.fhori as vdm_fhori preserving type)                  as SchedulingFloatProfile,
      cast(afko.vorgz as vdm_vorgz preserving type)                  as FloatBeforeProductionInWrkDays,
      cast(afko.sichz as vdm_sichz preserving type)                  as FloatAfterProductionInWorkDays,
      afko.freiz                                                     as ReleasePeriodInWorkDays,

      // Dates and Times

      afko.gstrp                                                     as  PlannedStartDate,
      afko.gsuzp                                                     as  PlannedStartTime,
      afko.gltrp                                                     as  PlannedEndDate,
      afko.gluzp                                                     as  PlannedEndTime,
      cast(afko.ftrmp as fis_co_ftrmp preserving type)               as  PlannedReleaseDate,
      afko.gstrs                                                     as  ScheduledBasicStartDate,
      afko.gsuzs                                                     as  ScheduledBasicStartTime,
      cast(afko.gltrs as fis_co_gltrs preserving type)               as  ScheduledBasicEndDate,
      afko.gluzs                                                     as  ScheduledBasicEndTime,
      cast(afko.ftrms as fis_co_ftrms preserving type)               as  ScheduledReleaseDate,
      cast(afko.gstri as fis_co_gstri preserving type)               as  ActualStartDate,
      afko.gsuzi                                                     as  ActualStartTime,
      afko.gltri                                                     as  ActualEndDate,
      cast(afko.ftrmi as fis_co_ftrmi preserving type)               as  ActualReleasedDate,
      afko.getri                                                     as  ConfirmedEndDate,
      afko.geuzi                                                     as  ConfirmedEndTime,
      afko.gstps                                                     as  ScheduledForecastedStartDate,
      afko.gsups                                                     as  ScheduledForecastedStartTime,
      afko.gltps                                                     as  ScheduledForecastedEndDate,
      afko.glups                                                     as  ScheduledForecastedEndTime,
      afko.ftrps                                                     as  ScheduledFcstdReleaseDate,
      afko.gstpp                                                     as  ForecastedStartDate,
      afko.gsupp                                                     as  ForecastedStartTime,
      afko.gltpp                                                     as  ForecastedEndDate,
      afko.glupp                                                     as  ForecastedEndTime,
      afko.gsbtr                                                     as  TotalCommitmentDate,
      afko.trmdt                                                     as  LastScheduledDate,

      // Quantities and UoM

      @Semantics.unitOfMeasure: true
      afko.gmein                                                     as  BaseUnit,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      afko.gamng                                                     as  OrderPlannedTotalQty,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      afko.gasmg                                                     as  OrderPlannedScrapQty,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      afko.igmng                                                     as  OrderConfirmedYieldQty,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      afko.iasmg                                                     as  OrderConfirmedScrapQty,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      afko.rmnga                                                     as  MfgOrderConfirmedReworkQty,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      (igmng + iasmg + rmnga)                                        as  TotalConfirmedQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #MIN
      afko.slsvn                                                     as  MaterialFromLotSizeQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #MAX
      afko.slsbs                                                     as  MaterialToLotSizeQuantity,

      // Associations

      _BaseUnit,
      _Order,                // required for DCLS

      _OrderInternalID,
      _OrderPriority,
      _BillOfOperationsType,
      _BillOfOperationsGroup,
      _BillOfOperations,
      _BillOfOperationsChangeState,
      _BillOfOperationsUsage,
      _Reservation,
      _SettlementReservation,
      _ChangeNumber,
      _CapacityRequirement,
      _ConfirmationGroup,
      _SuperiorProjectNetwork,
      _Project,
      _InspectionLot,
      _BasicSchedulingType,
      _ForecastSchedulingType
};