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

How to get the default printer?

Former Member
0 Likes
2,789

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.

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
Read only

Former Member
0 Likes
1,446

Hi,

Check the table USR01-SLPD.

It gives the Default Printer Name.

Thanks,

Reward If Helpful.

Read only

Former Member
0 Likes
1,446

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

Read only

Former Member
0 Likes
1,446

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

Read only

Former Member
0 Likes
1,446

Thanks...solved the problem.