OAuth configuration 1.2 – Generate OAuth scope for OData service using wizard

Published by Tobias Hofmann on

1 min read

SAP Help:

For the OData service used, see my blog “Create an OData service from CDS”.

Besides the option to activate an OAuth scope for an OData service manually, a wizard can be used. In that case, to enable OAuth for an OData service, the Service Maintenance transaction is used (for NW versions below 7.4, check the links above to see how to add a scope to a service). The activation is simple: select the service and click on the OAuth button to activate OAuth for this service. This creates a scope, checks the OAuth flag and configures the ICF node for OAuth.



Select service and click on OAuth.

Select package (local package $tmp)


The OAuth flag is set. This means that:

  • ICF Node configured to use the OAuth handler
  • OAuth scope for the service was created

Check ICF node

Activating OAuth changes the login Handler of the ICF Node of the OData service. The handler is set to /IWFND/CL_SODATA_HTTP_HNDL_OAT which inherits from /IWFND/CL_SODATA_HTTP_HANDLER.

To check this, click on ICF Node and open the service in SICF.

Click on tab Handler List

Let the world know

Tobias Hofmann

Doing stuff with SAP since 1998. Open, web, UX, cloud. I am not a Basis guy, but very knowledgeable about Basis stuff, as it's the foundation of everything I do (DevOps). Performance is king, and unit tests is something I actually do. Developing HTML5 apps when HTML5 wasn't around. HCP/SCP user since 2012, NetWeaver since 2002, ABAP since 1998.

1 Comment

Delete OAuth scope | It's full of stars! · April 30, 2020 at 13:00

[…] an OData service with OAuth, a scope is needed. I blogged about how to create a scope (using the wizard or a report) already. While adding a scope to a service is very easy, deleting is a little bit more […]

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.