ABAP Notify BOR Event changes through web hooks
The request is a POST request with a simple json object. This object has the following parameters:
- action
The action to perform can be
subscribe
orunsubscribe
. - object
The SAP BOR object that sends the event.
BUS1006
Partner orBUS1178001
Material for example. - event
The SAP BOR Event.
created
orchanged
for instance. - callbackurl The url the ABAP system should contact when the event is raised.
Web hook request with curl
curl -X POST -H "Content-Type: application/json" -u <username>:<password> -d '{"action":"","object":"BUS1006","event":"created","http://localserver/handle/event"}' http://<server>:<port>/webhook
example with trial abap system:
curl -X POST -H "Content-Type: application/json" -u sapuser:Appl1ance -d '{ "action":"subscribe", "object":"BUS1006", "event":"created", "callbackUrl": "http://localserver/handle/event"}'http://vhcalnplci.dummy.nodomain:8000/webhook }' http://vhcalnplci.dummy.nodomain:8000/webhook