cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Create PM notification with oData

Radoslav_ORW
Explorer
0 Likes
2,964

Hi,

I'm looking for SAP oData service, where I can create PM notification on S4H system. I've searched https://api.sap.com/apicockpit, but there are only methods for GET, or POST for accept or dismiss, but none for create. Usually I use IW21 transaction or FM IQS4_CREATE_NOTIFICATION.

Exist service for creating this type of notifications ?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Radoslav_ORW
Explorer
0 Likes

Hi,

thanks for hint. With this service I can read notifications. With you help, we found exact service to create notification for PM with my colleague.

service: /sap/opu/odata/sap/eam_ntf_create/NotificationHeaderSet

sample data:

{
"AttachmentId" : "",
"UserCanBeNotified" : false,
"NotificationPhase" : "1",
"PlantSection" : "",
"Completed" : false,
"Room" : "",
"NotificationNumber" : "",
"ShortText" : "",
"NotificationTimezone" : "EET",
"NotificationDate" : "\/Date(1588809600000)\/",
"NotificationTime" : "PT15H23M16S",
"TecObjNoLeadingZeros" : "",
"TechnicalObjectTypeDesc" : "",
"ReporterDisplay" : "",
"LastChangedTimestamp" : "\/Date(1588850638000)\/",
"TechnicalObjectType" : "",
"Deleted" : false,
"Effect" : "",
"EffectText" : "",
"DateMonitor" : "Y",
"NotificationTimestamp" : "\/Date(1588854196000)\/",
"ReporterUserId" : "",
"TechnicalObjectNumber" : "",
"TechnicalObjectDescription" : "",
"NotificationType" : "M1",
"Priority" : "",
"PriorityType" : "PM",
"PriorityText" : "",
"Location" : "",
"Reporter" : "",
"Subscribed" : false
}

Answers (1)

Answers (1)

geert-janklaps
SAP Mentor
SAP Mentor
0 Likes

Hi,

In the API Hub there doesn't seem to be an API that fulfills your requirements. I did a lookup in an S/4HANA 1909 system on that specific function module (and the function modules which integrate this specific one). Unfortunately it looks like there's no standard OData service available that specific function module.

I do however see an odata service EAM_OBJPG_MAINTNOTIFICATION with a GET/POST/PATCH method on entity C_ObjPgMaintNotification which might serve your needs:

(I'm using ABAP OpenAPI to create this screenshot)

Best regards,

Geert-Jan Klaps

jlskrishna
Discoverer
0 Likes
get call is working but post is not working..getting 405
jlskrishna
Discoverer
0 Likes
can we use anyother process to expose an Odata for creation of Notification