Tags to display data from custom table


SAP CPQ offers a few tags that are used to display data from custom table uploaded by the SAP CPQ admin. Here is the list of tags and an example of how to use them.

<<CUSTOM_TABLE(...)>> - Always comes in pair with its closing tag <<CUSTOM_TABLE_END>>. As a parameter, this tag accepts a custom table name. (e.g. «CUSTOM_TABLE(additional_options_custom_table)»)
<<CUSTOM_TABLE_HEADER>> - Always comes in pair with its closing tag <<CUSTOM_TABLE_HEADER_END>>. This tag does not accept any parameter and is used to define header of the table that will display data.
<<CUSTOM_TABLE_ROW>> - Always comes in pair with its closing tag <<CUSTOM_TABLE_ROW_END>>. This tag defines table row where data will be displayed. It can contain one or more <<CUSTOM_TABLE_COLUMN>> tags.
<<CUSTOM_TABLE_COLUMN(...)>> tag defines table column within table row where data from a particular custom table column is displayed. This tag does not have a closing tag. This tag accepts parameter, which it is the name of the custom table column that you want to be displayed. This tag is always placed within <<CUSTOM_TABLE_ROW>> tag.

Example

Assuming that SAP CPQ admin has already defined custom table named “additional_options_custom_table” with two columns: “additional_description” and “options”, you can create template section to display data from custom table as follows:

<<C2>>
<<MAIN>>

<<CUSTOM_TABLE(additional_options_custom_table)>>
<<CUSTOM_TABLE_HEADER>>
Additional description  ---- Options 
<<CUSTOM_TABLE_HEADER_END>>
<<CUSTOM_TABLE_ROW>>
 <<CUSTOM_TABLE_COLUMN(additiona_description)>> ---- <<CUSTOM_TABLE_COLUMN(options)>> 
<<CUSTOM_TABLE_ROW_END>>
<<CUSTOM_TABLE_END>>
<<MAIN_END>>
<<C_END>>
You are here: SAP Sales Cloud CPQ Online HelpAdmin Page HelpSAP CPQ TagsQuote Generation TagsTags to display data from custom table