--- title: "Prepare and sync product attachments" slug: "prepare-and-sync-product-attachments" description: "Synchronize product attachments between Zilliant CPQ and SAP ERP." updated: 2025-09-02T16:02:09Z published: 2025-09-02T16:02:09Z canonical: "docs.zilliant.com/prepare-and-sync-product-attachments" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.zilliant.com/llms.txt > Use this file to discover all available pages before exploring further. # Prepare and sync product attachments Zilliant CPQ can retrieve product attachments from SAP ERP as part of the [product synchronization](/main/docs/prepare-and-sync-products) process. SAP ERP stores attachments, such as PDFs or images, as binary objects linked to products through internal document IDs. To retrieve these attachments: - One BAPI is used to query the list of attachments for a product. - A second BAPI is used to retrieve the binary content of each document. To synchronize product attachments automatically with [products](/main/docs/prepare-and-sync-products): 1. [Wrap BAPIs in SAP ERP.](/main/docs/prepare-and-sync-product-attachments#wrap-bapis-in-sap-erp) 2. [Configure BAPI settings in Zilliant CPQ.](/main/docs/prepare-and-sync-product-attachments#configure-bapi-settings-in-zilliant-cpq) 3. [Enable attachment synchronization.](/main/docs/prepare-and-sync-product-attachments#enable-attachment-synchronization) --- ## Wrap BAPIs in SAP ERP To allow Zilliant CPQ to access attachment data remotely, wrap the following BAPIs: - `BDS_GOS_CONNECTIONS_GET`—Retrieves a list of attachment document IDs and their metadata for a specific product. - `SO_DOCUMENT_READ_API`—Retrieves the binary content of a specified attachment using the document ID returned by the first BAPI. For details on wrapping BAPIs, read the official [SAP ERP documentation](https://help.sap.com/docs/) ![External link indicator](https://cdn.document360.io/24f960e8-3c1c-4c18-a2c6-83b6ae4aab84/Images/Documentation/external-link-svgrepo-com.svg?sv=2026-02-06&spr=https&st=2026-11-25T04%3A14%3A25Z&se=2026-11-25T05%3A14%3A25Z&sr=b&sp=r&sig=8MUSo9U9DWOFzAN1OEpsu9q0Ydu7Bn9vp3TokLVnr5c%3D). ## Configure BAPI settings in Zilliant CPQ When needed BAPIs are available in SAP, define them in Zilliant CPQ as system settings: 1. Sign in to Zilliant CPQ with your administrator credentials. 2. From the left navigation area, select **Administration**. 3. From the top navigation bar, select **Master Data Management**. 4. Scroll or search to locate **Setting String** and select it from the list. 5. To define the BAPI for retrieving document IDs: 1. Select the following label: *A remote enabled BAPI name to get the list of attachment document id in order to query another BAPI to get the binary data* 2. In the **Setting Value String** field, enter **BDS_GOS_CONNECTIONS_GET**. 3. Select **Save**. Then return to the **Setting String** list. 6. To define the BAPI for retrieving binary content: 1. Locate and select the following label: *A remote enabled BAPI name to get the binary data for the specified document id* 2. In the **Setting Value String** field, enter **SO_DOCUMENT_READ_API**. 3. Select **Save**. ## Enable attachment synchronization When the BAPI settings are in place, enable CPQ to synchronize products with attachments automatically: 1. Sign in to Zilliant CPQ with your administrator credentials. 2. From the left navigation area, select **Administration**. 3. From the top navigation bar, select **Master Data Management**. 4. Scroll or search to locate **Setting Boolean** and select it from the list. 5. Select **SettingProductSyncDownloadAttachment**. 6. Set the **Setting Value Boolean** switch to **YES**. 7. Select **Save**.