Skip to Content
0
Jun 22, 2020 at 07:01 AM

Mass Printing of customer invoice in SAP ByDesign

393 Views Last edit Jun 24, 2020 at 09:38 AM 2 rev

screen-shot.jpgHi, I would like to ask a question for mass printing of customer invoicing in SAP Bydesign

We tried to proceed it like below blog post, but mass printing for customer invoice is not working.

We we select custom button, but no answer.

https://blogs.sap.com/2017/05/30/mass-printing/

Setting in the system is correct, so I think there could be some missing in the source or in cloud studio.

Our source for mass printing is like below. Is there any missing part for source?

If you have same experience, please help to share your ideas.

Thanks

Jiho

import ABSL; import AP.Common.GDT as apCommonGDT; import BASIS.Global as basisGlobal; import DocumentServices.Global; if (this.Status.ReleaseStatusCode == "3") //Release { var userAccountID : UserAccountID; var PDF : basisGlobal:BinaryObject; var title = "CustomerInvoiceDoc"; userAccountID.content = "PRT_004"; if (this.DocumentOutputRequest.IsSet()) { var docOPReqItem = this.DocumentOutputRequest.Item; if (docOPReqItem.Count() > 0) { title = docOPReqItem.GetFirst().DocumentName; if (docOPReqItem.GetFirst().ItemPreview.IsSet()) { if (!docOPReqItem.GetFirst().ItemPreview.PreviewBinaryObject.IsInitial()) { //Assign the content PDF.content = docOPReqItem.GetFirst().ItemPreview.PreviewBinaryObject.content; } } } } var PrintDocument = OutputManagementUtilities.CreatePrintQueueItem(userAccountID, title, 1, PDF, "Customer invoicing"); return false; } else { return true; }

Attachments

screen-shot.jpg (160.6 kB)