SAP Customer Checkout (CCO) provides standard templates for A4 and 80mm receipts. However, in some cases, customers may require specific modifications to these templates. This guide focuses on adapting the A4 format and highlights key considerations for customization.
The main modifications are applied in the SalesReceiptPrintTemplateA4.xsl file. Additional XSL files that impact this receipt format include BaseIncludes.xsl and PrintAttributesA4.xsl. Although the SalesReceiptTemplate80mm.xsl can also be modified similarly, note that adjustments may differ based on the format.
The SalesReceiptPrintTemplateA4.xsl for SAP CCO is built on a combination of various XSL files, each contributing specific functionality to the printing process. Two particularly important files for the A4 format are BaseIncludes.xsl and PrintAttributesA4.xsl, which determine layout, fonts, sizes, and attributes for printing on an A4 receipt.
BaseIncludes.xsl: This file contains essential variables and templates that form the foundation for the SalesReceiptPrintTemplateA4.xsl. For example, it defines variables for language translations, current date, and cash desk data. Additionally, the file includes formatting templates that allow flexible and region-specific content presentation.
PrintAttributesA4.xsl: This file sets the layout settings for the A4 receipt, such as page size (21 cm x 29.7 cm), margins, and font (Arial). Adjustments to these settings allow customization of the receipt layout to meet specific business requirements.
If customers require additional information on the receipt that is not provided by default, root.xml offers an effective way to retrieve all potential print values. This file can be generated by modifying the run.bat file within the CustomerCheckout folder. Using a text editor such as Notepad++, add the line “-DFOP= true ^” between lines 226 and 268.
It is important to note that root.xml will only be generated if the A4 receipt is configured to print as a PDF. Once created, the file allows for identifying the path to the desired values, which can then be integrated into the SalesReceiptPrintTemplateA4.xsl to customize the receipt.
Step 1:
Step 2:
Step 3:
Restart the POS After Changes: After making changes to the SalesReceiptPrintTemplateA4.xsl, you need to restart the POS and print a receipt (a PDF print is sufficient) to ensure that the adjustments have been correctly applied. Although time-consuming, this is the only way to verify functionality.
Troubleshooting: If the template prints in the default format or fails to print, there is likely an error in the modifications. The console, which opens when the POS starts, may display error messages that help in troubleshooting. It is recommended to save successful adjustments to avoid reverting to faulty changes.
Important Note on Integrating with the POS: Once modifications to SalesReceiptTemplateA4.xsl are successful, the file should be saved in a folder. It is essential to rename the file here to prevent it from being overwritten during system updates, which could cause all changes to be lost. You must also update the POS configuration to reference the new file name. This applies to all modified files in the folder, including BaseIncludes.xsl and other print templates.
Customizing the SalesReceiptPrintTemplateA4.xsl for SAP CCO can be a complex task, but it offers ample opportunities to tailor receipts to meet customer requirements. With a solid understanding of the XSL files involved, proper configuration of root.xml, and adherence to best practices for modifications and troubleshooting, you can create customized receipts that are both functional and visually appealing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.