on 01-11-2009 3:12 PM
Hi Gurus,
I have created Purchase order output usind Smartform. As there is no standard printing program, I have created z_program for printing, which is working well.
But when I want to see preview using print preview button, there is nothing displayed. Also I need to be able to send output via email.
Could you please help me?
Thanks®ards,
Jirka
Hi are u seeing blank page in smartform preview or no preview is coming at all?
If second case is correct then check ur smartform some template may be exceeding window limits adjust its size.
To get to the exact problem use transaction smartform trace and switch on trace now execute ur form it will stop at some warning or errormessage check tht message to know the exact cause of output not appearing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
there is no output. I'm calling smartforms using this FM:
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'Z_MM_PO_PRINT'
IMPORTING
fm_name = fm_name.
Nastaveni vystupu
clear ls_out_opts.
clear ls_control_pars.
break hp_faltin.
ls_out_opts-tddest = l_nast-ldest.
ls_out_opts-TDIMMED = l_nast-dimme.
ls_out_opts-TDDELETE = l_nast-delet.
ls_out_opts-TDCOPIES = l_nast-ANZAL.
ls_control_pars-no_dialog = 'X'.
ls_control_pars-LANGU = l_nast-spras.
CALL FUNCTION fm_name
EXPORTING
OUTPUT_OPTIONS = ls_out_opts
USER_SETTINGS = ' '
CONTROL_PARAMETERS = ls_control_pars
gs_ekko = l_doc-xekko
gs_pekko = l_doc-xpekko
TABLES
gt_ekpo = l_doc-xekpo.
Is there some special parameters maintenance, if I want to see print preview?
Thanks®ards,
Jirka
So finally, I found it myself
In control parameters (structure SSFCTRLOP) is one component names Preview, so if you set this field, preview works fine.
But now I need to send it via email. Do I need to translate output to PDF format or is there some standard program or function module to do it?
Thanks®ards,
JF
see this code tutorial on emailing smartform
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.