Hi
We have 2 printer types with 8 and 10 output trays. We have for this defined print-controls TRO10-TRO19 for one device type and ZTRY1-ZTRY8 for an other device type.
We use this in Sapscripts to control output tray per user. In a simple Z-table we have defined what print control to use if user xxx prints on printer yyyy.
This is used for users in the shipping department printing tons of documents like delivery notes, customs declarations etc. and the user is really saving a lot of time because of this solution.
Now we also want to implement the solution in smartforms, but what was very smart in sapscript seems to be not so smart i smartforms.
In sapscript we could simply use the print-control command with a variable like this:
PRINT-CONTROL &GW_PRCTL&
But in smartforms it seems we have to hard code 18 command elements - one for each Printer Control - and then by conditions on each command element control, that only one of them is used. And if we get an ekstra tray on one of the printers or a new printer type with other print controls for tray selection, then we have to change the hard coded elements.
Please tell me the is a smarter solution for smartforms.