C_ObjPgMaintNotificationTask

DDL: C_OBJPGMAINTNOTIFICATIONTASK SQL: COBJPGMNTNTFTASK Type: view CONSUMPTION

Maintenance Notification Task

C_ObjPgMaintNotificationTask is a Consumption CDS View that provides data about "Maintenance Notification Task" in SAP S/4HANA. It reads from 1 data source (I_MaintNotificationTaskTP) and exposes 35 fields with key fields MaintenanceNotification, MaintenanceNotificationTask. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_MaintNotificationTaskTP I_MaintNotificationTaskTP from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_User _CompletedByUser $projection.CompletedByUser = _CompletedByUser.UserID

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName COBJPGMNTNTFTASK view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Maintenance Notification Task view
Metadata.allowExtensions true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
VDM.viewType #CONSUMPTION view

Fields (35)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceNotification I_MaintNotificationTaskTP MaintenanceNotification Notification
KEY MaintenanceNotificationTask I_MaintNotificationTaskTP MaintenanceNotificationTask
MaintenanceNotificationItem I_MaintNotificationTaskTP MaintenanceNotificationItem
MaintNotifTaskCodeGroup I_MaintNotificationTaskTP MaintNotifTaskCodeGroup Task Code Group
MaintNotifTaskCodeGroupName Task Code Group Name
MaintNotifTaskCode I_MaintNotificationTaskTP MaintNotifTaskCode Task Code
MaintNotifTaskCodeName
MaintNotifTaskTxt I_MaintNotificationTaskTP MaintNotifTaskTxt
ResponsiblePersonFunctionCode I_MaintNotificationTaskTP ResponsiblePersonFunctionCode
MaintNotifTaskPartFuncName
ResponsiblePerson I_MaintNotificationTaskTP ResponsiblePerson Processor
ResponsiblePersonName Responsible Name
PlannedStartDate I_MaintNotificationTaskTP PlannedStartDate Latest Planned Start
PlannedStartTime I_MaintNotificationTaskTP PlannedStartTime Planned Start Time
PlannedEndDate I_MaintNotificationTaskTP PlannedEndDate Planned Finish Date
PlannedEndTime I_MaintNotificationTaskTP PlannedEndTime Planned Finish Time
MaintNotifItmTskPlndStrtDteTme Planned Start Date
MaintNotifItmTskPlndEndDteTime Planned Finish Date
CompletedByUser I_MaintNotificationTaskTP CompletedByUser
TaskCompletedByUserName _CompletedByUser UserDescription Completed by User Name
CompletionDate I_MaintNotificationTaskTP CompletionDate Completion Date
CompletionTime I_MaintNotificationTaskTP CompletionTime Completion Time
MaintNotifItmTskCompltnDteTime Completion Date
MaintNotifTaskInternalID I_MaintNotificationTaskTP MaintNotifTaskInternalID
IsDeleted I_MaintNotificationTaskTP IsDeleted TRUE
_MaintenanceNotification I_MaintNotificationTaskTP _MaintenanceNotification
_PartnerFunction I_MaintNotificationTaskTP _PartnerFunction
_ContactPerson I_MaintNotificationTaskTP _ContactPerson
_Customer I_MaintNotificationTaskTP _Customer
_Employee I_MaintNotificationTaskTP _Employee
_OrganizationalUnitText I_MaintNotificationTaskTP _OrganizationalUnitText
_PositionText I_MaintNotificationTaskTP _PositionText
_Supplier I_MaintNotificationTaskTP _Supplier
_User I_MaintNotificationTaskTP _User
_CompletedByUser _CompletedByUser

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_ObjPgMaintNotificationTask.
-- 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: COBJPGMNTNTFTASK

