cancel
Showing results for 
Search instead for 
Did you mean: 

Printing of smartforms

Former Member
0 Kudos

Hi

I created one smartform. here i wrote all code in smartform only.

after executing smartform it displayed one function module. after executing function module, i entered output device is 'LP01'.

Here it shows the printpriew, But if i click the print button, it is not printing.

printing configiration is ok.

How t o print the smart form?

Please telll me.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

When u enter SAP, in the initial screen in the toolbar go to system -> User Profile -> Own Data -> DEfaults Tab. There maintain output devide LP01 and click output immediately.

Thanks

Nayan

Former Member
0 Kudos

hi,

if u click on print its generates spool request no.

execute RSTXPDFT4 program give spool request no there and press execute the smartform converts into PDF format then u can take print out of it.

regards,

sreelakshmi

Former Member
0 Kudos

Hi sri,

welcome to sdn.

since in the smartforms if you want to print the smartform.first you have to see for print out and then print. its not working means your printer was not connected correctly. pls chk once.

though if your config... is good it mat not work.

so first chk it..

thanks

'abdul

Former Member
0 Kudos

hi,

Please check below strutures, i hope it will help you to solve ur problem.

ssfctrlop

ssfcompop

ssfcompin.

DATA: gt_control TYPE ssfctrlop,

gt_output TYPE ssfcompop,

gs_input TYPE ssfcompin.

gs_input-device = 'PRINTER'.

gs_input-tdpreview = 'X'.

gs_input-tddest = 'LP01'.

gs_input-dialog = ' '.

CALL FUNCTION 'SSF_OPEN'

EXPORTING

input = gs_input

user_settings = 'X'

EXCEPTIONS

error = 1

OTHERS = 2.

IF sy-subrc 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

  • gt_output-tdnewid = 'X'.

  • gt_output-tddest = 'LP01'.

gt_control-preview = 'X'.

gt_control-no_dialog = 'X'.

gt_control-no_open = 'X'.

gt_control-no_close = 'X'.

CALL FUNCTION gv_func_name

EXPORTING

order = pa_order

control_parameters = gt_control

output_options = gt_output

user_settings = space

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

IF sy-subrc 0.

WRITE: 'Sy-subrc:',sy-subrc,

'Error occurred while calling smart form FM!'.

ENDIF.

CALL FUNCTION 'SSF_CLOSE'.

please reward me if helpful.

gupta