Hi ABAP Experts,
I developed a custom program to print sales orders that utilizes Sapscript form. Additional requirement is to determine whether the document is for first-time printing or for reprinting.
My idea is to have a custom table which basically stores the status of the document (printed or not) and to update that table after the 'CLOSE_FORM' function module of Sapscript. However, the program does not detect if the user clicks Close or Cancel in Windows print dialog box, so it just continue to update the table regardless of what the user clicks.
In line with this, is there a way in the program to know the user actions in the print dialog box? If no, is there any other way to know that a document with a particular sales order is already printed or not?
I hope I made myself clear here. Thank you in advance.