Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SAP Gateway: How do setup a service to access an ABAP function directly, without any entities?

Tags:

abap

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?

like image 892
Adam Harkus Avatar asked Jan 25 '26 08:01

Adam Harkus


1 Answers

how do I call this directly via a SAP Gateway service without any structures or entities, as they aren't required.

This isn't currently possible so I'm afraid implementing an entity or structure is required.

If you don't want to use CREATE_ENTITY you could use a function import, which requires either an entity type or a complex type to be able to return your values from the backend.

I suggest just implementing a simple new entity however.
You can always build upon it in the future, for example when you need to invalidate the token.

like image 199
Laurens Deprost Avatar answered Jan 29 '26 00:01

Laurens Deprost



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!