Sales Text Parameter Mapping
  • 06 Sep 2024
  • 1 Minute to read
  • Dark
    Light

Sales Text Parameter Mapping

  • Dark
    Light

Article summary

Purpose

Allows you to run the script to convert the user's language code into a text's language code. Use it for the product sales text.

Additionally, it allows you to retrieve sales text from a distribution channel other than the quote's distribution channel.

Setup

Upload the script for Sales text parameter mapping.

For details about uploading and configuring Groovy scripts, read Upload a Groovy script.

Binding variables

In addition to the common binding variables, the following binding variables are available for this extension point.

Variable nameClassDescription
textTypeStringText type to which the language code applies. The supported value is SALES_TEXT.
salesTextInputParamMapMap that represents the input parameters to retrieve the sales text. Supports the following three main keys: SALES_ORG, DIST_CHAN, and REF_DIST_CHAN.
salesTextInputParam.SALES_ORGStringERP ID of the quote’s sales organization.
salesTextInputParam.DIST_CHANStringERP ID of the quote’s distribution channel.
salesTextInputParam.REF_DIST_CHANStringValue is blank. The value can be assigned through a Groovy extension for the reference distribution channel. To assign the reference distribution channel, use the following syntax: salesTextInputParam.put("REF_DIST_CHAN", "XX") where XX is the ERP ID of the reference distribution channel.

Expected output

The script should return:

  • String representation of the language code that should be used when retrieving the text.
  • Retrieved product sales text.

The script fetches data in the following way:

  • Sales organization ERP ID is fetched from salesTextInputParam.get("SALES_ORG").
  • Distribution channel ERP ID is fetched from salesTextInputParam.get("DIST_CHAN").
  • If REF_DIST_CHAN is assigned through a Groovy extension and the sales text is not found using the current quote’s sales organization and distribution channel, the system uses a fallback distribution channel to display the sales text.

Script execution

The script uploaded for this extension point is run automatically when a user retrieves sales data text in the line item table or in the product catalog.

If no script is uploaded for this extension point or if the returned value is not a string, the system uses the current session's language.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.