cancel
Showing results for 
Search instead for 
Did you mean: 

View and Email purchase order

Former Member
0 Kudos

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&regards,

Jirka

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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&regards,

Jirka

Former Member
0 Kudos

ls_control_pars-no_dialog = 'X'.

try and remove this line.

and see if its still not giving the preview, once u reply i'll tell u the further course of action

Former Member
0 Kudos

Hi,

I have removed this line, but unfortunately printing dialog hasn't appeared.

Any help?

JF

Former Member
0 Kudos

Hi,

sorry ... I got printing dialog and via this dialog I can see print preview ... but if I deactivate this dialog, I can' see nothing.

JF

Former Member
0 Kudos

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&regards,

JF

Former Member