- 06 May 2024
- 1 Minute to read
- Print
- DarkLight
Simulate ERP Sales Order
- Updated on 06 May 2024
- 1 Minute to read
- Print
- DarkLight
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:
- In the CPQ application, select Administration.
- From the top navigation bar, select Master Data Management.
- Select SettingBoolean.
- Search for Enable Custom Simulate ERP Sales Order.
- 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 name | Class | Description |
---|---|---|
salesItemsTree | SalesItemsTree | Represents the quote. It contains the functions you can use to query and modify the quote and its line item data. |
quoteBO | BusinessObject | Quote business object. |
uomCollection | UnitOfMeasureCollection | POJO 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.