Application Development and Automation 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: 
Read only

SAPScripts

Former Member
0 Likes
656

hi,

i want to send the script form to number of printers at a time.

i mean suppose there r 4 printers one main and remaining three sub one's.

i need to have printout from all the 4 printers at a time.

how can we achieve it.

pls help.

regards,

kb

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
621

To send output to multiple printers, you can configure a pool device type. A pool device type contain a list of SAP printers which the reports will be directed to.

Do this in transaction code SPAD for spool administration.

For example, in SPAD, type ZXXX next to the field 'Output devices',

u2022 Click the button Output devices.

u2022 In change mode, click the Create button.

u2022 Specify the Device type of your printer.

u2022 Click the tabstrips 'HostSpoolAccMethod'.

u2022 In the field "Host spool access method" set to "P: Device Pool".

u2022 Click the tabstrips 'DevicePool'

u2022 Click the options "Send to all devices in pool".

u2022 Type in the list of the SAP printers device you want the report to go to in this pool under the section 'Pool Device List'.

u2022 Now, when the users send a print to the new device for e.g. ZXXX, it will print to all the spool device you have specify.

Regards,

Joy.

6 REPLIES 6
Read only

Former Member
0 Likes
621

Hi,

No. It is not possible.

The options in OPEN_FORM is just a single structure to enter the parameters in ITCPO.

You have to loop it and pass different printer names.

Regads,

Subramanian

Read only

Former Member
0 Likes
621

Try writing a wrapper code to call the print program 4 times and use fm SET_PRINT_PARAMETERS to set the output device.This may work.

Read only

Former Member
0 Likes
622

To send output to multiple printers, you can configure a pool device type. A pool device type contain a list of SAP printers which the reports will be directed to.

Do this in transaction code SPAD for spool administration.

For example, in SPAD, type ZXXX next to the field 'Output devices',

u2022 Click the button Output devices.

u2022 In change mode, click the Create button.

u2022 Specify the Device type of your printer.

u2022 Click the tabstrips 'HostSpoolAccMethod'.

u2022 In the field "Host spool access method" set to "P: Device Pool".

u2022 Click the tabstrips 'DevicePool'

u2022 Click the options "Send to all devices in pool".

u2022 Type in the list of the SAP printers device you want the report to go to in this pool under the section 'Pool Device List'.

u2022 Now, when the users send a print to the new device for e.g. ZXXX, it will print to all the spool device you have specify.

Regards,

Joy.

Read only

0 Likes
621

hi,

thank u soo much.

its really helpful.

once again thanks a lot.

Read only

0 Likes
621

hi,

i have a dbt.

where do i need to call this in open_form.

i mean where shd i have to mention in open_form abt calling of the printers/

pls help.

regards,

kb

Read only

Former Member
0 Likes
621

Hi KB,

select * from TSP03
 call function 'GET_PRINT_PARAMETERS'
EXPORTING
copies = 1
department = 'SYSTEM'
destination = 'LOCL'
expiration = 2
immediately = ' '
layout = 'X_65_255'
line_count = 65
line_size = 255
list_name = 'SPOOL ANME'
list_text = 'Spool Text'
mode = ' '
new_list_id = 'X'
no_dialog = 'X'
receiver = 'SAP*'
release = 'X'
sap_cover_page = 'X'
user = sy-uname
IMPORTING
out_parameters = l_params
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
others = 4.

endselect.

Seleccting the printers from tsp03 and sending print to all printers using the above FM.

Edited by: Raj on Jun 27, 2008 3:10 AM