cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to invoke .xsjs service via stored procedure

0 Kudos
855

Hi,

Does anyone knows how to invoke .xsjs service from stored procedure? I have a service which I need to call from a stored procedure and pass parameter like company code. Is it feasible to do?

Regards,

Kam

View Entire Topic
SergioG_TX
SAP Champion
SAP Champion
0 Kudos

you cannot call an xsjs service from a procedure. the only way would be to call a procedure from an xsjs service using the $.hdb API callas or as shown above by Mantri.

Additionally, you could call an xsjs service from an XS Job.

here is the API documentation https://help.sap.com/http.svc/rc/3de842783af24336b6305a3c0223a369/2.0.01/en-US/$.hdb.ResultSet.html

hope it helps