--- title: "Prepare and sync product sales text" slug: "prepare-and-sync-product-sales-text" description: "Synchronize product sales text data between SAP ERP and Zilliant CPQ." updated: 2025-09-02T16:01:40Z published: 2025-09-02T16:01:40Z canonical: "docs.zilliant.com/prepare-and-sync-product-sales-text" --- > ## 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 sales text Zilliant CPQ can retrieve product sales text, known as *material sales text* in SAP ERP, as part of the [product synchronization](/main/docs/prepare-and-sync-products) process. In SAP, sales text is maintained per sales organization and distribution channel and can have translations in several languages. However, during synchronization, only the languages maintained in Zilliant CPQ are retrieved. This topic explains: - [How to enable product sales text synchronization](/main/docs/prepare-and-sync-product-sales-text#synchronize-product-sales-text) - [Supporting lookup tables used in the process](/main/docs/prepare-and-sync-product-sales-text#supporting-lookup-tables) - [How to configure custom language mapping using Groovy scripts](/main/docs/prepare-and-sync-product-sales-text#groovy-script-for-language-mapping) --- ## Synchronize product sales text To automatically [synchronize products](/main/docs/prepare-and-sync-products#synchronize-products) with sales text: 1. In Zilliant CPQ, enable the **SettingProductSyncDownloadProductSalesText** setting: 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. Move through or search to locate **Setting Boolean** and select it from the list. 5. Select **SettingProductSyncDownloadProductSalesText**. 6. Set the **Setting Value Boolean** switch to **YES**. 7. Select **Save**. 2. In SAP ERP, enable the RFC_READ_TEXT BAPI. This BAPI is used to read the text content directly from SAP ERP during synchronization. For details, read [Enable BAPIs](/main/docs/enable-bapis). --- ## Lookup tables for sales text synchronization Two Zilliant CPQ lookup tables support the sales text synchronization: - [MVKE](/main/docs/prepare-and-sync-product-sales-text#mvke-table) - [LANGUAGEKEYS](/main/docs/prepare-and-sync-product-sales-text#languagekeys-table) ### MVKE table This table links a product (known as material in SAP ERP) with the relevant sales organization and distribution channel. It ensures that CPQ can locate the correct sales text entry in SAP. The MVKE table contains the following columns: - MATNR—Product ERP ID (material number in SAP ERP). - VKORG—Sales organization ERP ID. - VTWEG—Distribution channel ERP ID. You can populate this table in either of the following ways: - Direct sync from SAP’s MVKE table. To limit the number of records, create a filtered database view in SAP ERP and sync that view instead. - Manual data entry in CPQ. ### LANGUAGEKEYS table This table maps SAP language keys to the 2-character ISO language codes used in CPQ. The data source for this table is SAP’s **T002** table. The LANGUAGEKEYS table contains the following columns: - SPRAS—Language key. - LAISO—2-character SAP language code. --- ## Groovy script for language mapping By default, Zilliant CPQ uses the current user’s locale language to determine which sales text to display for a product. However, you can override this behavior by uploading a [Groovy script](/v1/docs/about-groovy) for the predefined extension point. This helps support cases where the sales text is used for a different purpose. In a Groovy script, define custom mapping logic between the user’s language and the desired SAP sales text language. To use a Groovy script for language mapping: 1. [Write a script.](/main/docs/prepare-and-sync-product-sales-text#write-a-script) 2. [Upload the script to CPQ.](/main/docs/prepare-and-sync-product-sales-text#upload-the-script-to-cpq) ### Write a script The following binding variables are available for the script: | Variable name | Description | | --- | --- | | `userLanguage` | The 2-character ISO code of the current user’s language, for example, `en` or `de`. | | `textType` | Type of text being requested, for example, `SALES_TEXT`. | Sample script: ```groovy /* This script determines the sales text language to use * when retrieving product sales text from SAP ERP. */ if (textType.equals("SALES_TEXT")) {    return "en_sg"; } return userLanguage; ``` ### Upload the script to CPQ Upload the script for **UserLangToTextLangMappingScript**. For details about uploading and configuring Groovy scripts, read [Upload a Groovy script](/v1/docs/upload-a-groovy-script). This script runs automatically when Zilliant CPQ retrieves sales text from SAP ERP.