cancel
Showing results for 
Search instead for 
Did you mean: 

printing with smartform

Former Member
0 Kudos

Thank you!

When printing with smartform,

how to goto print preview and print,without select printing device?

Thank you!

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi

You cannot print the smartform without generating the Spool number

But without selecting the output device you can do it

N.B:

You will set the out put device as default through program

PUT ALL THOSE THINGS IN A FILE AND INCLUDE THAT FILE IN THE DRIVER PROGRAM

DATA: DEVICE TYPE SSFCTRLOP .

DEVICE-DEVICE = 'PRINTER'.

initialization.

DEVICE-no_dialog = 'X'.

data: control_param type ssfctrlop,

output_opt type ssfcompop,

job_info type ssfcrescl,

job_output type ssfcresop.

control_param-no_dialog = 'X'.

control_param-preview = ''.

control_param-getotf = ''.

output_opt-tddest = 'LP01'.

output_opt-tdimmed = 'X'.

output_opt-tdnewid = 'X'.

output_opt-tdnoprint = ''.

output_opt-tdnoprev = 'X'.

control_param-no_dialog = 'X'.

control_param-preview = 'X'.

control_param-getotf = ''.

output_opt-tddest = 'LP01'.

output_opt-tdimmed = 'X'.

output_opt-tdnewid = 'X'.

output_opt-tdnoprint = ''.

output_opt-tdnoprev = 'X'.

In the driver program’s call function add control parameters or un comment it if it is there

Ex:

CALL FUNCTION fm_name_val

EXPORTING

control_parameters = control_param

output_options = output_opt

user_settings = ' '

ITAB_INFO = IT_EMP7

ITAB_BASIC = ITAB2

ITAB_TOTAL = ITAB13

ITAB_FINAL = WA_SAL

IMPORTING

job_output_info = job_info

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5.

Reward if helpful

Thanks

Krushna

Former Member
0 Kudos

Hi,

In the smartform forminterface there is strucutre OUTPUT_OPTIONS.In this structure field TDNOPRINT make as 'X' and try.

Thanks,

shyla

Former Member
0 Kudos

Hi Daniel ,

this can be done while configuring the printer .Check with the basis team to get the configuration done

Reward points if u find it useful

-Sapsurfer

Former Member
0 Kudos

Addtion:

don't select print device,also don't display the screen.

thank you!