cancel
Showing results for 
Search instead for 
Did you mean: 

SmartForms print problem with printer

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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..

Former Member
0 Kudos

Hi Shree,

The solution was use the local printer for the computer where the user is loged on,

the output used to solve was similar to the "LOCL".

thzs for the answer.

reward point to you

Jaime Cordeiro

Answers (1)

Answers (1)

Former Member
0 Kudos

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..