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

Executing smartform in Background

Former Member
0 Likes
2,746

Hi All,

I have driver program for smaertofrm, when i execute this driver program with F8 i.e in foreground iam able to print the smartform from spo1, but when in execute the smart form in Background(F9), iam not able to print the smartform from SPO1, only print preview is possible,could anybody help me in this.

Thanks in Advance

Neha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,248

If you are passing the printer details and suppressing the print preview dialog(these can be done by passing the right parameters to the control_parameter and output_options), the smart form will get printed directly in the background.

Regards,

Ravi

Note :Please mark all the helpful answers

6 REPLIES 6
Read only

Former Member
0 Likes
1,249

If you are passing the printer details and suppressing the print preview dialog(these can be done by passing the right parameters to the control_parameter and output_options), the smart form will get printed directly in the background.

Regards,

Ravi

Note :Please mark all the helpful answers

Read only

Former Member
0 Likes
1,248

Hi,

are you passing the Printer details and etc to the Function module. and also you should say NO_DIALOG = 'X'. all print parameters should be correct , then only it will generate the spool.

you need to give correct inputs to

CONTROL_PARAMETERS-NO_DIALOG = 'X'.

CONTROL_PARAMETERS-device = 'LP01'.

and for output options.

OUTPUT_OPTIONS-TDDEST = 'LP01'.

OUTPUT_OPTIONS-TDPRINTER =

OUTPUT_OPTIONS-TDNEWID = 'X'

and also give this

USER_SETTINGS = ' '.

Regards

vijay

Read only

0 Likes
1,248

Hi,

Iam passing the following print parameters:

lw_control_param-device = 'PRINTER'.

lw_control_param-getotf = c_x.

lw_control_param-no_dialog = c_x.

lw_composer_param-tdnoprev = c_x.

lw_composer_param-tddest = 'LONSC0P310'.

lw_composer_param-tdnewid = c_x.

lw_composer_param-tdfinal = c_x.

but when iam running the smart form in the background, iam geting a popup for backgroung print parameters, which is asking for output device, but i have said lw_control_param-no_dialog = c_x so why iam getting this popup window for outputdevice.after i press enter in the popup window i get one more popup for 'Start time' here iam pressing immediate button and saying 'Save'.

Thanks,

Neha

Read only

Former Member
0 Likes
1,248

Hi,

If you are using F9 to execute the program in background, you would be getting a popup for printer option,then tick the checkbox `PRINT IMMEDIATELY` and pass appropriate printer name in `OUTPUT DEVICE`.

Best regards,

Prashant

Read only

Rashid_Javed
Contributor
0 Likes
1,248

sometimes the problem can be that default pronter defined is LOCAL, that is to use windows default printer but while executing in the background, the application server may not have such default printer which can raise the error that it could not see the printer.

Make sure that the printer used is not using frontend printing method.

Hope this will help.

RJv
Read only

Former Member
0 Likes
1,248

Hi,

lw_control_param-device = 'PRINTER'.

lw_control_param-getotf = c_x.

lw_control_param-no_dialog = c_x.

lw_composer_param-tdnoprev = c_x.

<b>*lw_composer_param-tddest = 'LONSC0P310'.</b>

<b>lw_composer_param-tddest = 'XXXX'.</b> <b>"Four digits</b>

<i>lw_composer_param-tdnewid = c_x.

lw_composer_param-tdfinal = c_x.</i> --> Not required

In place of 'XXXX', replace it by a 4 digit value. It would be available in transaction SPAD->Output Devices->Double click your output device. On the right hand side there would be a field Short Name. Replace 'XXXX' with that value.

Best regards,

Prashant