I'm putting together a SAPUI5 app which redirects to a 3rd Party site using an authentication token.

The token is generated in an ABAP function on the backend, so how do I call this directly via a SAP Gateway service without any structures or entities, as they aren't required.

I do however need a couple of return values passed back from the ABAP function through the Gateway service, so is this possible?