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

Printer settings

Former Member
0 Likes
1,114

Hi

I have defined my default printer as LOCL(Local) in my user profile

For one of development, i need server name of printer

This server name appears in windows printer settings. How to retrive this server name of printer ??

Edited by: mayuresh bhurke on Nov 4, 2009 6:16 PM

1 ACCEPTED SOLUTION
Read only

former_member156446
Active Contributor
0 Likes
1,044

TSP03D - PAMSSERVER (Server Name)

10 REPLIES 10
Read only

Former Member
0 Likes
1,044

try these FMs

SCUI_GET_SPOOLER_INFO

Read only

0 Likes
1,044

Soumyaprakash M...

FM given by you is used to get SAP HOST SERVER NAMe.

My user profile has default printer LOCL (LOCAL)

I need windows default printer server name.

Read only

former_member156446
Active Contributor
0 Likes
1,045

TSP03D - PAMSSERVER (Server Name)

Read only

0 Likes
1,044

Hi J@Y

Iam new to ABAP forum and functional guy.

Please explain -


TSP03D - PAMSSERVER (Server Name) is tranaction or FM or program

Read only

0 Likes
1,044

>

> Hi J@Y

>

>

> Iam new to ABAP forum and functional guy.

>

> Please explain -


TSP03D - PAMSSERVER (Server Name) is tranaction or FM or program

table: TSP03D

field in that table : PAMSSERVER

you would have to find a link between the data you have to this table to get the server name PAMSSERVER

Read only

0 Likes
1,044

for windows(presentation server???) server dtails you need to read the registry.

using the methods in cl_gui_frontend_services.

Read only

0 Likes
1,044

I am not sure what his req is but, by using the class he is loosing the capability of running the code in background.

Read only

0 Likes
1,044

ya i also am confused with the question.

by the way, have you checked with the table you mentioned? any data there? i tried this table before... though there are servers in my system.. this table showed NO ENTRY FOUND.

Read only

0 Likes
1,044

My server has data of all the entries I see in SPAD, along with the server names as per his requirement..

need to get the printer name say ef04 or pi09 etc.. and hit this table as name = ef04 and pick pamsserver for the server name

Read only

0 Likes
1,044

Try this:

DATA:

lf_default_printer TYPE FRPRLIST-PRNAME.

IF NOT sy-batch = abap_true.

CALL FUNCTION 'RSPO_FRONTEND_PRINTERS_FOR_DEV'

EXPORTING

device = 'LOCL'

IMPORTING

prdefault = lf_default_printer

EXCEPTIONS

NO_LIST

LIST_TRUNCATED

NAME_NOT_FOUND

OTHERS = 99.

...

Edited by: Wilhelm Spesny on Dec 16, 2009 4:38 PM