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: 

printer name

Former Member
0 Kudos

Hi experts,

Can any body tell me how to get printer name by using Sy-uname.

for any username i want to fetch the configured printer name.

Regards

Ravi.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

If u want to know the list of printers connected to your sap system thentry like this

Do one thing Goto SPAD --> output Devices

Regards

Pavan

5 REPLIES 5

Former Member
0 Kudos

Hi

If u want to know the list of printers connected to your sap system thentry like this

Do one thing Goto SPAD --> output Devices

Regards

Pavan

Former Member
0 Kudos

table USR01, the field is SPLD.

This will give you the device short name, if you want the long name, you will then have to go to TSP03L. Here you can use the short name to get the long name.

You could also use the conversion routine function module to convert from the short name to the long name.

CONVERSION_EXIT_SPDEV_OUTPUT

***************************************

also check FM

FTR_CORR_CHECK_DEFAULT_PRINTER

Former Member
0 Kudos

Hi,

The table in USR01 and the output device field is SPLD.

Also if you go system tab on the top of the screen and then goto user profile>own data->defaults--->outputdevice to get the name of the printer attached to the user.

hope it was useful.

Thanks,

Sandeep.

0 Kudos

Hi all,

Thanks

Former Member
0 Kudos

Hi,

select SPLD from USR01

into l_device where BNAME EQ sy-uname.

l_device will have the internal short name of default printer which u can configure through SU3 transaction(defaults tab)

if u want to get the original printer name use

CONVERSION_EXIT_SPDEV_OUTPUT pass l_device here u will get full printer name.

*reward if solved*