Skip to Content

Catch events by B1 service layer

Dear experts,

we need to catch event in B1 client (add, updated, cancel) in order to push notifications to our loosely coupled app.

Our current approach is to add EventQueue UDO and add lines by the SBO Post Transaction Notification.

then we have a service in our backend that every few seconds query the object from service layer and identifies new event since that last time we did the query .

We want our app to be completely loosely coupled and we don't want to add the EventQueue UDO and neither the code in the SBO Post.

is there a better way to catch the events? based on SBO existing tool?AP?else?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 20, 2018 at 06:32 PM


    I don`t think this is possible, following the idea of the service layer to be the new "DI" for HANA, the current DI is not possible to "listen" database events so service layer would be the same. You could use the sp_transactions or UI for this case.

    Add comment
    10|10000 characters needed characters exceeded

  • May 21, 2018 at 08:33 AM

    Hi Eyal,

    There are no option to receive events in the Service Layer, at least not until now.

    Options are:

    1. B1 stored procedures: SBO_SP_PostTransactionNotice is the best one to be used as called after the transaction is already commited. The other stored procedure is SBO_SP_TransactionNotification but you need to be carefull with this one as you can block B1 from working and also create performance problems.

    2. You can also use the Integration Framework in order to implement some actions (that could be calling a web service, writing into a table,...). There are many materials available in the B1 partner edge documentation and training.


    Add comment
    10|10000 characters needed characters exceeded