10-24-2007 11:02 AM
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.
10-24-2007 11:04 AM
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
10-24-2007 11:04 AM
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
10-24-2007 11:04 AM
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
10-24-2007 11:09 AM
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.
10-24-2007 11:46 AM
10-24-2007 11:57 AM
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*