C_RSHOrderDetails
Maintenance order long text details
C_RSHOrderDetails is a Consumption CDS View that provides data about "Maintenance order long text details" in SAP S/4HANA. It reads from 1 data source (I_MaintenanceOrder) and exposes 11 fields with key field MaintenanceOrder.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintenanceOrder | I_MaintenanceOrder | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CRSHORDDETAILS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Maintenance order long text details | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view |
Fields (11)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenanceOrder | MaintenanceOrder | ||
| MaintenanceOrderInternalID | MaintenanceOrderInternalID | |||
| MaintOrderOperationLongText | ||||
| MaintenanceOrderType | MaintenanceOrderType | |||
| MaintenancePlanningPlant | MaintenancePlanningPlant | |||
| MaintenancePlannerGroup | MaintenancePlannerGroup | |||
| MaintObjectLocAcctAssgmtNmbr | MaintObjectLocAcctAssgmtNmbr | |||
| Equipment | Equipment | |||
| LatestAcceptableCompletionDate | LatestAcceptableCompletionDate | |||
| _Equipment | _Equipment | |||
| _LocationAccountAssignment | _LocationAccountAssignment |
@AbapCatalog.sqlViewName: 'CRSHORDDETAILS'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Maintenance order long text details'
@VDM.viewType: #CONSUMPTION
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XL
/*
CONTRACT**********************************************************************************************************************
Specification: This view provides the long text for the maintenance orders
The code is added in the Odata to convert the text into string format and return.
maximum of 5 lines will be returned from backend.
Requires: n/a
Ensures: returns the long text in the form of the character string
Owners: PK
Contributors: PK
Unit Test required Y/N: No
Additional comments None
END OF CONTRACT***************************************************************************************************************
*/
define view C_RSHOrderDetails
as select from I_MaintenanceOrder
{
key MaintenanceOrder as MaintenanceOrder,
MaintenanceOrderInternalID as MaintenanceOrderInternalID,
//Filled in Odata service and only first 5 lines will be returned
@ObjectModel.readOnly: true
@ObjectModel.virtualElement
@ObjectModel.virtualElementCalculatedBy: 'ABAP:CL_RSH_EAM_ORD_LONG_TEXT'
cast('' as abap.char( 1333 )) as MaintOrderOperationLongText,
// Selects for DCLs
MaintenanceOrderType,
MaintenancePlanningPlant,
MaintenancePlannerGroup,
MaintObjectLocAcctAssgmtNmbr,
Equipment,
LatestAcceptableCompletionDate,
_Equipment,
_LocationAccountAssignment
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MAINTENANCEORDER"
],
"ASSOCIATED":
[
"I_EQUIPMENT",
"I_LOCATIONACCOUNTASSIGNMENT"
],
"BASE":
[
"I_MAINTENANCEORDER"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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