cancel
Showing results for 
Search instead for 
Did you mean: 

how to modify and add values to template SalesReceiptPrintTemplateJPOS.ftl from java

former_member333938
Participant

Dear experts:

I would like to know in what way I can add data to the print template from my Java backend, since I have data that I would like to add to the template.

Currently from java I create my own PrintJobBuilder class and I add fields with SelectableDataStructure.

But I do not know in what way I can from my JAVA backend fill data to those fields. I was seeing something with @ListenToExit (exitName = "BasePrintJobBuilder.mergeTemplateWithData") but I still do not see it clearly.

Does anyone know how to do this?

Thanks!

Jose.

Accepted Solutions (1)

Accepted Solutions (1)

R_Zieschang
Contributor

Hi josehrmatos,

have a look at my comment on my blog series:

https://blogs.sap.com/2018/10/22/sap-customer-checkout-plugin-development-part-ii/

In one comment I described how you can use the exit point you mentioned and how you can access this data in your print template.

If you have any further questions, drop me a line.

Regards

Robert

former_member333938
Participant

thank you very much rzieschang ,

The answer you gave at the end of that post in the comments helped me a lot.

Answers (1)

Answers (1)

ydamisi
Explorer
0 Kudos

Hello, is there a way to add this to the SalesReceiptPrintTemplate80mm.xsl?