Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop background job to print papers

Former Member
0 Kudos
2,139

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

1 ACCEPTED SOLUTION

venkat_o
Active Contributor
0 Kudos
531

Hi, <li>Set the below before you call NEW-PAGE PRINT ON


lw_pripar-prrel = space.
lw_pripar-primm = space.
<li>Call NEW-PAGE PRINT ON like below
NEW-PAGE PRINT ON
      NEW-SECTION
      PARAMETERS lw_pripar
      ARCHIVE PARAMETERS lw_arcpar
      NO DIALOG.
Thanks Venkat.O

4 REPLIES 4

raj_kumar86
Participant
0 Kudos
531

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

Former Member
531

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.

Former Member
0 Kudos
531

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..

venkat_o
Active Contributor
0 Kudos
532

Hi, <li>Set the below before you call NEW-PAGE PRINT ON


lw_pripar-prrel = space.
lw_pripar-primm = space.
<li>Call NEW-PAGE PRINT ON like below
NEW-PAGE PRINT ON
      NEW-SECTION
      PARAMETERS lw_pripar
      ARCHIVE PARAMETERS lw_arcpar
      NO DIALOG.
Thanks Venkat.O