Allowing users to choose printer for Smart Form output
How can we allow users to choose which network printer to send Smart Form output to from an ABAP report program?
Add a parameter to the selection-screen based on type NAST-LDEST (Printer ID). If you do this correctly, it should appear as a drop-down box with all defined printers in your system.
In your code, pass this parameter value into NAST-LDEST itself and into CONTROL_PARAM-DEVICE (or whatever variant thereof you are using to call the form). Make sure this value transfer takes place before you call the Smart Form itself.
This was first published in February 2007