cancel
Showing results for 
Search instead for 
Did you mean: 

Push Notification in SUP Hybrid App

Former Member
0 Kudos

Hi Experts,

I've developed an application below :

A Purchase Order application, for viewing the details of purchase order.

Now whenever a purchase is being approved in SAP R3 server.

I got to give a notification to the mobile user.

Is it possible to have notification in hybrid app?

If so how to accomplish it?

Thanks in advance,

Vinoth

Accepted Solutions (1)

Accepted Solutions (1)

midhun_vp
Active Contributor
0 Kudos

Follow these steps to enable push notifications in HWC application.

  • Enable DCN in the SAP system. best example is here. You need send the data to the SUP as JSON string. The JSON string containing the data will update the CDB.
  • In the HWC application keep a server initiated starting point. You can find the example here. Based on the matching rule you are setting the notification will reach the device.

- Midhun VP

Former Member
0 Kudos

Thanks Midhun/Tahir,

Very much needed article!!

I've another doubt, Is it possible to send this notification to a specific device user?

tahir_z
Contributor
0 Kudos

Yes, its possible. In the dcn JSON format there is tag called "to" which represent user that message to send.

{"op":"",

   "id":"",

    "to":"<device username registred in SCC>",

     "from":"",

       "subject":"",

         "body":"",

          "received":"",

            "read":f,"priority":false,"data":[]}

Regards

Tahir

midhun_vp
Active Contributor
0 Kudos

In the "to" field of the JSON message that you configured in the SAP keep the user name you registered in the SCC to get the notification only to that particular user.

- Midhun VP

Answers (2)

Answers (2)

tahir_z
Contributor
0 Kudos

Hi,

Check out the following link calling SUP DCN from abap side.

http://scn.sap.com/community/developer-center/mobility-platform/blog/2012/06/11/calling-the-sup-data...

Regards

Tahir

Former Member
0 Kudos
Former Member
0 Kudos

Hi Srikanth,

Thanks for your response,

The example you provided are based on OData,

But I want to do it with MBO based App.

Is it possible with MBO?

Thanks,

Vinoth Kumar

david_brandow
Contributor
0 Kudos

Yes. You'll need your SAP server to send WF DCN notifications, and then have a workflow with a server-initiated starting point that processes those WF DCN notifications, sending a message to the appropriate device(s) for that user.