C_SrvcOrdTmplMaintenancePlan

DDL: C_SRVCORDTMPLMAINTENANCEPLAN SQL: CSRVCORDTMPLMP Type: view CONSUMPTION

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)

SourceAliasJoin Type
I_MaintenanceItemBasic _MaintenanceItemBasic from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_MaintenancePlanBasic _MaintenancePlan _MaintenancePlan.MaintenancePlan = $projection.MaintenancePlan
[0..1] I_ServiceDocumentType _ServiceDocumentType _ServiceDocumentType.ServiceDocumentType = $projection.ServiceDocumentType

Annotations (11)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;