I_MaintOrderOpRqmtAssgmt
Maint Order Op Requirement Assignment
I_MaintOrderOpRqmtAssgmt is a Basic CDS View that provides data about "Maint Order Op Requirement Assignment" in SAP S/4HANA. It reads from 3 data sources (afko, I_MaintOrderOperAndSubOper, kbed) and exposes 20 fields with key fields MaintenanceOrder, MaintenanceOrderOperation, MaintenanceOrderSubOperation, MaintenanceOrderOperationSplit. It has 3 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| afko | afko | from |
| I_MaintOrderOperAndSubOper | I_MaintOrderOperAndSubOper | inner |
| kbed | Split | inner |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | kbez | _SplitPlanningValues | _SplitPlanningValues.bedid = Split.bedid and _SplitPlanningValues.bedzl = Split.bedzl and _SplitPlanningValues.canum = Split.canum |
| [0..1] | I_MaintenanceOrder | _MaintenanceOrder | $projection.MaintenanceOrder = _MaintenanceOrder.MaintenanceOrder |
| [1..1] | I_WorkAssignment | _WorkforcePerson | $projection.MaintWorkCenterPersonID = _WorkforcePerson.WorkAssignment |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Maint Order Op Requirement Assignment | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenanceOrder | afko | aufnr | SettlementOrder |
| KEY | MaintenanceOrderOperation | |||
| KEY | MaintenanceOrderSubOperation | |||
| KEY | MaintenanceOrderOperationSplit | kbed | split | Splitting |
| CapacityRequirement | kbed | bedid | Id number | |
| CapacityRequirementItem | kbed | bedzl | Counter | |
| CapacityRqmtItemCapacity | kbed | canum | Wrk ctr cap no | |
| MaintOrderRoutingNumber | afko | aufpl | TaskList No.Ops | |
| MaintOrderOperationCounter | I_MaintOrderOperAndSubOper | MaintOrderOperationCounter | Counter | |
| MaintWorkCenterPersonID | kbed | pernr | Personnel no. | |
| OperationEarliestStartDate | kbed | fstad | Erlst Strt Date | |
| OperationEarliestStartTime | kbed | fstau | Erlst Strt Time | |
| OperationEarliestEndDate | kbed | fendd | Erlst End Date | |
| OperationEarliestEndTime | kbed | fendu | Erlst End Time | |
| AssignedMaintOpWork | _SplitPlanningValues | arbei | Work | |
| AssignedMaintOpWorkUnit | _SplitPlanningValues | arbeh | Unit for work | |
| AssignedMaintOpDuration | _SplitPlanningValues | dauno | Normal duration | |
| AssignedMaintOpDurationUnit | _SplitPlanningValues | daune | Norm.duratn un. | |
| _MaintenanceOrder | _MaintenanceOrder | |||
| _WorkforcePerson | _WorkforcePerson |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view I_MaintOrderOpRqmtAssgmt.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
CREATE VIEW I_MaintOrderOpRqmtAssgmt AS
SELECT
afko.aufnr AS MaintenanceOrder,
cast( I_MaintOrderOperAndSubOper.MaintenanceOrderOperation as maintenanceorderoperation preserving type ) AS MaintenanceOrderOperation,
cast( I_MaintOrderOperAndSubOper.MaintenanceOrderSubOperation as maintenanceordersuboperation preserving type ) AS MaintenanceOrderSubOperation,
Split.split AS MaintenanceOrderOperationSplit,
Split.bedid AS CapacityRequirement,
Split.bedzl AS CapacityRequirementItem,
Split.canum AS CapacityRqmtItemCapacity,
afko.aufpl AS MaintOrderRoutingNumber,
I_MaintOrderOperAndSubOper.MaintOrderOperationCounter AS MaintOrderOperationCounter,
Split.pernr AS MaintWorkCenterPersonID,
Split.fstad AS OperationEarliestStartDate,
Split.fstau AS OperationEarliestStartTime,
Split.fendd AS OperationEarliestEndDate,
Split.fendu AS OperationEarliestEndTime,
_SplitPlanningValues.arbei AS AssignedMaintOpWork,
_SplitPlanningValues.arbeh AS AssignedMaintOpWorkUnit,
_SplitPlanningValues.dauno AS AssignedMaintOpDuration,
_SplitPlanningValues.daune AS AssignedMaintOpDurationUnit
FROM afko
INNER JOIN I_MaintOrderOperAndSubOper ON /* join condition not captured in parsed metadata */
INNER JOIN kbed AS Split ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN kbez AS _SplitPlanningValues ON _SplitPlanningValues.bedid = Split.bedid AND _SplitPlanningValues.bedzl = Split.bedzl AND _SplitPlanningValues.canum = Split.canum -- association [1..1]
LEFT OUTER JOIN I_MaintenanceOrder AS _MaintenanceOrder ON MaintenanceOrder = _MaintenanceOrder.MaintenanceOrder -- association [0..1]
LEFT OUTER JOIN I_WorkAssignment AS _WorkforcePerson ON MaintWorkCenterPersonID = _WorkforcePerson.WorkAssignment -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA