Symptom
When adding a new section at the bottom of a document it gets repositioned to the middle of it.
Environment
SAP SALES CLOUD CPQ
Reproducing the Issue
- Open a Quote
- Go to Document Generation page
- Attempt to add a Section to the bottom of your document
- When generating, it gets reordered and section is added to the middle of the document.
Cause
Bug.
Resolution
- The issue occurs if non-consecutive ranks are used in the setup for sections. For example, 10, 20, 30 instead of 1, 2, 3
- Upon clicking the "generate document" action from the quote, the template customization on the quote is synchronized with the state in the setup, this is done to align the customization with any changes in the setup that might affect it. It also checks the ranks of sections if custom sorting has not already been performed on the quote
- Sections on the quote have consecutive ranks, so when a new section is added, it receives the last rank for that customization, for example 6
- However, if the sections in the setup have ranks like 5, 20, 50, 80, 100 during synchronization, the rank from the setup is applied to these sections. The custom section retains its assigned rank since it doesn't have a definition in the setup
- As sorting is applied based on rank the custom section will be moved to the position that ranks belongs
- There are two possible workarounds:
- Use consecutive ranks in increments of one (1, 2, 3, 4, 5) in the setup instead of larger gaps (such as 10, 20, 50, 200)
- Reorder the sections on quote and save the customization, then restore the order and add the custom section afterward
- Tentative Fix Date: Yet to be Provided.
See Also
Keywords
Document Generation, Hierarchy, Section, CPQ , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Known Error
Product
SAP CPQ 2024