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 get the default printer?

Former Member
0 Kudos

Dear Friends,

How to get default printer name? here in my module pool program I am using the print button ones I click the Print button the report output should go default printer.

This is my syntax which I am using.

NEW-PAGE PRINT ON DESTINATION 'LOCL'

In place of LOCL....I need to give the printer name.

Need one more..At the same time I need to display the report output. is it possible? i will look at this later but I need solution to my first query..

Thanks in advance

Sridhar.

4 REPLIES 4

Former Member
0 Kudos

Hi,

Check the table USR01-SLPD.

It gives the Default Printer Name.

Thanks,

Reward If Helpful.

Former Member
0 Kudos

Hi Sridhar,

If you are using Script.

In the OPEN_FORM function, you will find a parameter 'DEVICE'

Pass your printer name to this.. it will automatically take this printer for spool.

Regards,

Hemant

former_member223537
Active Contributor
0 Kudos

Hi,

YOu can set your printer as default by executing transaction SU3.

Goto PARAMETERS tab & type LOCL.. in the value ..enter the printer name,..

SAVE it

You can get the printer name from SPAD transaction.

SPAD=>Output Devices.. Will list down all devices.. use the 4 character device type name.

Best regards,

Prashant

Former Member
0 Kudos

Thanks...solved the problem.