Skip to main content

Overview

The S4Kit SDK provides a clean, intuitive API for CRUD operations on SAP OData entities. All operations are accessed through the client.sap namespace.

List Entities

Retrieve multiple entities with optional filtering:

List with Count

Get entities along with the total count:

List All (Pagination)

Automatically fetch all pages:
Use all() carefully with large datasets. Consider using pagination or filtering to limit results.

Get Single Entity

Retrieve a single entity by its key:

Composite Keys

For entities with composite keys, pass an object:

Create Entity

Create a new entity:

Deep Create

Create an entity with nested related entities:

Update Entity

Update an existing entity (PATCH - partial update):

Replace Entity

Replace an entire entity (PUT - full replacement):

Delete Entity

Delete an entity by its key:

Delete with Composite Key

Batch Operations

Create Many

Create multiple entities in a single request:

Update Many

Update multiple entities:

Delete Many

Delete multiple entities:

Upsert

Create or update an entity based on whether it exists:

Working with Navigation Properties

Access related entities through navigation properties:

Override Connection Per-Request

Use a different SAP instance for a specific request: