# Purchase requisition sync

With the purchase requisition sync, your purchase requisitions created in SAP S/4HANA are imported into Fairmarkit, and request for quote (RFQ) events are created. When your event is awarded in Fairmarkit, the awarded data is sent back to SAP S/4HANA, and your purchase requisition is updated.

### Import to Fairmarkit <a href="#importtofairmarkit" id="importtofairmarkit"></a>

Based on a scheduled job, Fairmarkit will import your purchase requisitions created in SAP S/4HANA and create a request for quote events in Fairmarkit.

<figure><img src="https://1711751134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F95QWDcOsKn95Me8sE2RP%2Fuploads%2FFuyw9FIAqsen8ln1KJ7o%2Fs4hop-import_thumb_0_0.png?alt=media&#x26;token=13bc81e0-b150-40db-9409-e7d9a5020cb7" alt=""><figcaption></figcaption></figure>

The scheduled job does the following:

* Finds all purchase requisitions created or updated within the last 70 minutes, and identifies new and updated items.
* Maps your SAP S/4HANA data to be used in Fairmarkit.\
  How is this data mapped?

**Request for quote event header**

This data will be used in the Fairmarkit request for quote event header.

| SAP S/4HANA field                | Fairmarkit field |
| -------------------------------- | ---------------- |
| Purchase Requisition Description | Title            |
| Purchase Requisition             | External RFQ ID  |

**Request for quote event items**

This data will be used to create items in the Fairmarkit request for quote event.

| SAP S/4HANA field              | Fairmarkit field |
| ------------------------------ | ---------------- |
| Purchase Requisition Item      | Item Identifier  |
| Requested Quantity             | Quantity         |
| Base Unit                      | UOM              |
| Purchase Requisition Item Text | Title            |
| Purchase Requisition Price     | Benchmark Price  |
| Product Type                   | Item Kind        |

&#x20;

* Creates request for quote events in Fairmarkit.

### Export to SAP S/4HANA <a href="#exporttosaps4hana" id="exporttosaps4hana"></a>

When your Fairmarkit request for quote event is awarded, the award data is sent to SAP S/4HANA, and then you can approve the purchase requisition. During this process, the following will happen:

* Sends event data via a Fairmarkit webhook.
* Maps your Fairmarkit data to use in SAP S/4HANA.\
  How is this data mapped?

**Request for quote event items**

This data will be updated in your purchase requisition in SAP S/4HANA.

| Fairmarkit field | SAP S/4HANA field  |
| ---------------- | ------------------ |
| Quantity         | Requested Quantity |
| Item Kind        | Product Type       |
| Supplier         | Supplier           |

* Updates purchase requisition in SAP S/4HANA.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fairmarkit.com/buyers/integrations/sap-s-4hana-integration/purchase-requisition-sync.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
