Skip to main content

SAP OData Requirements

The documented authorizations cover only the technical connection and OData/ODP access requirements. They do not cover business authorizations for the underlying CDS views, tables, or application data that are accessed through the service. If additional authorizations are required for specific CDS views or tables, they must be identified separately, for example by using STAUTHTRACE.


Supported Solutions

Extraction TypeSolution
Full Extraction- SAP NetWeaver 7.4 SPS08
- SAP NetWeaver 7.5 (we recommend SPS02 or higher)
- SAP BW/4HANA 1.0
Delta Extraction- SAP NetWeaver 7.5 SPS05 or higher
- SAP BW/4HANA 1.0 SPS01

Minimum supported: S/4HANA 1909 FPS01 Recommended: S/4HANA 2020 or newer Recommended for RAP-heavy OData V4: S/4HANA 2021 FPS01 or newer


Service Catalog

The service catalog is available via service group /IWFND/CONFIG and is delivered in an inactive state. Find all information about the service catalog in this article in the SAP Help Portal.

To publish/enable the service catalog please follow this SAP blog post.


Roles and Authorizations for the OData Connection

Note

We highly recommend to set up a service or technical SAP user for the OData connection.

To create or change a corresponding user, you need authorizations for the following transactions:

  • PFCG: maintain or create authorization role
  • SU01: maintain or create users

Transaction Authorizations

Authorization ObjectFieldValueDescription
S_TCODETCDODQMONAllows access to the ODQ monitor transaction (Delta Queue Monitor)

Service Catalog / SData Service Authorizations

Authorization ObjectFieldValueDescription
S_SERVICESRV_NAME*Authorization Defaults Hash Key Name
S_SERVICESRV_TYPE*Authorization Defaults Hash Key Type
S_TCODETCDSICFAllows access for Service Implementation
/IWFND/SRV/IWFND/SRG*Technical Service Document Name
/IWFND/SRV/IWFND/SRV*Version of Meta Model Entity

Administration / Background Processing Authorizations

Authorization ObjectFieldValueDescription
S_ADMI_FCDS_ADMI_FCDNADM (Network administration-related value shown in role)Administrative function authorization
S_BTCH_ADMBTCADMIND (Authorization to Display Jobs from Other Clients)
P (Authorization to Create Periodic Jobs (SAP Note 1716340))
Y (Background Adminsitrator Authorization)
Background job administration
S_BTCH_JOBJOBACTIONDELE (Delete Background Jobs)
PROT (Display Job Processing List)
RELE (Release Jobs (Released Automatically When Scheduled))
SHOW (Display Job Queue)
Background job operation
S_BTCH_JOBJOBGROUP*Background job group

Dataset / Trace File Authorization

Authorization ObjectFieldValueDescription
S_DATASETPROGRAMCL_RODPS_REPLICATION==========CPProgram authorization for ODP replication trace handling
S_DATASETACTVT06 (Delete)
33 (Read)
34 (Write)
Allows file operations required for trace/log processing
S_DATASETFILENAMERODPS_REPL_TRACE.TXTTrace file used by ODP replication testing

Program Execution Authorization

Authorization ObjectFieldValueDescription
S_PROGRAMP_ACTIONBTCSUBMIT (Schedule programs for background processing)Allows execution of relevant background programs
S_PROGRAMP_PROGNAMODQ_TASKProgram name related to ODQ task processing

Application Log Authorization

Authorization ObjectFieldValueDescription
S_APPL_LOGALG_OBJECTODQApplication log object for ODQ
S_APPL_LOGALG_SUBOBJ*All ODQ log subobjects
S_APPL_LOGACTVT03 (Display)
06 (Delete)
Allows viewing/deleting ODQ-related application logs

ODP / DHCD Authorization

Authorization ObjectFieldValueDescription
S_DHCDSTPDHCDCSBTYPODP (Operational Data Processing)ODP-related authorization
S_DHCDSTPACTVT01 (Create or generate)
02 (Change)
03 (Display)
Allows required ODP-related processing actions

ODP Source Authorization

Authorization ObjectFieldValueDescription
S_RO_OSOAOLTPSOURCE*Allows access to ODP source objects
S_RO_OSOAOSOAAPCO*Allows access to ODP application components
S_RO_OSOAOSOAPARTDATA (Data Access)
DEFINITION (Matadata Access)
Allows access to ODP source metadata and data
S_RO_OSOAACTVT03 (Display)
23 (Maintain)
Allows viewing and maintaining ODP source access

CDS Extraction Authorization

Authorization ObjectFieldValueDescription
S_RS_CDS_XDDLXTRNAME*Allows access to CDS extraction objects
S_RS_CDS_XDDLXTRPARTDATA (Data Access)Allows data access for CDS extraction
S_RS_CDS_XDDLXTRRELSC1 (released (C1))Restricts access to released CDS extraction objects
S_RS_CDS_XACTVT03 (Display)Allows display access

Program and Application Authorizations

Authorization ObjectFieldValueDescription
S_STARTAUTHPGMIDR3TRProgram ID
S_STARTAUTHOBJTYPG4BAObject Type
S_STARTAUTHOBJNAM*Object Name

Authorizations for data extraction

As we only described the authorizations for a technical connection with OData, you have to add the necessary authorizations for CDS views, tables, etc. by yourself. If a extraction fails, you can check the SAP transaction STAUTHTRACE for authorizations that may be missing.

  • open the transaction STAUTHTRACE in your SAP system
  • start an authorization trace for the technical SAP user
  • reproduce the failed OData request or data extraction
  • stop the trace and check it for failed authorization checks
  • identify missing authorization objects, fields and values
  • add these to the appropriate SAP role
  • regenerate the role profile
  • retest the OData connection or data extraction

This ensures that only the required object-level and data-level authorizations are added.