C_SrvcOrdTmplMaintenancePlan
Maintenance plans which service order template has been used
C_SrvcOrdTmplMaintenancePlan is a Consumption CDS View that provides data about "Maintenance plans which service order template has been used" in SAP S/4HANA. It reads from 1 data source (I_MaintenanceItemBasic) and exposes 37 fields with key field MaintenanceItem. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintenanceItemBasic | _MaintenanceItemBasic | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_MaintenancePlanBasic | _MaintenancePlan | _MaintenancePlan.MaintenancePlan = $projection.MaintenancePlan |
| [0..1] | I_ServiceDocumentType | _ServiceDocumentType | _ServiceDocumentType.ServiceDocumentType = $projection.ServiceDocumentType |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSRVCORDTMPLMP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.allowExtensions | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Maintenance plans which service order template has been used | view |
Fields (37)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenanceItem | MaintenanceItem | MaintItem | |
| MaintenanceItemDescription | MaintenanceItemDescription | MaintItem text | ||
| MaintenancePlan | MaintenancePlan | MaintenancePlan | ||
| MaintenancePlanDesc | _MaintenancePlan | MaintenancePlanDesc | ||
| MaintenancePlanCategory | MaintenancePlanCategory | |||
| MaintenancePlanCategoryDesc | ||||
| SchedulingEndDate | _MaintenancePlan | SchedulingEndDate | End Date For Scheduling | |
| datsasSchedulingStartDate | Start Date For Scheduling | |||
| MaintenancePlanTypeText | ||||
| MaintenancePlanSystemStatus | Status | |||
| ServiceOrderTemplate | ServiceOrderTemplate | Transaction ID | ||
| ServiceContract | ServiceContract | Service Contract | ||
| ServiceContractDescription | _ServiceContract | ServiceDocumentDescription | ||
| ServiceContractItem | ServiceContractItem | Service Contract Item | ||
| ServiceDocumentType | ServiceDocumentType | Service Order Type | ||
| ServiceDocumentTypeName | ||||
| MaintenancePlanInternalID | _MaintenancePlan | MaintenancePlanInternalID | ||
| MaintenancePlanningPlant | MaintenancePlanningPlant | Planning Plant | ||
| MaintenancePlannerGroup | MaintenancePlannerGroup | Planner Group | ||
| Equipment | Equipment | Equipment check | ||
| MaintObjectLocAcctAssgmtNmbr | MaintObjectLocAcctAssgmtNmbr | Loc/AccAssmt | ||
| FunctionalLocation | _LocationAccountAssignment | FunctionalLocation | Object ID | |
| MaintenanceItemObjectList | MaintenanceItemObjectList | Object list | ||
| Product | Product | Product Sold | ||
| Customer | _MaintenancePlan | Customer | Sold-to Party | |
| _MaintenancePlan | _MaintenancePlan | |||
| _MaintenancePlanCatParam | _MaintenancePlanCatParam | |||
| _MaintenancePlannerGroup | _MaintenancePlannerGroup | |||
| _MaintenancePlanningPlant | _MaintenancePlanningPlant | |||
| _LocationAccountAssignment | _LocationAccountAssignment | |||
| _FunctionalLocation | _LocationAccountAssignment | _FunctionalLocation | ||
| _MaintenanceItemObject | _MaintenanceItemObject | |||
| _Equipment | _Equipment | |||
| _Product | _Product | |||
| _ServiceDocumentType | _ServiceDocumentType | |||
| _ServiceContract | _ServiceContract | |||
| _ServiceContractItem | _ServiceContractItem |
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 C_SrvcOrdTmplMaintenancePlan.
-- 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: CSRVCORDTMPLMP
CREATE VIEW C_SrvcOrdTmplMaintenancePlan AS
SELECT
MaintenanceItem,
MaintenanceItemDescription,
MaintenancePlan,
_MaintenancePlan.MaintenancePlanDesc AS MaintenancePlanDesc,
MaintenancePlanCategory,
_MaintenancePlanCatParam._Text[1:Language=$session.system_language].MaintenancePlanCategoryDesc AS MaintenancePlanCategoryDesc,
_MaintenancePlan.SchedulingEndDate AS SchedulingEndDate,
cast( case _MaintenancePlan.MaintPlanSchedgIndicator when '3' then '00000000' when '4' then _MaintenancePlan.SchedulingStartDate else _MaintenancePlan.BasicStartDate end as abap.dats ) as SchedulingStartDate AS datsasSchedulingStartDate,
cast('' as ddtext ) AS MaintenancePlanTypeText,
cast ('' as txt30 ) AS MaintenancePlanSystemStatus,
ServiceOrderTemplate,
ServiceContract,
_ServiceContract.ServiceDocumentDescription AS ServiceContractDescription,
ServiceContractItem,
ServiceDocumentType,
_ServiceDocumentType._ServiceDocumentTypeText[1:Language=$session.system_language].ServiceDocumentTypeName AS ServiceDocumentTypeName,
_MaintenancePlan.MaintenancePlanInternalID AS MaintenancePlanInternalID,
MaintenancePlanningPlant,
MaintenancePlannerGroup,
Equipment,
MaintObjectLocAcctAssgmtNmbr,
_LocationAccountAssignment.FunctionalLocation AS FunctionalLocation,
MaintenanceItemObjectList,
Product,
_MaintenancePlan.Customer AS Customer,
_LocationAccountAssignment._FunctionalLocation AS _FunctionalLocation
FROM I_MaintenanceItemBasic AS _MaintenanceItemBasic
LEFT OUTER JOIN I_MaintenancePlanBasic AS _MaintenancePlan ON _MaintenancePlan.MaintenancePlan = MaintenancePlan -- association [0..1]
LEFT OUTER JOIN I_ServiceDocumentType AS _ServiceDocumentType ON _ServiceDocumentType.ServiceDocumentType = ServiceDocumentType -- 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