2010 Feb 25 10:52 AM
Hi all,
I have background job of forms running every day and its printing papers. My requirement is to stop the printing of papers in the background job.
How to do this .
i am using CALL FUNCTION 'GET_PRINT_PARAMETERS and NEW-PAGE PRINT ON PARAMETERS v_params NO DIALOG.
NEW-PAGE PRINT OFF.
Thanks
Krupali
2010 Mar 03 3:55 AM
Hi,
<li>Set the below before you call NEW-PAGE PRINT ON
<li>Call NEW-PAGE PRINT ON like below
lw_pripar-prrel = space.
lw_pripar-primm = space.
Thanks
Venkat.ONEW-PAGE PRINT ON
NEW-SECTION
PARAMETERS lw_pripar
ARCHIVE PARAMETERS lw_arcpar
NO DIALOG.
2010 Mar 01 12:28 PM
Goto Menu bar-> System->user profile->owndata->Defaults tab-> spool control-> uncheck output immediately.Log off and log in .
May be useful
Edited by: raj on Mar 1, 2010 6:08 PM
2010 Mar 02 11:55 AM
If you change the background job in SM37, goto the step with the ABAP program in, and change this, there is a print specification button.
Select this, and the output device selection screen appears, on here is a properties button.
Select this, and under the General properties, is a 'Time of printing'. This can be set to 'Send to SAP Spooler Only for Now'. This will stop the output to the printer.
2010 Mar 03 3:23 AM
Hi,
If sy-batch = 'X'.
Printer = 'XYZZ'.
ENDIF.
Change the Printer parameters to the Non existing printer name if the program is running in the background.
And pass it to the FM. IT will create a spool but cannot be printed.
This should work..
2010 Mar 03 3:55 AM
Hi,
<li>Set the below before you call NEW-PAGE PRINT ON
<li>Call NEW-PAGE PRINT ON like below
lw_pripar-prrel = space.
lw_pripar-primm = space.
Thanks
Venkat.ONEW-PAGE PRINT ON
NEW-SECTION
PARAMETERS lw_pripar
ARCHIVE PARAMETERS lw_arcpar
NO DIALOG.