Question:
Hi,
has anybody an idea how to change the Standard Windows Printer with an ABAP for printing on different LOCLs.
Thank you.
Answer:
Hmmm....
I've never come across that problem, SAPLPD just seems to work sweet as a nut each time I use it, and with different printers as long as they are installed in windows quite happily.
_________________
Regards
R
Abap KC
SFMDR
Answer:
Hi,
I haven't tried this, but in the setup of LOCL in SPAD, uncheck the "No Device Selection at Frontend" option. A list of printers defined on the PC should appear, from which the user can select the one he wants to use.
I don't think it's possible to change the value of LOCL within ABAP though, but maybe you can debug whatever code SAP uses to pickup the default printer and change it to something else just before it submits the print-job?
Answer:
Tank you. I will try to debug and find where SAP picks up he printer.
I want to print an order via Sapscript to a spool-printer and after, a PDF file from the DMS should be printed on the same printer. As far as I know, the PDF can only be printed on the default printer. So the default printer must be switched.
> don't think it's possible to change the value of LOCL within ABAP >though, but maybe you can debug whatever code SAP uses to pickup >the default printer and change it to something else just before it submits >the print-job?
Answer:
I want to print an order via Sapscript to a spool-printer and after, a PDF file from the DMS should be printed on the same printer. As far as I know, the PDF can only be printed on the default printer. So the default printer must be switched.
Ahhh....
So that's what you're up to.
When I tried this, I found that the printer selection for the PDF happened on the front end and was implemented using ocx's. So, I found that after printing the sapscript form I could not get it to use the same printer - I always got a printer selection dialog for the pdf's I was trying to print as well as a printer selection screen for the SAP documents.
You could try calling the associated application (found in the DMS document definition) with the file name and a '/p' argument appended to the command line.
_________________
Regards
R
Abap KC
SFMDR