3/22/2017 4:56:22 PM

Issue : Multiple spools are generated in single batch job(step) and then system is sending the first spool to printer and remaining spools are not reaching printer.

Pass print parameters from an application for spools created via SAPscript, Smart Forms or Adobe Forms. specify 'Print Immediately', 'New Spool Request' or the output device to be used.

For SAPscript forms, when an application print program calls the function module OPEN_FORM, it can transfer a structure ITCPO to the parameter OPTIONS. Via OPTIONS-TDIMMED,  OPTIONS-TDNEWID, OPTIONS-TDFINAL or  OPTIONS-TDDEST your application print program can select the option 'Print Immediately', 'New Spool Request', 'Do not append Print Jobs' or the output device to be used for creating the spool.


For Smart Forms, when an application print program calls the function module of the Smart Form, it can use the interface parameter 'OUTPUT_OPTIONS'. This structure contains some fields like 'OUTPUT_OPTIONS-TDDEST', 'OUTPUT_OPTIONS-TDIMMED' and 'OUTPUT_OPTIONS-TDFINAL' etc which can be filled with the print parameters for the Smart Form spool.

When calling the function module of the Smart Form, some parameters must be set correctly so that the print doesn't happen via the user default printer:

The parameter USER_SETTINGS must be set to ' ' (the default is 'X', so the parameter must be set).

The parameters OUTPUT_OPTIONS-TDIMMED, OUTPUT_OPTIONS-TDDEST, OUTPUT_OPTIONS-TDFINAL etc must be set correctly.


For Adobe forms,  when an application print program calls the function module FP_JOB_OPEN, it can use the interface parameter IE_OUTPUTPARAMS to set the print parameters. Via interface parameters IE_OUTPUTPARAMS-DEST, IE_OUTPUTPARAMS-REQNEW and IE_OUTPUTPARAMS-REQIMM, the application print program can select the 'output device to be used for creating the spool', 'New Spool Request' or 'Print Immediately'.

If you like this blog, please share (Facebook/LinkedIn/Google+) to click below links so it will reach to others.


COMMENTS