I_OrderOperationStatusBasic is a Composite CDS View (Dimension) that provides data about "Order Operation Status Basic" in SAP S/4HANA. It reads from 1 data source (I_OrderOperationBasic) and exposes 18 fields with key fields OrderInternalID, OrderOperationInternalID.
@AccessControl.authorizationCheck: #CHECK@Analytics.internalName:#LOCAL@Metadata.allowExtensions:true@AccessControl.personalData.blocking: #NOT_REQUIRED@Analytics.dataCategory: #DIMENSION@Analytics.technicalName: 'IORDOPRSTATUSBSC'
@ObjectModel.representativeKey: 'OrderOperationInternalID'
@ObjectModel.semanticKey: ['OrderInternalID', 'OrderOperationInternalID']@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #L, dataClass: #TRANSACTIONAL}@VDM.viewType: #COMPOSITE@EndUserText.label: 'Order Operation Status Basic'
defineviewentity I_OrderOperationStatusBasic asselectfrom I_OrderOperationBasic as afvc
leftouter to one join I_LogisticsOrder as _Order on afvc.OrderInternalID = _Order.OrderInternalBillOfOperations
leftouter to one join I_StatusObjectStatusBasic as _isCreated on _isCreated.StatusObject = afvc.ObjectInternalID and _isCreated.StatusCode = 'I0001' and _isCreated.StatusIsInactive = '' // OperationIsCreated
leftouter to one join I_StatusObjectStatusBasic as _isReleased on _isReleased.StatusObject = afvc.ObjectInternalID and _isReleased.StatusCode = 'I0002' and _isReleased.StatusIsInactive = '' // OperationIsReleased
leftouter to one join I_StatusObjectStatusBasic as _isConfirmed on _isConfirmed.StatusObject = afvc.ObjectInternalID and _isConfirmed.StatusCode = 'I0009' and _isConfirmed.StatusIsInactive = '' // OperationIsConfirmed
leftouter to one join I_StatusObjectStatusBasic as _isPartConf on _isPartConf.StatusObject = afvc.ObjectInternalID and _isPartConf.StatusCode = 'I0010' and _isPartConf.StatusIsInactive = '' // OperationIsPartiallyConfirmed
leftouter to one join I_StatusObjectStatusBasic as _isDeleted on _isDeleted.StatusObject = afvc.ObjectInternalID and _isDeleted.StatusCode = 'I0013' and _isDeleted.StatusIsInactive = '' // OperationIsDeleted
leftouter to one join I_StatusObjectStatusBasic as _isTechCompl on _isTechCompl.StatusObject = afvc.ObjectInternalID and _isTechCompl.StatusCode = 'I0045' and _isTechCompl.StatusIsInactive = '' // OperationIsTechnicallyCompleted
leftouter to one join I_StatusObjectStatusBasic as _isClosed on _isClosed.StatusObject = afvc.ObjectInternalID and _isClosed.StatusCode = 'I0046' and _isClosed.StatusIsInactive = '' // OperationIsClosed
leftouter to one join I_StatusObjectStatusBasic as _isPartDeliv on _isPartDeliv.StatusObject = afvc.ObjectInternalID and _isPartDeliv.StatusCode = 'I0377' and _isPartDeliv.StatusIsInactive = '' // OperationIsPartiallyDelivered
leftouter to one join I_StatusObjectStatusBasic as _isDelivered on _isDelivered.StatusObject = afvc.ObjectInternalID and _isDelivered.StatusCode = 'I0378' and _isDelivered.StatusIsInactive = '' // OperationIsDelivered
{
key afvc.OrderInternalID,
key afvc.OrderOperationInternalID,
afvc.Sequence,
afvc.SuperiorOperationInternalID,
cast(afvc.Operation as vdm_vornr preserving type) as Operation,
afvc.ObjectInternalID,
_Order.OrderID,
afvc.Plant,
// Status
casewhen _isCreated.StatusCode isnullthen '' else 'X' endas OperationIsCreated,
casewhen _isReleased.StatusCode isnullthen '' else 'X' endas OperationIsReleased,
casewhen _isConfirmed.StatusCode isnullthen '' else 'X' endas OperationIsConfirmed,
casewhen _isPartConf.StatusCode isnullthen '' else 'X' endas OperationIsPartiallyConfirmed,
casewhen _isDeleted.StatusCode isnullthen '' else 'X' endas OperationIsDeleted,
casewhen _isTechCompl.StatusCode isnullthen '' else 'X' endas OperationIsTechlyCompleted,
casewhen _isClosed.StatusCode isnullthen '' else 'X' endas OperationIsClosed,
casewhen _isPartDeliv.StatusCode isnullthen '' else 'X' endas OperationIsPartiallyDelivered,
casewhen _isDelivered.StatusCode isnullthen '' else 'X' endas OperationIsDelivered,
afvc._OrderInternalID
}
where afvc.Sequence = '000000' //only standard sequence
and afvc.SuperiorOperationInternalID = '00000000' //suboperation isnot relevant
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LOGISTICSORDER",
"I_ORDEROPERATIONBASIC",
"I_STATUSOBJECTSTATUSBASIC"
],
"ASSOCIATED":
[
"I_ORDERINTERNALID"
],
"BASE":
[
"I_ORDEROPERATIONBASIC"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/