I_OrderOperation

DDL: I_ORDEROPERATION SQL: IORDEROPERATION Type: view BASIC

Order Operation

I_OrderOperation is a Basic CDS View (Dimension) that provides data about "Order Operation" in SAP S/4HANA. It reads from 1 data source (P_AFVG) and exposes 303 fields with key fields OrderInternalID, OrderOperationInternalID. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_AFVG afvg from

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_OrderInternalID _OrderInternalID $projection.OrderInternalID = _OrderInternalID.OrderInternalID
[1..1] I_UnitOfMeasure _OperationUnit $projection.OperationUnit = _OperationUnit.UnitOfMeasure
[0..1] I_Currency _OperationCurrency $projection.Currency = _OperationCurrency.Currency -- for ESH
[0..1] I_WorkCenterType _WorkCenterType $projection.WorkCenterTypeCode_2 = _WorkCenterType.WorkCenterTypeCode
[0..1] I_WorkCenter _WorkCenter $projection.WorkCenterTypeCode_2 = _WorkCenter.WorkCenterTypeCode and $projection.WorkCenterInternalID = _WorkCenter.WorkCenterInternalID
[0..1] I_OrderOperationLongText _LongText $projection.OrderInternalID = _LongText.OrderInternalID and $projection.OrderOperationInternalID = _LongText.OrderOperationInternalID

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName IORDEROPERATION view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY 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 #NONE view
ObjectModel.representativeKey OrderOperationInternalID view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
EndUserText.label Order Operation view

Fields (303)

KeyFieldSource TableSource FieldDescription
KEY OrderInternalID P_AFVG aufpl
KEY OrderOperationInternalID P_AFVG aplzl
Sequence P_AFVG aplfl
Operation P_AFVG vornr
Operation_2
BillOfOperationsSequence P_AFVG plnfl
BillOfOperationsType P_AFVG plnty
BillOfOperationsGroup P_AFVG plnnr
BillOfOperationsVariant P_AFVG plnal
BOOOperationInternalID P_AFVG plnkn
BillOfOperationsVersion P_AFVG tl_versn
BillOfMaterialCategory P_AFVG istty
BillOfMaterialInternalID P_AFVG istnr
BillOfMaterialInternalID_2
BillOfMaterialItemNodeNumber P_AFVG istkn
BOMItemNodeCount P_AFVG istpo
SuperiorOperationInternalID P_AFVG sumnr
OperationControlProfile P_AFVG steus
WorkCenterInternalID P_AFVG arbid
WorkCenterTypeCode P_AFVG arbty
WorkCenterTypeCode_2 P_AFVG arbty2
Plant P_AFVG werks
FactoryCalendar P_AFVG kalid
CapacityRequirement P_AFVG bedid
CapacityRequirementItem P_AFVG bedzl
ActualNumberOfSplits P_AFVG spanz
NumberOfCapacities P_AFVG anzzl
OperationIsToBeDeleted P_AFVG loekz
NetworkActivityPriority P_AFVG pprio
OperationImportance P_AFVG nprio
OperationWorkPercent P_AFVG prznt
UsageCode P_AFVG mlstn
Assembly P_AFVG istru
ProjectInternalID
ObjectInternalID P_AFVG objnr
OperationConfirmation P_AFVG rueck
NumberOfOperationConfirmations P_AFVG rmzhl
NumberOfOperationExecutions P_AFVG aufkt
OperationSystemCondition P_AFVG anlzu
ChangeNumber P_AFVG aennr
OperationPersonResponsible P_AFVG pernr
Equipment P_AFVG equnr
FunctionalLocation
StandardTextInternalID P_AFVG ktsch
OperationText P_AFVG ltxa1
Language P_AFVG txtsp
NumberOfTimeTickets P_AFVG loanz
EmployeeWageType P_AFVG loart
EmployeeWageGroup P_AFVG logrp
NumberOfConfirmationSlips P_AFVG rsanz
EmployeeSuitability P_AFVG qualf
Personnel P_AFVG pernr
NumberOfEmployees P_AFVG anzma
OperationSetupGroupCategory P_AFVG rfgrp
OperationSetupGroup P_AFVG rfsch
OperationSetupType P_AFVG rasch
OperationScrapPercent P_AFVG aufak
OperationOverlappingIsRequired P_AFVG uemus
OperationOverlappingIsPossible P_AFVG uekan
OperationsIsAlwaysOverlapping P_AFVG flies
OperationSplitIsRequired P_AFVG spmus
MaximumNumberOfSplits P_AFVG splim
LeadTimeReductionStrategy P_AFVG rstra
OverheadCode P_AFVG zschl
OperationPurgInfoRecdSearchTxt P_AFVG sortl
ExtProcgOperationHasSubcontrg P_AFVG frdlb
Supplier P_AFVG lifnr
Currency P_AFVG waers
OpExternalProcessingPrice P_AFVG preis
OpExternalProcessingPriceUnit P_AFVG peinh
NumberOfOperationPriceUnits
PurgInfoRecdDataIsFixed P_AFVG kzfix
PurchasingInfoRecord P_AFVG infnr
PurchasingInfoRecordCategory P_AFVG esokz
PurchasingOrganization P_AFVG ekorg
PurchasingGroup P_AFVG ekgrp
PurchaseRequisition P_AFVG banfn
PurchaseRequisitionItem P_AFVG bnfpo
PurchasingDocument P_AFVG ebeln
PurchasingDocumentItem P_AFVG ebelp
MaterialGroup P_AFVG matkl
GoodsRecipientName P_AFVG wempf
UnloadingPointName P_AFVG ablad
CompanyCode P_AFVG bukrs
BusinessArea P_AFVG gsber
ProfitCenter P_AFVG prctr
CostElement P_AFVG sakto
CostingVariant P_AFVG klvar
CostEstimate P_AFVG kalnr
CostingSheet P_AFVG kalsm
RequestingCostCenter P_AFVG anfko
OperationCalculationControl P_AFVG indet
OperationCostingRelevancyType P_AFVG selkz
NetworkActivityCost P_AFVG prkst
netzkontasNtwkAccountAssignmentCode
clasfasActyIsTakenAcctForProjSmmry
owaerasControllingObjectCurrency
ControllingObjectClass P_AFVG scope
TaxJurisdiction P_AFVG txjcd
FunctionalArea P_AFVG func_area
BusinessProcess P_AFVG prz01
BusinessProcessEntryUnit P_AFVG ipre1
BusinessProcessConfirmedQty P_AFVG iprz1
NoFurtherBusinessProcQtyIsExpd P_AFVG iprk1
BusinessProcRemainingQtyUnit P_AFVG opre1
BusinessProcessRemainingQty P_AFVG oprz1
StandardWorkFormulaParamGroup P_AFVG vgwts
CostCtrActivityType1 P_AFVG lar01
CostCtrActivityType2 P_AFVG lar02
CostCtrActivityType3 P_AFVG lar03
CostCtrActivityType4 P_AFVG lar04
CostCtrActivityType5 P_AFVG lar05
CostCtrActivityType6 P_AFVG lar06
CostCtrActivityType P_AFVG larnt
lek01asNoFurtherOpWorkQuantity1IsExpd
NoFurtherOpWorkQuantity2IsExpd P_AFVG lek02
NoFurtherOpWorkQuantity3IsExpd P_AFVG lek03
NoFurtherOpWorkQuantity4IsExpd P_AFVG lek04
NoFurtherOpWorkQuantity5IsExpd P_AFVG lek05
NoFurtherOpWorkQuantity6IsExpd P_AFVG lek06
NoFurtherWorkQuantityIsExpd P_AFVG leknw
vgw01asWorkCenterStandardWorkQty1
WorkCenterStandardWorkQty2 P_AFVG vgw02
WorkCenterStandardWorkQty3 P_AFVG vgw03
WorkCenterStandardWorkQty4 P_AFVG vgw04
WorkCenterStandardWorkQty5 P_AFVG vgw05
WorkCenterStandardWorkQty6 P_AFVG vgw06
OpPlannedWorkQuantity P_AFVG arbei
vge01asWorkCenterStandardWorkQtyUnit1
WorkCenterStandardWorkQtyUnit2 P_AFVG vge02
WorkCenterStandardWorkQtyUnit3 P_AFVG vge03
WorkCenterStandardWorkQtyUnit4 P_AFVG vge04
WorkCenterStandardWorkQtyUnit5 P_AFVG vge05
WorkCenterStandardWorkQtyUnit6 P_AFVG vge06
OpWorkQuantityUnit1 P_AFVG ile01
OpWorkQuantityUnit2 P_AFVG ile02
OpWorkQuantityUnit3 P_AFVG ile03
OpWorkQuantityUnit4 P_AFVG ile04
OpWorkQuantityUnit5 P_AFVG ile05
OpWorkQuantityUnit6 P_AFVG ile06
OpWorkQuantityUnit P_AFVG arbeh
ism01asOpConfirmedWorkQuantity1
OpConfirmedWorkQuantity2 P_AFVG ism02
OpConfirmedWorkQuantity3 P_AFVG ism03
OpConfirmedWorkQuantity4 P_AFVG ism04
OpConfirmedWorkQuantity5 P_AFVG ism05
OpConfirmedWorkQuantity6 P_AFVG ism06
ActualWorkQuantity P_AFVG ismnw
pvzknasOrderIntBillOfOpItemOfPhase
MfgOrderOperationIsPhase P_AFVG phflg
ControlRecipeDestination P_AFVG phseq
DependencyObjectNumber P_AFVG knobj
LineHierarchyInternalID P_AFVG objektid
OpSchedldReductionLevel P_AFVG rstuf
InspectionSubSystem P_AFVG subsys
ServicePackage P_AFVG packno
MaterialPlanningRelevance P_AFVG no_disp
ProductConfiguration P_AFVG cuobj_arb
ProgressAnlysAggregationWeight P_AFVG evgew
OperationRequisitionerName P_AFVG afnam
OperationTrackingNumber P_AFVG bednr
InspectionLotType P_AFVG qpart
ExchangeRate P_AFVG wkurs
BillingPlan P_AFVG fplnr
ReferencePoint P_AFVG rfpnt
OperationUnit P_AFVG meinh
OperationReferenceQuantity P_AFVG bmsch
OpQtyToBaseQtyDnmntr P_AFVG umren
OpQtyToBaseQtyNmrtr P_AFVG umrez
OpPlannedTotalQuantity P_AFVG mgvrg
OpPlannedScrapQuantity P_AFVG asvrg
OpTotalConfirmedYieldQty P_AFVG lmnga
OpTotalConfirmedScrapQty P_AFVG xmnga
OperationConfirmedReworkQty P_AFVG rmnga
OpTotConfdYieldQtyInOrdQtyUnit P_AFVG gmnga
BreakDurationUnit P_AFVG zeier
PlannedBreakDuration P_AFVG zmerh
ConfirmedBreakDuration P_AFVG iserh
OverlapMinimumDurationUnit P_AFVG zeimu
OverlapMinimumDuration P_AFVG zminu
MaximumWaitDurationUnit P_AFVG zeilm
MaximumWaitDuration P_AFVG zlmax
MinimumWaitDurationUnit P_AFVG zeilp
MinimumWaitDuration P_AFVG zlpro
StandardMoveDurationUnit P_AFVG zeitn
StandardMoveDuration P_AFVG ztnor
StandardQueueDurationUnit P_AFVG zeiwn
StandardQueueDuration P_AFVG zwnor
MinimumQueueDurationUnit P_AFVG zeiwm
MinimumQueueDuration P_AFVG zwmin
MinimumMoveDurationUnit P_AFVG zeitm
MinimumMoveDuration P_AFVG ztmin
OperationStandardDuration P_AFVG dauno
OperationStandardDurationUnit P_AFVG daune
MinimumDuration P_AFVG daumi
MinimumDurationUnit P_AFVG daume
ScheduledMoveDuration P_AFVG tranz
ScheduledMoveDurationUnit P_AFVG traze
ScheduledQueueDuration P_AFVG wartz
ScheduledQueueDurationUnit P_AFVG wrtze
ScheduledWaitDuration P_AFVG liegz
ScheduledWaitDurationUnit P_AFVG ligze
PlannedDeliveryDuration P_AFVG plifz
OpPlannedSetupDurn P_AFVG ruest
OpPlannedSetupDurnUnit P_AFVG rstze
OpPlannedProcessingDurn P_AFVG bearz
OpPlannedProcessingDurnUnit P_AFVG beaze
OpPlannedTeardownDurn P_AFVG abrue
OpPlannedTeardownDurnUnit P_AFVG aruze
ActyBscStartDateConstraintType P_AFVG einsa
ActyBscEndDateConstraintType P_AFVG einse
ActyFcstEndDateConstraintType P_AFVG ewste
ActyFcstStartDteConstraintType P_AFVG ewsta
FcstdStandardDurationUnit P_AFVG ewdne
OpErlstSchedldExecStrtDte P_AFVG fsavd
OpErlstSchedldExecStrtTme P_AFVG fsavz
OpErlstSchedldProcgStrtDte P_AFVG fssbd
OpErlstSchedldProcgStrtTme P_AFVG fssbz
OpErlstSchedldTrdwnStrtDte P_AFVG fssad
OpErlstSchedldTrdwnStrtTme P_AFVG fssaz
OpErlstSchedldExecEndDte P_AFVG fsedd
OpErlstSchedldExecEndTme P_AFVG fsedz
EarliestScheduledWaitStartDate P_AFVG fssld
EarliestScheduledWaitStartTime P_AFVG fsslz
EarliestScheduledWaitEndDate P_AFVG fseld
EarliestScheduledWaitEndTime P_AFVG fselz
OpLtstSchedldExecStrtDte P_AFVG ssavd
OpLtstSchedldExecStrtTme P_AFVG ssavz
OpLtstSchedldProcgStrtDte P_AFVG sssbd
OpLtstSchedldProcgStrtTme P_AFVG sssbz
OpLtstSchedldTrdwnStrtDte P_AFVG sssad
OpLtstSchedldTrdwnStrtTme P_AFVG sssaz
OpLtstSchedldExecEndDte P_AFVG ssedd
OpLtstSchedldExecEndTme P_AFVG ssedz
LatestScheduledWaitStartDate P_AFVG sssld
LatestScheduledWaitStartTime P_AFVG ssslz
LatestScheduledWaitEndDate P_AFVG sseld
LatestScheduledWaitEndTime P_AFVG sselz
OperationConfirmedStartDate P_AFVG isavd
OperationConfirmedEndDate P_AFVG ieavd
OpActualExecutionStartDate P_AFVG isdd
OpActualExecutionStartTime P_AFVG isdz
OpActualSetupEndDate P_AFVG ierd
OpActualSetupEndTime P_AFVG ierz
OpActualProcessingStartDate P_AFVG isbd
OpActualProcessingStartTime P_AFVG isbz
OpActualProcessingEndDate P_AFVG iebd
OpActualProcessingEndTime P_AFVG iebz
OpActualTeardownStartDate P_AFVG isad
OpActualTeardownStartTme P_AFVG isaz
OpActualExecutionEndDate P_AFVG iedd
OpActualExecutionEndTime P_AFVG iedz
SchedldFcstdEarliestStartDate P_AFVG fpavd
SchedldFcstdEarliestStartTime P_AFVG fpavz
SchedldFcstdEarliestEndDate P_AFVG fpedd
SchedldFcstdEarliestEndTime P_AFVG fpedz
LatestSchedldFcstdStartDate P_AFVG spavd
SchedldFcstdLatestStartTime P_AFVG spavz
LatestSchedldFcstdEndDate P_AFVG spedd
SchedldFcstdLatestEndTime P_AFVG spedz
ConstraintDateForBscStartDate P_AFVG ntanf
ConstraintTimeForBscStartTime P_AFVG ntanz
OpDispatchedExecStartDate P_AFVG epanf
OpDispatchedExecStartTime P_AFVG epanz
OpDispatchedExecEndDate P_AFVG epend
OpDispatchedExecEndTime P_AFVG epenz
BasicDatesFreeFloat P_AFVG puffr
TotalFloatForBasicDates P_AFVG pufgs
StartDateOffsetReferenceCode P_AFVG bzoffb
StartDateOffsetDurationUnit P_AFVG ehoffb
StartDateOffsetDuration P_AFVG offstb
EndDateOffsetReferenceCode P_AFVG bzoffe
EndDateOffsetDuration P_AFVG offste
EndDateOffsetDurationUnit P_AFVG ehoffe
FreeDefinedTableFieldSemantic P_AFVG slwid
FreeDefinedAttribute01 P_AFVG usr00
FreeDefinedAttribute02 P_AFVG usr01
FreeDefinedAttribute03 P_AFVG usr02
FreeDefinedAttribute04 P_AFVG usr03
FreeDefinedQuantity1 P_AFVG usr04
FreeDefinedQuantity1Unit P_AFVG use04
FreeDefinedQuantity2 P_AFVG usr05
FreeDefinedQuantity2Unit P_AFVG use05
FreeDefinedAmount1 P_AFVG usr06
FreeDefinedAmount1Currency P_AFVG use06
FreeDefinedAmount2 P_AFVG usr07
FreeDefinedAmount2Currency P_AFVG use07
FreeDefinedDate1 P_AFVG usr08
FreeDefinedDate2 P_AFVG usr09
FreeDefinedIndicator1 P_AFVG usr10
FreeDefinedIndicator2 P_AFVG usr11
MaintOperationExecStageCode
MaintOrdOpProcessPhaseCode P_AFVG maintordopprocessphasecode
MaintOrdOpProcessSubPhaseCode P_AFVG maintordopprocesssubphasecode
SetupOpActyNtwkInstance P_AFVG oan_inst_id_setup
ProduceOpActyNtwkInstance P_AFVG oan_inst_id_produce
TeardownOpActyNtwkInstance P_AFVG oan_inst_id_teardown
_OrderInternalID _OrderInternalID
_OperationUnit _OperationUnit
_OperationCurrency _OperationCurrency
_WorkCenterType _WorkCenterType
_WorkCenter _WorkCenter
_LongText _LongText
@AbapCatalog.sqlViewName: 'IORDEROPERATION'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #('TRANSACTIONAL_DATA')
@Analytics.dataCategory: #DIMENSION
@ClientHandling.algorithm: #SESSION_VARIABLE
@ClientHandling.type: #CLIENT_DEPENDENT
@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.modelingPattern: #NONE
@ObjectModel.supportedCapabilities: [#CDS_MODELING_ASSOCIATION_TARGET, #CDS_MODELING_DATA_SOURCE, #SQL_DATA_SOURCE]
@ObjectModel.representativeKey: 'OrderOperationInternalID'
@ObjectModel.semanticKey: ['OrderInternalID', 'OrderOperationInternalID']
@ObjectModel.usageType: {serviceQuality: #A, sizeCategory: #XL, dataClass: #TRANSACTIONAL}
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC
@EndUserText.label: 'Order Operation'
// basic view for order operations of any category (AUFTYP)


/*+[hideWarning] { "IDS" : [ "CALCULATED_FIELD_CHECK" ]  } */
define view I_OrderOperation
  as select from P_AFVG as afvg
  association [1..1] to I_OrderInternalID        as _OrderInternalID   on  $projection.OrderInternalID = _OrderInternalID.OrderInternalID
  association [1..1] to I_UnitOfMeasure          as _OperationUnit     on  $projection.OperationUnit = _OperationUnit.UnitOfMeasure
  association [0..1] to I_Currency               as _OperationCurrency on  $projection.Currency = _OperationCurrency.Currency
-- for ESH  
  association [0..1] to I_WorkCenterType         as _WorkCenterType    on  $projection.WorkCenterTypeCode_2 = _WorkCenterType.WorkCenterTypeCode
  association [0..1] to I_WorkCenter             as _WorkCenter        on  $projection.WorkCenterTypeCode_2 = _WorkCenter.WorkCenterTypeCode
                                                                       and $projection.WorkCenterInternalID = _WorkCenter.WorkCenterInternalID
  association [0..1] to I_OrderOperationLongText as _LongText          on  $projection.OrderInternalID          = _LongText.OrderInternalID
                                                                       and $projection.OrderOperationInternalID = _LongText.OrderOperationInternalID
{
      // Key

      @ObjectModel.foreignKey.association: '_OrderInternalID'
  key afvg.aufpl as OrderInternalID,
  key afvg.aplzl as OrderOperationInternalID,

      // Semantic key

      afvg.aplfl as Sequence,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: 'Operation_2'
      afvg.vornr as Operation,                                      // with conv. exit NUMCV

      cast(afvg.vornr as vdm_vornr preserving type) as Operation_2, // without conversion exit


      // BOO data

      afvg.plnfl as BillOfOperationsSequence,
      afvg.plnty as BillOfOperationsType,
      afvg.plnnr as BillOfOperationsGroup,
      afvg.plnal as BillOfOperationsVariant,
      afvg.plnkn as BOOOperationInternalID,
      afvg.tl_versn as BillOfOperationsVersion,

      // BOM data

      afvg.istty as BillOfMaterialCategory,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: 'BillOfMaterialInternalID_2'
      afvg.istnr as BillOfMaterialInternalID,                                      // with conv. exit NUMCV

      cast(afvg.istnr as pph_stnum preserving type) as BillOfMaterialInternalID_2, // with conv. exit ALPHA

      afvg.istkn as BillOfMaterialItemNodeNumber,
      afvg.istpo as BOMItemNodeCount,

      // Assignments

      afvg.sumnr as SuperiorOperationInternalID,
      afvg.steus as OperationControlProfile,
      afvg.arbid as WorkCenterInternalID,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: 'WorkCenterTypeCode_2'
      afvg.arbty as WorkCenterTypeCode,    // CHAR1 field

      afvg.arbty2 as WorkCenterTypeCode_2, // CHAR2 field

      afvg.werks as Plant,
      afvg.kalid as FactoryCalendar,
      afvg.bedid as CapacityRequirement,
      afvg.bedzl as CapacityRequirementItem,
      afvg.spanz as ActualNumberOfSplits,
      afvg.anzzl as NumberOfCapacities,
      afvg.loekz as OperationIsToBeDeleted,
      afvg.pprio as NetworkActivityPriority,
      afvg.nprio as OperationImportance,
      afvg.prznt as OperationWorkPercent,
      afvg.mlstn as UsageCode,
      afvg.istru as Assembly, 
      cast(afvg.projn as ps_s4_proj_pspnr preserving type) as ProjectInternalID,
      afvg.objnr as ObjectInternalID,
      afvg.rueck as OperationConfirmation,
      afvg.rmzhl as NumberOfOperationConfirmations,
      afvg.aufkt as NumberOfOperationExecutions,
      afvg.anlzu as OperationSystemCondition,
      afvg.aennr as ChangeNumber,
      afvg.pernr as OperationPersonResponsible,
      afvg.equnr as Equipment,
      cast(afvg.tplnr as vdm_eam_tplnr preserving type)    as FunctionalLocation,

      // Text

      afvg.ktsch as StandardTextInternalID,
      @Semantics.text: true
      afvg.ltxa1 as OperationText,
      afvg.txtsp as Language,
     
      // HR data

      afvg.loanz as NumberOfTimeTickets,
      afvg.loart as EmployeeWageType,
      afvg.logrp as EmployeeWageGroup,
      afvg.rsanz as NumberOfConfirmationSlips,
      afvg.qualf as EmployeeSuitability,
      afvg.pernr as Personnel,
      afvg.anzma as NumberOfEmployees,
      
      // Setup and Overlapping

      afvg.rfgrp as OperationSetupGroupCategory,
      afvg.rfsch as OperationSetupGroup, 
      afvg.rasch as OperationSetupType,
      afvg.aufak as OperationScrapPercent,
      afvg.uemus as OperationOverlappingIsRequired,
      afvg.uekan as OperationOverlappingIsPossible,
      afvg.flies as OperationsIsAlwaysOverlapping,
      afvg.spmus as OperationSplitIsRequired,
      afvg.splim as MaximumNumberOfSplits,
      afvg.rstra as LeadTimeReductionStrategy,
      afvg.zschl as OverheadCode,
      
      // Subcontracting/Purchasing

      afvg.sortl as OperationPurgInfoRecdSearchTxt,
      @Semantics.booleanIndicator
      afvg.frdlb as ExtProcgOperationHasSubcontrg,
      afvg.lifnr as Supplier,
      @Semantics.currencyCode: true
      afvg.waers as Currency,
      @Aggregation.default: #SUM
      @Semantics.amount.currencyCode: 'Currency'
      afvg.preis as OpExternalProcessingPrice,
      @Consumption.hidden:true
      @Semantics.quantity.unitOfMeasure: 'OperationUnit'
      afvg.peinh as OpExternalProcessingPriceUnit,
      cast(afvg.peinh as pph_peinh preserving type) as NumberOfOperationPriceUnits,
      afvg.kzfix as PurgInfoRecdDataIsFixed,
      afvg.infnr as PurchasingInfoRecord,
      afvg.esokz as PurchasingInfoRecordCategory,
      afvg.ekorg as PurchasingOrganization,
      afvg.ekgrp as PurchasingGroup,
      afvg.banfn as PurchaseRequisition,
      afvg.bnfpo as PurchaseRequisitionItem,
      afvg.ebeln as PurchasingDocument,
      afvg.ebelp as PurchasingDocumentItem,
      afvg.matkl as MaterialGroup,
      afvg.wempf as GoodsRecipientName,
      afvg.ablad as UnloadingPointName,

      // FI/CO Data

      afvg.bukrs as CompanyCode,
      afvg.gsber as BusinessArea,
      afvg.prctr as ProfitCenter,
      afvg.sakto as CostElement,
      afvg.klvar as CostingVariant,
      afvg.kalnr as CostEstimate,
      afvg.kalsm as CostingSheet,
      afvg.anfko as RequestingCostCenter,
      afvg.indet as OperationCalculationControl,
      afvg.selkz as OperationCostingRelevancyType,
      @DefaultAggregation: #SUM
      @Semantics.amount.currencyCode: 'Currency'
      afvg.prkst as NetworkActivityCost,         -- PS
      afvg.netzkont as NtwkAccountAssignmentCode,-- PS
      afvg.clasf as ActyIsTakenAcctForProjSmmry, -- PS
      afvg.owaer as ControllingObjectCurrency,
      afvg.scope as ControllingObjectClass,
      afvg.txjcd as TaxJurisdiction,
      afvg.func_area as FunctionalArea,

      // Business Process

      afvg.prz01 as BusinessProcess,
      @Semantics.unitOfMeasure: true
      afvg.ipre1 as BusinessProcessEntryUnit,
      @Semantics.quantity.unitOfMeasure: 'BusinessProcessEntryUnit'
      @Aggregation.default: #SUM
      afvg.iprz1 as BusinessProcessConfirmedQty,
      afvg.iprk1 as NoFurtherBusinessProcQtyIsExpd,
      @Semantics.unitOfMeasure: true
      afvg.opre1 as BusinessProcRemainingQtyUnit,
      @Semantics.quantity.unitOfMeasure: 'BusinessProcRemainingQtyUnit'
      @Aggregation.default: #SUM
      afvg.oprz1 as BusinessProcessRemainingQty,

      // Work Quantities and Activitiy Types

      afvg.vgwts as StandardWorkFormulaParamGroup,

      afvg.lar01 as CostCtrActivityType1,
      afvg.lar02 as CostCtrActivityType2,
      afvg.lar03 as CostCtrActivityType3,
      afvg.lar04 as CostCtrActivityType4,
      afvg.lar05 as CostCtrActivityType5,
      afvg.lar06 as CostCtrActivityType6,
      afvg.larnt as CostCtrActivityType,         --for PM and PS

      afvg.lek01 as NoFurtherOpWorkQuantity1IsExpd,
      afvg.lek02 as NoFurtherOpWorkQuantity2IsExpd,
      afvg.lek03 as NoFurtherOpWorkQuantity3IsExpd,
      afvg.lek04 as NoFurtherOpWorkQuantity4IsExpd,
      afvg.lek05 as NoFurtherOpWorkQuantity5IsExpd,
      afvg.lek06 as NoFurtherOpWorkQuantity6IsExpd,
      afvg.leknw as NoFurtherWorkQuantityIsExpd, --PM and PS

      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit1'
      @DefaultAggregation: #SUM
      afvg.vgw01 as WorkCenterStandardWorkQty1,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit2'
      @DefaultAggregation: #SUM
      afvg.vgw02 as WorkCenterStandardWorkQty2,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit3'
      @DefaultAggregation: #SUM
      afvg.vgw03 as WorkCenterStandardWorkQty3,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit4'
      @DefaultAggregation: #SUM
      afvg.vgw04 as WorkCenterStandardWorkQty4,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit5'
      @DefaultAggregation: #SUM
      afvg.vgw05 as WorkCenterStandardWorkQty5,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit6'
      @DefaultAggregation: #SUM
      afvg.vgw06 as WorkCenterStandardWorkQty6,
      @Semantics.quantity.unitOfMeasure: 'OpWorkQuantityUnit'
      @DefaultAggregation: #SUM
      afvg.arbei as OpPlannedWorkQuantity,       --PM and PS

      @Semantics.unitOfMeasure: true
      afvg.vge01 as WorkCenterStandardWorkQtyUnit1,
      @Semantics.unitOfMeasure: true
      afvg.vge02 as WorkCenterStandardWorkQtyUnit2,
      @Semantics.unitOfMeasure: true
      afvg.vge03 as WorkCenterStandardWorkQtyUnit3,
      @Semantics.unitOfMeasure: true
      afvg.vge04 as WorkCenterStandardWorkQtyUnit4,
      @Semantics.unitOfMeasure: true
      afvg.vge05 as WorkCenterStandardWorkQtyUnit5,
      @Semantics.unitOfMeasure: true
      afvg.vge06 as WorkCenterStandardWorkQtyUnit6,

      @Semantics.unitOfMeasure: true
      afvg.ile01 as OpWorkQuantityUnit1,
      @Semantics.unitOfMeasure: true
      afvg.ile02 as OpWorkQuantityUnit2,
      @Semantics.unitOfMeasure: true
      afvg.ile03 as OpWorkQuantityUnit3,
      @Semantics.unitOfMeasure: true
      afvg.ile04 as OpWorkQuantityUnit4,
      @Semantics.unitOfMeasure: true
      afvg.ile05 as OpWorkQuantityUnit5,
      @Semantics.unitOfMeasure: true
      afvg.ile06 as OpWorkQuantityUnit6,
      @Semantics.unitOfMeasure: true
      afvg.arbeh as OpWorkQuantityUnit,          --PM and PS

      @Semantics.quantity.unitOfMeasure: 'OpWorkQuantityUnit1'
      @DefaultAggregation: #SUM
      afvg.ism01 as OpConfirmedWorkQuantity1,
      @Semantics.quantity.unitOfMeasure: 'OpWorkQuantityUnit2'
      @DefaultAggregation: #SUM
      afvg.ism02 as OpConfirmedWorkQuantity2,
      @Semantics.quantity.unitOfMeasure: 'OpWorkQuantityUnit3'
      @DefaultAggregation: #SUM
      afvg.ism03 as OpConfirmedWorkQuantity3,
      @Semantics.quantity.unitOfMeasure: 'OpWorkQuantityUnit4'
      @DefaultAggregation: #SUM
      afvg.ism04 as OpConfirmedWorkQuantity4,
      @Semantics.quantity.unitOfMeasure: 'OpWorkQuantityUnit5'
      @DefaultAggregation: #SUM
      afvg.ism05 as OpConfirmedWorkQuantity5,
      @Semantics.quantity.unitOfMeasure: 'OpWorkQuantityUnit6'
      @DefaultAggregation: #SUM
      afvg.ism06 as OpConfirmedWorkQuantity6,
      @Semantics.quantity.unitOfMeasure: 'OpWorkQuantityUnit'
      @DefaultAggregation: #SUM
      afvg.ismnw as ActualWorkQuantity,          --PM and PS

      // Forecast

      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit1'
      @DefaultAggregation: #SUM
      afvg.ofm01 as ForecastWorkQuantity1,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit2'      
      @DefaultAggregation: #SUM
      afvg.ofm02 as ForecastWorkQuantity2,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit3'
      @DefaultAggregation: #SUM
      afvg.ofm03 as ForecastWorkQuantity3,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit4'
      @DefaultAggregation: #SUM
      afvg.ofm04 as ForecastWorkQuantity4,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit5'
      @DefaultAggregation: #SUM
      afvg.ofm05 as ForecastWorkQuantity5,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit6'
      @DefaultAggregation: #SUM
      afvg.ofm06 as ForecastWorkQuantity6,
      @Semantics.quantity.unitOfMeasure: 'OpWorkQuantityUnit'
      @DefaultAggregation: #SUM
      afvg.ofmnw as ForecastWorkQuantity,        --PM and PS

      // PP-PI data

      afvg.pvzkn as OrderIntBillOfOpItemOfPhase,
      afvg.phflg as MfgOrderOperationIsPhase,
      afvg.phseq as ControlRecipeDestination,

      afvg.knobj as DependencyObjectNumber,
      afvg.objektid as LineHierarchyInternalID,
      afvg.rstuf as OpSchedldReductionLevel,
      afvg.subsys as InspectionSubSystem,
      afvg.packno as ServicePackage,
      afvg.no_disp as MaterialPlanningRelevance,
      afvg.cuobj_arb as ProductConfiguration,
      afvg.evgew as ProgressAnlysAggregationWeight,
      afvg.afnam as OperationRequisitionerName,
      afvg.bednr as OperationTrackingNumber,
      afvg.qpart as InspectionLotType,
      afvg.wkurs as ExchangeRate,
      afvg.fplnr as BillingPlan,
      afvg.rfpnt as ReferencePoint,
 
      // Operation Unit

      @Semantics.unitOfMeasure: true
      afvg.meinh as OperationUnit,
      @Semantics.quantity.unitOfMeasure: 'OperationUnit'
      @Aggregation.default: #MAX
      afvg.bmsch as OperationReferenceQuantity,
      afvg.umren as OpQtyToBaseQtyDnmntr,
      afvg.umrez as OpQtyToBaseQtyNmrtr,
      
      // Quantities

      @Semantics.quantity.unitOfMeasure: 'OperationUnit'
      @Aggregation.default: #SUM
      afvg.mgvrg as OpPlannedTotalQuantity,
      @Semantics.quantity.unitOfMeasure: 'OperationUnit'
      @Aggregation.default: #SUM
      afvg.asvrg as OpPlannedScrapQuantity,
      @Semantics.quantity.unitOfMeasure: 'OperationUnit'
      @Aggregation.default: #SUM
      afvg.lmnga as OpTotalConfirmedYieldQty,
      @Semantics.quantity.unitOfMeasure: 'OperationUnit'
      @Aggregation.default: #SUM
      afvg.xmnga as OpTotalConfirmedScrapQty,
      @Semantics.quantity.unitOfMeasure: 'OperationUnit'
      @Aggregation.default: #SUM
      afvg.rmnga as OperationConfirmedReworkQty,
      @Semantics.quantity.unitOfMeasure: 'OperationUnit'
      @Aggregation.default: #SUM
      afvg.gmnga as OpTotConfdYieldQtyInOrdQtyUnit,

      // Durations

      @Semantics.unitOfMeasure: true
      afvg.zeier as BreakDurationUnit,
      afvg.zmerh as PlannedBreakDuration,
      afvg.iserh as ConfirmedBreakDuration,
      @Semantics.unitOfMeasure: true
      afvg.zeimu as OverlapMinimumDurationUnit,
      afvg.zminu as OverlapMinimumDuration,
      @Semantics.unitOfMeasure: true
      afvg.zeilm as MaximumWaitDurationUnit,
      afvg.zlmax as MaximumWaitDuration,
      @Semantics.unitOfMeasure: true
      afvg.zeilp as MinimumWaitDurationUnit,
      afvg.zlpro as MinimumWaitDuration,
      @Semantics.unitOfMeasure: true
      afvg.zeitn as StandardMoveDurationUnit,
      afvg.ztnor as StandardMoveDuration,
      @Semantics.unitOfMeasure: true
      afvg.zeiwn as StandardQueueDurationUnit,
      afvg.zwnor as StandardQueueDuration,
      @Semantics.unitOfMeasure: true
      afvg.zeiwm as MinimumQueueDurationUnit,
      afvg.zwmin as MinimumQueueDuration,
      @Semantics.unitOfMeasure: true
      afvg.zeitm as MinimumMoveDurationUnit,
      afvg.ztmin as MinimumMoveDuration,
      afvg.dauno as OperationStandardDuration,
      @Semantics.unitOfMeasure: true
      afvg.daune as OperationStandardDurationUnit,
      afvg.daumi as MinimumDuration,
      @Semantics.unitOfMeasure: true
      afvg.daume as MinimumDurationUnit,
      afvg.tranz as ScheduledMoveDuration,
      @Semantics.unitOfMeasure: true
      afvg.traze as ScheduledMoveDurationUnit,
      afvg.wartz as ScheduledQueueDuration,
      @Semantics.unitOfMeasure: true
      afvg.wrtze as ScheduledQueueDurationUnit,
      afvg.liegz as ScheduledWaitDuration,
      @Semantics.unitOfMeasure: true
      afvg.ligze as ScheduledWaitDurationUnit,
      afvg.plifz as PlannedDeliveryDuration,
      afvg.ruest as OpPlannedSetupDurn,
      @Semantics.unitOfMeasure: true
      afvg.rstze as OpPlannedSetupDurnUnit,
      afvg.bearz as OpPlannedProcessingDurn,
      @Semantics.unitOfMeasure: true
      afvg.beaze as OpPlannedProcessingDurnUnit,
      afvg.abrue as OpPlannedTeardownDurn,
      @Semantics.unitOfMeasure: true
      afvg.aruze as OpPlannedTeardownDurnUnit,
      afvg.einsa as ActyBscStartDateConstraintType,
      afvg.einse as ActyBscEndDateConstraintType,
      afvg.ewste as ActyFcstEndDateConstraintType, 
      afvg.ewsta as ActyFcstStartDteConstraintType,
      afvg.pdau  as ActualForecastDuration,
      @Semantics.unitOfMeasure: true
      afvg.pdae  as ActualForecastDurationUnit,
      afvg.ewdan as ForecastedStandardDuration,
      @Semantics.unitOfMeasure: true
      afvg.ewdne as FcstdStandardDurationUnit,
      afvg.ewdam as ForecastedMinimumDuration,
      @Semantics.unitOfMeasure: true
      afvg.ewdme as ForecastedMinimumDurationUnit,

      // Dates and Times

      afvg.fsavd as OpErlstSchedldExecStrtDte,
      afvg.fsavz as OpErlstSchedldExecStrtTme,
      afvg.fssbd as OpErlstSchedldProcgStrtDte,
      afvg.fssbz as OpErlstSchedldProcgStrtTme,
      afvg.fssad as OpErlstSchedldTrdwnStrtDte,
      afvg.fssaz as OpErlstSchedldTrdwnStrtTme,
      afvg.fsedd as OpErlstSchedldExecEndDte,
      afvg.fsedz as OpErlstSchedldExecEndTme,
      afvg.fssld as EarliestScheduledWaitStartDate,
      afvg.fsslz as EarliestScheduledWaitStartTime,
      afvg.fseld as EarliestScheduledWaitEndDate,
      afvg.fselz as EarliestScheduledWaitEndTime,
      afvg.ssavd as OpLtstSchedldExecStrtDte,
      afvg.ssavz as OpLtstSchedldExecStrtTme,
      afvg.sssbd as OpLtstSchedldProcgStrtDte,
      afvg.sssbz as OpLtstSchedldProcgStrtTme,
      afvg.sssad as OpLtstSchedldTrdwnStrtDte,
      afvg.sssaz as OpLtstSchedldTrdwnStrtTme,
      afvg.ssedd as OpLtstSchedldExecEndDte,
      afvg.ssedz as OpLtstSchedldExecEndTme,
      afvg.sssld as LatestScheduledWaitStartDate,
      afvg.ssslz as LatestScheduledWaitStartTime,
      afvg.sseld as LatestScheduledWaitEndDate,
      afvg.sselz as LatestScheduledWaitEndTime,
      afvg.isavd as OperationConfirmedStartDate,
      afvg.ieavd as OperationConfirmedEndDate,
      afvg.isdd  as OpActualExecutionStartDate,
      afvg.isdz  as OpActualExecutionStartTime,
      afvg.ierd  as OpActualSetupEndDate,
      afvg.ierz  as OpActualSetupEndTime,
      afvg.isbd  as OpActualProcessingStartDate,
      afvg.isbz  as OpActualProcessingStartTime,
      afvg.iebd  as OpActualProcessingEndDate,
      afvg.iebz  as OpActualProcessingEndTime,
      afvg.isad  as OpActualTeardownStartDate,
      afvg.isaz  as OpActualTeardownStartTme,
      afvg.iedd  as OpActualExecutionEndDate,
      afvg.iedz  as OpActualExecutionEndTime,
      afvg.pedd  as ActualForecastEndDate,
      afvg.pedz  as ActualForecastEndTime,
      afvg.fpavd as SchedldFcstdEarliestStartDate,
      afvg.fpavz as SchedldFcstdEarliestStartTime,
      afvg.fpedd as SchedldFcstdEarliestEndDate,
      afvg.fpedz as SchedldFcstdEarliestEndTime,
      afvg.spavd as LatestSchedldFcstdStartDate,
      afvg.spavz as SchedldFcstdLatestStartTime,
      afvg.spedd as LatestSchedldFcstdEndDate,
      afvg.spedz as SchedldFcstdLatestEndTime,
      afvg.ntanf as ConstraintDateForBscStartDate,
      afvg.ntanz as ConstraintTimeForBscStartTime,
      afvg.ewstd as ForecastedStartDate,
      afvg.ewstz as ForecastedStartTime,
      afvg.ewend as ForecastedEndDate,
      afvg.ewenz as ForecastedEndTime,
      @Semantics.unitOfMeasure: true
      afvg.beazp as ForecastProcessingDurationUnit,
      afvg.bearp as ForecastProcessingDuration,
      afvg.epanf as OpDispatchedExecStartDate,
      afvg.epanz as OpDispatchedExecStartTime,
      afvg.epend as OpDispatchedExecEndDate,
      afvg.epenz as OpDispatchedExecEndTime,

      // Floats

      afvg.puffr as BasicDatesFreeFloat,
      afvg.pufgs as TotalFloatForBasicDates,
      afvg.pufgp as TotalFloatForForecastedDates,
      afvg.puffp as ForecastedDatesFreeFloat,

      // Offset

      afvg.bzoffb as StartDateOffsetReferenceCode,
      @Semantics.unitOfMeasure: true
      afvg.ehoffb as StartDateOffsetDurationUnit,
      afvg.offstb as StartDateOffsetDuration,
      afvg.bzoffe as EndDateOffsetReferenceCode,
      afvg.offste as EndDateOffsetDuration,
      @Semantics.unitOfMeasure: true
      afvg.ehoffe as EndDateOffsetDurationUnit,

      // Free-defined fields

      afvg.slwid as FreeDefinedTableFieldSemantic,
      afvg.usr00 as FreeDefinedAttribute01,
      afvg.usr01 as FreeDefinedAttribute02,
      afvg.usr02 as FreeDefinedAttribute03,
      afvg.usr03 as FreeDefinedAttribute04,
      @Semantics.quantity.unitOfMeasure: 'FreeDefinedQuantity1Unit'
      @Aggregation.default: #SUM
      afvg.usr04 as FreeDefinedQuantity1,
      @Semantics.unitOfMeasure: true
      afvg.use04 as FreeDefinedQuantity1Unit,
      @Semantics.quantity.unitOfMeasure: 'FreeDefinedQuantity2Unit'
      @Aggregation.default: #SUM
      afvg.usr05 as FreeDefinedQuantity2,
      @Semantics.unitOfMeasure: true
      afvg.use05 as FreeDefinedQuantity2Unit,
      @Semantics.amount.currencyCode: 'FreeDefinedAmount1Currency'
      @Aggregation.default: #SUM
      afvg.usr06 as FreeDefinedAmount1,
      @Semantics.currencyCode: true
      afvg.use06 as FreeDefinedAmount1Currency,
      @Semantics.amount.currencyCode: 'FreeDefinedAmount2Currency'
      @Aggregation.default: #SUM
      afvg.usr07 as FreeDefinedAmount2,
      @Semantics.currencyCode: true
      afvg.use07 as FreeDefinedAmount2Currency,
      afvg.usr08 as FreeDefinedDate1,
      afvg.usr09 as FreeDefinedDate2,
      afvg.usr10 as FreeDefinedIndicator1,
      afvg.usr11 as FreeDefinedIndicator2,

      // EAM

      cast(afvg.maintopexecutionphasecode as eam_premainpost_cds preserving type) as MaintOperationExecStageCode,
      afvg.maintordopprocessphasecode                                             as MaintOrdOpProcessPhaseCode,
      afvg.maintordopprocesssubphasecode                                          as MaintOrdOpProcessSubPhaseCode,   

      // OAN data

      afvg.oan_inst_id_setup    as SetupOpActyNtwkInstance,
      afvg.oan_inst_id_produce  as ProduceOpActyNtwkInstance,
      afvg.oan_inst_id_teardown as TeardownOpActyNtwkInstance,

      // Associations

      _OrderInternalID,
      _OperationUnit,
      _OperationCurrency,
      _WorkCenterType,
      _WorkCenter,
      _LongText
};
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_AFVG"
],
"ASSOCIATED":
[
"I_CURRENCY",
"I_ORDERINTERNALID",
"I_ORDEROPERATIONLONGTEXT",
"I_UNITOFMEASURE",
"I_WORKCENTER",
"I_WORKCENTERTYPE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/