Symptom
User wants to copy a configuration from one quote to another through CPQ Scripting methods.
Environment
SAP SALES CLOUD CPQ
Reproducing the Issue
- Attempt to copy a configuration by Querying SAP CPQ Internal Tables , getting the configuration ID, and pass it to the ProductHelpe.CreateProduct() method
- Error is thrown.
Cause
How To.
Resolution
- It is not recommended to Query Internal Tables
- For Quote 1.0:
product = ProductHelper.CreateProduct(quoteNumber, itemNumber)
product.AddToQuote()
- For Quote 2.0:
product = ProductHelper.CreateProduct(quoteNumber1, itemNumber)
quote = QuoteHelper.Get([quoteNumber2 or QuoteId])
quote.AddItem(product, 1)
See Also
Keywords
ProductHelper, Scripting, Copy, CPQ , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , How To
Product
SAP CPQ 2024