I_RSHOperationAssignment
Maintenance Order Operation Assignment
I_RSHOperationAssignment is a Basic CDS View that provides data about "Maintenance Order Operation Assignment" in SAP S/4HANA. It reads from 2 data sources (afvc, kbed) and exposes 14 fields with key fields CapacityRequirement, CapacityRequirementItem, CapacityRqmtItemCapacity. It has 3 associations to related views.
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | afko | _Order | _Order.bedid = _Split.bedid |
| [0..1] | I_MaintenanceOrder | _MaintenanceOrder | $projection.MaintenanceOrder = _MaintenanceOrder.MaintenanceOrder |
| [0..1] | afvc | _SuperiorOperation | _SuperiorOperation.aufpl = _MaintenanceOrderOperation.aufpl and _SuperiorOperation.aplzl = _MaintenanceOrderOperation.sumnr |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IRSHOPERATIONASG | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Maintenance Order Operation Assignment | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CapacityRequirement | kbed | bedid | Id number |
| KEY | CapacityRequirementItem | |||
| KEY | CapacityRqmtItemCapacity | |||
| MaintenanceOrder | _Order | aufnr | SettlementOrder | |
| MaintenanceOrderOperation | ||||
| MaintenanceOrderSubOperation | ||||
| MaintOrderRoutingNumber | ||||
| MaintOrderOperationCounter | ||||
| PersonnelNumber | kbed | pernr | Personnel no. | |
| AssignedMaintOpStartDate | kbed | fstad | Erlst Strt Date | |
| AssignedMaintOpStartTime | kbed | fstau | Erlst Strt Time | |
| AssignedMaintOpEndDate | kbed | fendd | Erlst End Date | |
| AssignedMaintOpEndTime | kbed | fendu | Erlst End Time | |
| _MaintenanceOrder | _MaintenanceOrder |
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_RSHOperationAssignment.
-- 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.
-- SQL view name: IRSHOPERATIONASG
CREATE VIEW I_RSHOperationAssignment AS
SELECT
_Split.bedid AS CapacityRequirement,
cast(_Split.bedzl as pph_bedzl preserving type) AS CapacityRequirementItem,
cast(_Split.canum as pph_canum preserving type) AS CapacityRqmtItemCapacity,
_Order.aufnr AS MaintenanceOrder,
cast( coalesce( _SuperiorOperation.vornr, _MaintenanceOrderOperation.vornr ) as maintenanceorderoperation preserving type ) AS MaintenanceOrderOperation,
cast( case when _MaintenanceOrderOperation.sumnr = '00000000' then '' else _MaintenanceOrderOperation.vornr end as vdm_vornr preserving type ) AS MaintenanceOrderSubOperation,
cast(_Split.aufpl as pph_aufpl preserving type) AS MaintOrderRoutingNumber,
cast(_Split.aplzl as operationinternalid preserving type) AS MaintOrderOperationCounter,
_Split.pernr AS PersonnelNumber,
_Split.fstad AS AssignedMaintOpStartDate,
_Split.fstau AS AssignedMaintOpStartTime,
_Split.fendd AS AssignedMaintOpEndDate,
_Split.fendu AS AssignedMaintOpEndTime
FROM kbed AS _Split
INNER JOIN afvc AS _MaintenanceOrderOperation ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN afko AS _Order ON _Order.bedid = _Split.bedid -- association [0..1]
LEFT OUTER JOIN I_MaintenanceOrder AS _MaintenanceOrder ON MaintenanceOrder = _MaintenanceOrder.MaintenanceOrder -- association [0..1]
LEFT OUTER JOIN afvc AS _SuperiorOperation ON _SuperiorOperation.aufpl = _MaintenanceOrderOperation.aufpl AND _SuperiorOperation.aplzl = _MaintenanceOrderOperation.sumnr -- association [0..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