SAP Knowledge Base Article - Public

3504092 - Application parameters to define prefix and suffix for generated document name

Symptom

  • The generated document name from a quote does not include the expected prefix or suffix as defined in the application parameters.
  • When generating a document from quote, we can define what prefix and suffix should be present in document name.
  • Hence, configure application parameters in setup to define prefix and suffix for generated document name.

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental"

Environment

SAP SALES CLOUD CPQ

Reproducing the Issue

  1. Go to setup.
  2. Go to quotes.
  3. Under quotes go to document generation templates.
  4. In general settings tab.
  5. Update values for prefix and suffix and save the changes.
  6. Open a quote, for example 12345678.
  7. Click on generate document.
  8. Check the downloaded file, it will have name as "Prefix_QuoteNumber_Suffix.docx".

Cause

This is happening as per design and parameter values updated in setup for prefix and suffix.

Resolution

  • The generated file name consists of:
    {Prefix}{Quote number}{Revision number}-{sequence number}{Suffix}{FileExtension}.
  • Prefix and suffix are optional, it will show in document name once updated in setup, the rest is generated automatically in the code and can't be changed.

See Also

3504092 - Unable to hide quote number in the name of the generated document.
Document Generation Template | SAP Help Portal

Keywords

prefix, suffix, quote number, generated document, naming , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Problem

Product

SAP CPQ all versions