SAP

n8n and SAP OData: First Read and Connection Choices

Read an SAP OData service with n8n HTTP Request: service contracts, credentials, query parameters, pagination and connector selection.

Illustration representing an automation connection between n8n and SAP

If an SAP OData service is published and you are authorized to access it, n8n’s HTTP Request node can read its data. First verify the service URL, OData version, entity set and user permissions. Installing a community node does not publish SAP services automatically.

This guide describes a general OData read workflow. NeKu AI’s n8n-nodes-sap package uses its own SAP wrapper module; its installation is covered in the n8n SAP Connector guide.

HTTP Request or an SAP connector?

Starting situationPath to evaluateWhat to verify
A specific SAP OData service is availableUse its service contract with n8n HTTP RequestURL, authentication, entity set, fields and pagination
You need a community node for generic OData operationsReview that package’s own documentationV2/V4 support, operations, maintenance and n8n compatibility
You need report execution through the NeKu AI SAP moduleNeKu AI n8n SAP ConnectorSAP module, licensing, Execute Report contract and report permissions

With HTTP Request, you configure the service URL, query parameters and pagination. The NeKu AI connector uses the SAP wrapper module’s report-call contract. Generic OData community nodes support different operations depending on the package.

1. Prepare the SAP service contract

Ask the SAP owner for the test environment’s HTTPS service root, OData version, entity set name, permitted fields and authentication method. Where supported, the $metadata document helps you inspect the data model. OData V2 and V4 can differ in response formats and supported queries.

Choose a bounded first task: for example, reading only required fields from a few permitted records. Check the test user’s read permissions for the selected records and fields.

2. Configure n8n HTTP Request

Add a Manual Trigger, followed by HTTP Request:

  • Method: GET.
  • URL: The service and entity set address provided by your organization. Example URL: https://sap-test.example.com/<service-root>/<entity-set>.
  • Authentication: The credential type actually supported by the service. HTTP Request offers options including Basic and OAuth2; confirm which method the target SAP service uses.
  • Send Query Parameters: Enable this and enter supported parameters in separate fields.
  • Response Format: Select JSON when requesting a JSON response, and check the content type returned by the service.

The example address is a placeholder. Keep passwords and tokens in the n8n credential record, rather than the URL, workflow text or a shared example.

3. Limit the first read

ParameterFirst testCheck
$top5The record limit supported by the service
$selectA comma-separated list of approved field namesObtain names from metadata or the service contract
$filterA contract-compatible condition, only if neededField types, syntax and filter support

Query parameters are not an authorization mechanism. SAP must enforce user permissions and data scope on the server. If a parameter is unsupported, inspect the returned error and service contract.

4. Check V2/V4 responses and pagination

Common JSON collection formats use d.results in OData V2 and value in V4. Inspect the actual response version, format and n8n node output before choosing the list consumed by the next step. Response envelopes can vary.

After the first five-record response, check pagination. If the server returns a continuation URL, configure HTTP Request’s Pagination setting to use it. In V4 JSON this is commonly @odata.nextLink; in V2 it is __next. Verify its actual location in the response. Check the expected service origin and credential scope, and set page and time limits.

The n8n pagination documentation covers continuation URLs and parameter-based pagination. Do not replace a server-provided continuation URL with an arbitrary $skip calculation.

5. Compare the result with acceptance criteria

A first workflow can be Manual Trigger → HTTP Request → inspect approved fields → compare with the expected result. Design notifications, AI interpretation or writes to another system as separate steps after the read is verified.

ObservationFirst check
401 or 403Credentials, user, service access and data permissions
404Service root, entity set and service publication
400Query syntax, field names and supported parameters
Missing recordsServer pagination, record limits and user scope
Timeout or service failureNetwork, service health, time limits and controlled retries

Handle service failures in a separate error branch and set retry limits for the read call. If you add SAP writes, also design CSRF handling and duplicate-operation prevention.

When should you choose the NeKu AI wrapper?

The NeKu AI connector’s Execute Report operation uses SAP connector module. This is a different contract from a generic OData service URL and requires the commercial SAP-side module and an approved report. Use the installation video, connector product page and demo checklist together when evaluating the option.

For the wider architecture decision, read the n8n, SAP Integration Suite and MCP comparison. Contact our team to evaluate an existing OData service and the wrapper approach against the same pilot task.

Technical sources

NEKU/SEARCH

Search the NeKu AI knowledge network