on 06-05-2007 3:19 PM
Hi,
I've got a strange problem that is i created a FM thats print smartforms that are select by the input parameters.
Some of the code:
......
Get the fm associated to the form name
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = form
IMPORTING
fm_name = form_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
.....
wa_ctrlop-no_dialog = 'X'. "No dialog
wa_ctrlop-device = 'PRINTER'. "Output Device
wa_ctrlop-langu = 'S'.
......
*Get the user printer
SELECT SINGLE spld FROM usr01 INTO wa_outopt-tddest
WHERE bname EQ sy-uname.
.........
wa_outopt-tdprinter = ''.
wa_outopt-tdcopies = copys. "Number of copys
wa_outopt-tdnoprev = 'X'.
wa_outopt-TDNEWID = 'X'."Generates new spool job
wa_outopt-TDIMMED = SAIDA."'X'. "Prints immidiatly
CALL FUNCTION form_name
EXPORTING
CONTROL_PARAMETERS = wa_ctrlop
OUTPUT_OPTIONS = wa_outopt
USER_SETTINGS = ' '
CLIENTE = cliente
IMPORTING
JOB_OUTPUT_INFO = t_otfdata
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
My problem is that with some of the printer that the users have this dont goe pass the SPOOL, and with the local printer, that's wath i used, it start the print program SAPLPD.
The system is UNIX and the print job never goes to the printer.
Anyone have an idea?
Thkzs you all for the help
Regards
Jaime Cordeiro
Hi Jaime,
The printer configuration is asked during the shoot to print is orderd and normally Output device is maintained to be "LP01" or "LOCL".
Reward Points.
Thanks,
Tej..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jaime,
Check the TCODE: SP01.
This maintaines the SPOOL and thus you can check if your Print command is processed or still under processing.
Hope this solves your qurery.
Reward Points if useful.
Thanks,
Tej..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.