> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognite.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SAP writeback service

> Create and update records in SAP S/4HANA using the Cognite SAP writeback service.

## Supported SAP entities

The SAP writeback service connects to SAP standard delivered OData V2.0 endpoints available in SAP S/4HANA. It supports the following SAP entities:

* [Maintenance notifications](https://api.sap.com/api/OP_API_MAINTNOTIFICATION/overview)
* [Attachments](https://api.sap.com/api/OP_API_CV_ATTACHMENT_SRV_0001/overview)

## Supported SAP versions

The SAP writeback supports the following SAP S/4HANA versions:

* SAP S/4HANA OnPremise 2021 FPS01, and later
* SAP S/4HANA Cloud

## Before you start

* Make sure you [register the Cognite API and applications in Microsoft Entra ID](/cdf/access/entra/guides/configure_cdf_azure_oidc) and
  [set up Microsoft Entra ID and CDF groups](/cdf/access/entra/guides/create_groups_oidc) to control access to CDF data.

* To setup and use the SAP writeback service, you need the following CDF capabilities:

  * `sapwriteback:READ` and `sapwriteback:WRITE` to setup SAP destinations, endpoints, and mappings
  * `sapwritebackrequests:write` and `sapwritebackrequests:list` to send and list writeback requests

* Make sure the SAP destination endpoints are [active](https://help.sap.com/docs/SAP_Group_Reporting_Data_Collection/e29950571a2b4065b1dacaf881c67413/92bce22bebe146db826a22e64f7b7acd.html) and accessible from outside your intranet.

* Make sure the SAP user has [authorization](https://help.sap.com/doc/saphelp_ssb/1.0/en-US/6f/0e415370107d77e10000000a441470/content.htm?no_cache=true) to call SAP OData services.
