SAP Knowledge Base Article - Public

3426866 - Document Template not displaying line item name

Symptom

When having a Configurable Product which contains attributes referencing other products, line item name is not referring to it's name, but instead, retrieving main item name, when using Quote.CurrentItem.ProductInfo.ProductName

Environment

SAP SALES CLOUD CPQ

Reproducing the Issue

  1. Create a Configurable product which attributes reference another products;
  2. Create a Document Template using Quote.CurrentItem.ProductInfo.ProductName in order to retrieve each item name (main item and line item);
  3. Check that for every line item, tag is retrieving the main item name, even though if you attempt to retrieve other information from the line items it works properly.

Cause

  • Expected behavior;
  • There is a backend parameter that controls what is shown when using Quote.CurrentItem.ProductInfo.ProductName. 

Resolution

  • SAP Support Team must be engaged in order to change backend parameter that controls the behavior;
  • When parameter is set to true, each line item will refers to it's main item product. If attribute value refer to another product, when parameter is true, Quote.CurrentItem.ProductInfo.ProductName tag will return main item product name instead product name that attribute value refers to;
  • When parameter is set to false, Quote.CurrentItem.ProductInfo.ProductName tag will return the line item product name;
  • If a quote is already created and change is requested, it is required to create a new quote in order to have the new behavior. 

Keywords

Line Item, Configurable Product, Attribute, Document Generation, DocGen, Name, CPQ , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , How To

Product

SAP CPQ 2024