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

Retrieving default printer without saving it in user profile default

Former Member
0 Likes
648

I need to retrieve the default printer. If I save it in the user profile, I can retrieve it with FM SUSR_USER_LOGONDATA_GET.

I want to avoid having to set default parameter for large user base. Is there a function module that can read default printer when it is not saved in user profile.

Thanks

3 REPLIES 3
Read only

hadiman_ngoei
Product and Topic Expert
Product and Topic Expert
0 Likes
535

Hello Raynald,

If you are using access method F (Frontend printing) for your output device, you don't need to default the printer in the user master record. The system will determine the default printer set at the OS level.

Thanks & regards,

Hadiman Ngoei

Read only

0 Likes
535

I can't use LOCL because there is a batch job that does the printing and it does not know how to find the users default printer. Which is why I am trying to find alternative to put printer in user profile.

Read only

Former Member
0 Likes
535

Method:

CL_GUI_FRONTEND_SERVICES->REGISTRY_GET_VALUE(

ROOT = 1

KEY = Software\Microsoft\Windows NT\CurrentVersion\Windows

VALUE = Device

)