Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SMARTFORM direct printing ...

naveenvishal
Contributor
0 Kudos

In SMART FORMS, how to skip the:---

1. Printing Option Window and

2. Print Preview window

and give PRINT DIRECTLY...WITH OUT ANY SCREENS AND WINDOWS....

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You will need to set the CONTROL_PARAMETERS fields DEVICE to 'PRINTER' and NO_DIALOG to 'X'.

This will avoid the printing options window, assuming you have set the print parameters in OUTPUT_OPTIONS.

Regards,

Nick

9 REPLIES 9

Former Member
0 Kudos

DATA: ps_print_parameters TYPE pri_params.

  • First use Fm: GET_PRINT_PARAMETERS ->exporting ps_print_parameters .

*THEN,

SUBMIT <program_name> TO SAP-SPOOL

SPOOL PARAMETERS ps_print_parameters

WITHOUT SPOOL DYNPRO AND RETURN.

former_member223537
Active Contributor
0 Kudos

in the Smartform FM,

OUTPUT OPTIONS parameter of type SSFCOMPOP.

Pass SSFCOMPOP-TDNOPREV = 'X'.

Former Member
0 Kudos

You will need to set the CONTROL_PARAMETERS fields DEVICE to 'PRINTER' and NO_DIALOG to 'X'.

This will avoid the printing options window, assuming you have set the print parameters in OUTPUT_OPTIONS.

Regards,

Nick

0 Kudos

i am needing a bit more information plz...

0 Kudos

You need to look at your print program, here it will call the generated function module that is the Smartform.

You will need to define a structure and fill it with the required values;


DATA: DEVICE TYPE SSFCTRLOP .
DEVICE-DEVICE = 'PRINTER'.
DEVICE-NO_DIALOG = 'X'.

Then pass this structure to the function module parameter CONTROL_PARAMETERS.

Regards,

Nick

0 Kudos

DEVICE-DEVICE = 'PRINTER'.

what is PRINTER here.

Is Printer my printer name or sometning else.

0 Kudos

It is literally the word PRINTER.

0 Kudos

still no print out is coming

0 Kudos

Your question was about stopping the print parameters screen appearing, which the additional parameters should do.

If your print out is not appearing this could be down to something else.

Regards,

Nick