Application Development and Automation 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: 
Read only

SMARTFORM direct printing ...

naveenvishal
Contributor
0 Likes
2,081

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
Read only

Former Member
0 Likes
1,520

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
Read only

Former Member
0 Likes
1,520

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.

Read only

Former Member
0 Likes
1,520

in the Smartform FM,

OUTPUT OPTIONS parameter of type SSFCOMPOP.

Pass SSFCOMPOP-TDNOPREV = 'X'.

Read only

Former Member
0 Likes
1,521

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

Read only

0 Likes
1,520

i am needing a bit more information plz...

Read only

0 Likes
1,520

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

Read only

0 Likes
1,520

DEVICE-DEVICE = 'PRINTER'.

what is PRINTER here.

Is Printer my printer name or sometning else.

Read only

0 Likes
1,520

It is literally the word PRINTER.

Read only

0 Likes
1,520

still no print out is coming

Read only

0 Likes
1,520

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