Skip to Content
Technical Articles
Author's profile photo Jose Sequeira

S/4 Flexible Workflow: ABAP code for Push Notifications

Hello,

As i’ve talked about Push Notification for S/4 Flexible Workflows (for Purchase Order as an example) here, a colleague asked about some Customizations (like sending pushes from specific places using ABAP code). So let’s talk about that!

Again, first you should understand all the steps to setup WF Push Notifications, as described here.

You’ll be familiar with Notification Providers:

And knowing that the report RSWF_PUSH_NOTIFICATION_EXECUTE should be scheduled.

But ho is the one that can actually send the Push notifications? It’s class /iwngw/cl_notification_api method create_notifications.

You can call from any point of interest in your ABAP custom code. But, how to know what parameters to pass?

Take a look at the DEMO report /IWNGW/R_BEP_DEMO_CREATE_NOTIF:

You’ll see that there is a PO demo scenario, filling the parameters for the class method (using a sample PO):

Executing the report:

Push notification arrived:

Enjoy!

Regards.

Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Madhu Vadlamani
      Madhu Vadlamani

      Hi Jose,

      Nice Blog. can you give me some idea how to use this effectively  in business.

      Regards,

      Madhu.

      Author's profile photo Jose Sequeira
      Jose Sequeira
      Blog Post Author

      Hello Madhu Vadlamani, how are you?

      You could insert Push notifications to notify approvers on delay of action, at a specific step with a specific message, notify the creator of the PO, etc... The sky is the limit!

      Regards.

       

      Author's profile photo Madhu Vadlamani
      Madhu Vadlamani

      Thank  You.

      Author's profile photo Jose Sequeira
      Jose Sequeira
      Blog Post Author

      You're welcome Madhu Vadlamani.