on 01-23-2009 6:58 AM
Hi,
i'm not getting print preview screen when using a standard print program with a smart form.
i cant change the print program..is there any other way?
Hi
Check the print program, the print preview option has been suppressed.
if the field has been disabled then you need to disable it.
regards
Shiva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
check for these options
DATA: gs_control TYPE ssfctrlop,
gs_output_options TYPE ssfcompop,
'X' TO gs_control-no_dialog,
'X' TO gs_control-getotf,
'PRINTER' TO gs_control-device,
'LOCL'(047) TO gs_output_options-tddest.
if there is osme table controlling the flow disable that or u may remove it from calling program
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZLB_BIL_INVOICE'
IMPORTING
fm_name = lv_fnam
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION lv_fnam
EXPORTING
control_parameters = gs_control * "" Disable these two options*
output_options = gs_output_options * "" same here*
user_settings = space
is_bil_invoice = lv_bill_invoice
is_nast = lv_nast
is_repeat = space
IMPORTING
job_output_info = gs_job_output_info
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
shiva
When u give issue output and screen come for selection of output type thr u select ur output type and select print preview button,
so till where u r able to reach, r u not getting print preview button or after pressing print preview u r not able to see the preview,
If this is the case that u r not getting preview after pressing preview button then problem with ur smartform!.
After ur reply, I can tell u what to do.
кu03B1ятu03B9к
Well rlb_invoice has the parameter NODIALOG set as X so that is the reason u r not getting the dialog of printer settings so if u really need that probably u can copy RLB_invoice to a zprogram and make changes in it and configue ur nace accordingly so that ur smartform is correctly mapped to ur Zprintprogram.
кu03B1ятu03B9к
I am not sure if u can do this but u can give it a try.
the structure control parameters is imported through form interface.
so
try using this in initialization.
control_parameters-nodialog = ' '.
U try this meanwhile i'm exploring the fm generated by a smartform to see the whether control parameters are processed before or the smrtform is printed before.
кu03B1ятu03B9к
Edited by: kartik tarla on Jan 27, 2009 12:36 PM
Thanx Karthik..Plz let me know if u foung any solution for this..
ONE MORE THING....
from where will the device name is generated in the function module export parameters
control_parameters = ls_control_param
--> ls_control_param-device = DOTM. from where is it populating? is it from logical destination we provide when configuring output type at vf02 transaction..?
Edited by: Anil Kalive on Jan 27, 2009 1:48 PM
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.