cancel
Showing results for 
Search instead for 
Did you mean: 

CPQ 2.0 Document Templates - Add multiple content documents to template via quote table tag

Alexander_0001
Participant
0 Kudos

Dear SAP Community,
My today's riddle is about the usage of the quote table tag in CPQ 2.0 Template documents.

Use case: I receive in a quote table a list of pdf file names I have to add into my quote template document.

Alexander_0001_0-1707910122576.png

This list can be different from quote to quote.
The files are already loaded in the Content Management Files section of CPQ.
Now I want to add the respective files to my document with document tags depending on whatever is listed in the quote table. 
I made already first tests with the Table Tag but they haven't been successful:

<<QUOTE_TABLE(Datasheets)>>
<<QUOTE_TABLE_HEADER>>
Datasheet
<<QUOTE_TABLE_HEADER_END>>
<<QUOTE_TABLE_ROW>>
<<Q_TAG_FILE(<<QUOTE_TABLE_COLUMN(Datasheet_File_Name)>>)>>
<<QUOTE_TABLE_ROW_END>>
<<QUOTE_TABLE_FOOTER>>
<<QUOTE_TABLE_FOOTER_END>>
<<QUOTE_TABLE_END>>

# 2 ###########################
<<QUOTE_TABLE(Datasheets)>>
<<QUOTE_TABLE_HEADER>>
Datasheet
<<QUOTE_TABLE_HEADER_END>>
<<QUOTE_TABLE_ROW>>
<<Q_FILE_STATIC(<<QUOTE_TABLE_COLUMN(Datasheet_File_Name)>>)>>
<<QUOTE_TABLE_ROW_END>>
<<QUOTE_TABLE_FOOTER>>
<<QUOTE_TABLE_FOOTER_END>>
<<QUOTE_TABLE_END>>

# 3 ###########################
<<QUOTE_TABLE(Datasheets)>>
<<QUOTE_TABLE_HEADER>>
Datasheet
<<QUOTE_TABLE_HEADER_END>>
<<QUOTE_TABLE_ROW>>
<<Q_FILE(<<QUOTE_TABLE_COLUMN(Datasheet_File_Name)>>)>>
<<QUOTE_TABLE_ROW_END>>
<<QUOTE_TABLE_FOOTER>>
<<QUOTE_TABLE_FOOTER_END>>
<<QUOTE_TABLE_END>>

I have also checked the Additional Content Functionality in the Document Template Setup. I found no solution to add a dynamic created list into a entry. I can always just provide one file entry in one field. 

Alexander_0001_1-1707911272089.png

 

I also can not use the Quote Items list and its C2 Loop for it because there would not always be a 1:1 relationship.
 
How could I achieve such a loop as I tried to describe?

I have a plan B but finding a solution for the described approach above would be connected with much less effort.

P.S: The content format could also be changed.

Look forward to your reply 🙂

Accepted Solutions (0)

Answers (0)