Skip to Content
Author's profile photo Ivan Mirisola

SUP Notifications vs. Credentials – Part I

The concept

I’ve participated recently on a proof of concept using Sybase Mobile Workflow for Business Suite and I was in charge of finding out how to teach the customer on developing the code required for sending notifications to devices.
After research on the topic I found this excellent documentation on sending General DCN Requests and how they differ from a DCN Workflow request. Oh, BTW the DCN anachronism stands for Data Change Notification and the the process in which SUP receives a notification that a change has been made to a data source and required SUP’s attention.

If you are interested on developing the code, please take a look at the following documentation:

Mobile Workflow Data Change Notification: Sybook where you will find detailed information on how DCN for Workflow works


Developer Reference for Mobile Workflow Packages: This package contains an excellent example written in Java which shows not just the HTTP request, but also the DCN request.

Both are for version 1.5.5, but the information is also valid for 2.0

JSON in Java: I’ve found this was pretty helpful in construction the DCN request which is in JSON format.

Here is a sample code I’ve manage to put in codex on how to ease the DCN request creation in Java using JSON.

The challenge

Up to here it’s all pretty much research job – no big deal. But the first time I decided to run a test, I ended up frustrated, because my code didn’t work at all.
I used the device user – the one we use to register the device. But the servlet kept telling me that there were no devices associated to that user.
So I’m back at research when I found a frustrating information on a text note – I shouldn’t be using that user anyway. But get even more frustrated it didn’t tell me which user it was or where to create it.

Luck of me I was not alone. Thanks to my buddy Lucas Araujo I realized that there is a User Repository in SUP specifically designed for authenticating mobile users.
He told me to look for the installations instructions on Sybase Mobile Workflow for SAP Business Suite.
There I found out how to create users on OpenDS (Apache LDAP Server).

OK, now I know where the user must be created, but how to I assign a device to that particular user?

The answer

The same document provided what I needed. Again, thanks to my friend Davi Correa I now know that users created in OpenDS and authenticated against SUP will appear on Sybase Control Center as assigned to a device.
Since I am able to look into the Workflow package from Sybase for Business Suite I was able to unveil the mystery.

All I needed to do was understand how the authentication happens within Workflow’s context.
So here is the overall picture on how things work within SUP:

On part II I will deep dive into Mobile Worklow to show how to get things done.
So stay tuned for more.


Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member
      Ivan, do you have any tutorial in how to implement WF-JSON? developing a JSON is clear, but how to implement it into SAP and SUP I didn't understand, can you help?
      Author's profile photo Ivan Mirisola
      Ivan Mirisola
      Blog Post Author
      Hi Fernando,

      There is no WF-JSON.
      You need to build a request to the SUP Servlet and send as parameters a message crafted in JSON format. Take a look at codex and come back if you need more answers.


      Author's profile photo Former Member
      Former Member
      Yeah, I check in your Codex Project about the JSON source, but I don't know where to implement it, like SUP Servlet where Can I find it?, to build a request I need a BAPI function right? your JSON code where do u implement it?

      Thx! and sorry for the dummies questions 😀

      Author's profile photo Former Member
      Former Member
      Ivan, problem was solved thx!