cancel
Showing results for 
Search instead for 
Did you mean: 

Program to display multiple printers

Former Member
0 Kudos

Hi everybody,

Is there any program or function that displays list of printers and allows to select one of them in the list.

I am trying to display list of printers when i hit the print icon.

Thanks

Mamatha

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Problem resolved.

Former Member
0 Kudos

hi,

check the FM RSPO_LIST_PRINTERS

and give the import parameter as LETTER. U can get the list of printers available for your client. or Check TSP06A or TSP03 tables.

Former Member
0 Kudos

Hi Naveen,

Thanks for ur reply.

Could you provide me with an example.

In my case i have coded my program in the below way for a singel printer.

FORM open_and_start_form .

pr_options-tddest = 'P009'.

pr_options-tdsuffix1 = 'PMAN'.

pr_options-tdsuffix2 = material_str-matnr.

pr_options-tdimmed = 'X'.

pr_options-tdlifetime = '2'.

pr_options-tdprogram = 'YPPPIMBRL_PRINT'.

call function 'OPEN_FORM'

exporting

device = 'PRINTER'

dialog = space

form = 'ZPPPI_BATCH-TICK'

language = SY-LANGU

options = pr_options

exceptions

canceled = 01

device = 02

form = 03

options = 04

unclosed = 05.

call function 'START_FORM'.

ENDFORM. " open_and_start_form

Appreciate your help.

Thanks

Mamatha

Former Member
0 Kudos

Hi,

I would like to display Print parameter list box where i can select to which printer i want to print. Right now, i have hard coded the printer name in the program.

Appreicate any kind of help.

Thanks

Mamatha

Former Member
0 Kudos

Problem solved. Used Call function get_print_parameter.

Thanks

Mamatha

Former Member
0 Kudos

hi ,

please go to the transaction SU3 and there in the 2nd tabstrip we have an option output printer there set your printer name and try it.

OR

try this link

hope this will help you.

reward if useful

Edited by: gupta pullipudi on Apr 8, 2008 11:27 PM