CREATE VIEW C_ObjPgMaintNotificationTask AS
SELECT
  I_MaintNotificationTaskTP.MaintenanceNotification AS MaintenanceNotification,
  I_MaintNotificationTaskTP.MaintenanceNotificationTask AS MaintenanceNotificationTask,
  I_MaintNotificationTaskTP.MaintenanceNotificationItem AS MaintenanceNotificationItem,
  I_MaintNotificationTaskTP.MaintNotifTaskCodeGroup AS MaintNotifTaskCodeGroup,
  replace(I_MaintNotificationTaskTP._MaintNotifTaskCodeGroup._Text[1:Language=$session.system_language].InspSpecAddlCodeGroupText, '&', ' ') AS MaintNotifTaskCodeGroupName,
  I_MaintNotificationTaskTP.MaintNotifTaskCode AS MaintNotifTaskCode,
  I_MaintNotificationTaskTP._MaintNotificationTaskCode._Text[1:Language=$session.system_language].InspectionCodeText AS MaintNotifTaskCodeName,
  I_MaintNotificationTaskTP.MaintNotifTaskTxt AS MaintNotifTaskTxt,
  I_MaintNotificationTaskTP.ResponsiblePersonFunctionCode AS ResponsiblePersonFunctionCode,
  I_MaintNotificationTaskTP._PartnerFunction._Text[1:Language=$session.system_language].PartnerFunctionName AS MaintNotifTaskPartFuncName,
  I_MaintNotificationTaskTP.ResponsiblePerson AS ResponsiblePerson,
  cast('' as eams_person_responsible_name) AS ResponsiblePersonName,
  I_MaintNotificationTaskTP.PlannedStartDate AS PlannedStartDate,
  I_MaintNotificationTaskTP.PlannedStartTime AS PlannedStartTime,
  I_MaintNotificationTaskTP.PlannedEndDate AS PlannedEndDate,
  I_MaintNotificationTaskTP.PlannedEndTime AS PlannedEndTime,
  cast (dats_tims_to_tstmp( PlannedStartDate, PlannedStartTime, I_MaintNotificationTaskTP._MaintenanceNotification.NotificationTimeZone , $session.client, 'NULL') as tzntstmps preserving type ) AS MaintNotifItmTskPlndStrtDteTme,
  cast (dats_tims_to_tstmp( PlannedEndDate, PlannedEndTime, I_MaintNotificationTaskTP._MaintenanceNotification.NotificationTimeZone , $session.client, 'NULL') as tzntstmps preserving type ) AS MaintNotifItmTskPlndEndDteTime,
  I_MaintNotificationTaskTP.CompletedByUser AS CompletedByUser,
  _CompletedByUser.UserDescription AS TaskCompletedByUserName,
  I_MaintNotificationTaskTP.CompletionDate AS CompletionDate,
  I_MaintNotificationTaskTP.CompletionTime AS CompletionTime,
  cast (dats_tims_to_tstmp( CompletionDate, CompletionTime, I_MaintNotificationTaskTP._MaintenanceNotification.NotificationTimeZone , $session.client, 'NULL') as tzntstmps preserving type ) AS MaintNotifItmTskCompltnDteTime,
  I_MaintNotificationTaskTP.MaintNotifTaskInternalID AS MaintNotifTaskInternalID,
  I_MaintNotificationTaskTP.IsDeleted AS IsDeleted,
  I_MaintNotificationTaskTP._MaintenanceNotification AS _MaintenanceNotification,
  I_MaintNotificationTaskTP._PartnerFunction AS _PartnerFunction,
  I_MaintNotificationTaskTP._ContactPerson AS _ContactPerson,
  I_MaintNotificationTaskTP._Customer AS _Customer,
  I_MaintNotificationTaskTP._Employee AS _Employee,
  I_MaintNotificationTaskTP._OrganizationalUnitText AS _OrganizationalUnitText,
  I_MaintNotificationTaskTP._PositionText AS _PositionText,
  I_MaintNotificationTaskTP._Supplier AS _Supplier,
  I_MaintNotificationTaskTP._User AS _User
FROM I_MaintNotificationTaskTP
LEFT OUTER JOIN I_User AS _CompletedByUser ON CompletedByUser = _CompletedByUser.UserID  -- association [0..1]
;