06-02-2009 6:23 AM
Hi all
I have created one driver program for mass printing its having different smartforms. As per the requirement i have to print multiple smartform at a time. in fore ground i can see print preview window
for each smartforms but in background i could see only one spool of smartform which is lastly called
smartform i want to create separate spool request for different smartform in background. so in same background job i need to create multiple spool.
06-02-2009 6:43 AM
Hello Nishita,
Add this code just before passing parameters to your SMARTFORMS.
CALL FUNCTION 'SSF_FUNTION_MODULE_NAME'
...
...
control-preview = 'X'.
control-no_open = 'X'.
control-no_close = 'X'.
output_options-tddest = 'LP01' "Default Printer name
call FM fm_name
exporting
output_options = output_options
control_parameters = control.
Hope this pulls you out of your problem
06-02-2009 6:35 AM
Hi,
You need to pass the control_parameters to the smartform FM.
control_parameters-no_close = 'X'.
control_parameters-no_open = space.
DESCRIBE TABLE <TABLE> LINE l_LINES.
LOOP AT ...
* Need this to view Smartform print preview when run in foreground
IF loop_count = L_LINES. "Last letter of this type
control_parameters-no_close = space. "Allow spool file to close
ENDIF.
CALL FUNCTION fm_name
EXPORTING
control_parameters = control_parameters
user_settings = ' '
output_options = output_options
p_letter = letter
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
* Keep spool file open for next letter or form
control_parameters-no_open = 'X'.
ENDLOOP.
06-02-2009 6:43 AM
Hello Nishita,
Add this code just before passing parameters to your SMARTFORMS.
CALL FUNCTION 'SSF_FUNTION_MODULE_NAME'
...
...
control-preview = 'X'.
control-no_open = 'X'.
control-no_close = 'X'.
output_options-tddest = 'LP01' "Default Printer name
call FM fm_name
exporting
output_options = output_options
control_parameters = control.
Hope this pulls you out of your problem
06-02-2009 7:46 AM
Hi all
I have tried first method with slight modification for different types of smartforms. now i am getting single spools for different types of smartforms one after other.and its works.
Thanks alot .
Edited by: Nishita Naik on Jun 2, 2009 10:18 AM
Edited by: Nishita Naik on Jun 3, 2009 9:08 AM