‎2009 Nov 04 4:53 PM
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
‎2009 Nov 04 6:02 PM
‎2009 Nov 04 5:21 PM
‎2009 Nov 04 6:43 PM
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.
‎2009 Nov 04 6:02 PM
‎2009 Nov 04 6:45 PM
Hi J@Y
Iam new to ABAP forum and functional guy.
Please explain -
TSP03D - PAMSSERVER (Server Name) is tranaction or FM or program
‎2009 Nov 04 6:47 PM
>
> 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
‎2009 Nov 04 10:28 PM
for windows(presentation server???) server dtails you need to read the registry.
using the methods in cl_gui_frontend_services.
‎2009 Nov 04 10:30 PM
I am not sure what his req is but, by using the class he is loosing the capability of running the code in background.
‎2009 Nov 04 10:32 PM
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.
‎2009 Nov 04 10:45 PM
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
‎2009 Dec 16 3:37 PM
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