Simulate ERP Sales Order
  • 06 May 2024
  • 1 Minute to read
  • Dark
    Light

Simulate ERP Sales Order

  • Dark
    Light

Article summary

Purpose

Allows a script to be executed to enable a custom implementation when ERP pricing is performed.

Setup

Upload the script to the Groovy script with the name Simulate ERP Sales Order. For details about uploading and configuring Groovy scripts, read Upload a Groovy script.

Enable the script

You must enable this script in system settings. Follow these steps:

  1. In the CPQ application, select Administration.
  2. From the top navigation bar, select Master Data Management.
  3. Select SettingBoolean.
  4. Search for Enable Custom Simulate ERP Sales Order.
  5. Set the Setting Value Boolean switch to YES.

Binding variables

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

Variable nameClassDescription
salesItemsTreeSalesItemsTree Represents the quote. It contains the functions you can use to query and modify the quote and its line item data.
quoteBOBusinessObject Quote business object.
uomCollectionUnitOfMeasureCollectionPOJO class with unit of measurement information.

Expected output

Boolean value indicating whether the process encountered an error:

  • True—Process encountered an error.
  • False—Process was successful.

Script execution

If the setting is enabled, the script uploaded for this extension point is run automatically when the user selects ERP Pricing in a quote.

If Enable Custom Simulate ERP Sales Order is set to NO, the standard implementation is used even if a script is uploaded to this extension point. If the Enable Custom Simulate ERP Sales Order is set to YES but no script is uploaded to the extension point, the action will not succeed.


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.