cancel
Showing results for 
Search instead for 
Did you mean: 

not getting print preview

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

program -


"rlb_invoice".

i cant change a standard one..

Former Member
0 Kudos

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

Former Member
0 Kudos

hi,

then copy that to a zprogram and do ammendments in it.

thanks,

anupama.

Former Member
0 Kudos

Hi

I think you are using the driver program from invoice processing.

In VF03, the print icon comes automatically which is handled by SAP.

I checked the code, the print preview comes from T code

Please let me know if i am correct

Regards

Shiva

Former Member
0 Kudos

yes shiva..print preview comes from tcode vf02...

in driver program..no-dialog = 'X' and preview = 'X'.

where is the problem?

Former Member
0 Kudos

Hi

NO_DIALOG = 'X' no pop up for printer details selection

PREVIEW = screen value

check this

cs_control_param-preview = xscreen. ( if you select the print preview button, then it value will be 'X')

Regards

Shiva

Former Member
0 Kudos

ls_control_parameters = 'X'.

but still print preview screen is not coming.

Former Member
0 Kudos

ls_control_param is not usedto set the print preview, but it is used for controliing the smartform

Regards

Shiva

Former Member
0 Kudos

then how to get the print preview screen?

Former Member
0 Kudos

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к

Former Member
0 Kudos

Hi Karthik,

I'm giving issue output and thenin popup screen i'm selecting the output type and pressing print preview button.

after this i'm directly seeing print preview..i'm not getting the the screen to select number of pages and type of printer etc...any help..

Former Member
0 Kudos

set controlparams-NO_DIALOG = ' '. "when this parameter is X it suppresses the dialog windows so make it blank

also in import params of smartform fm set user settings as space.

Let me know if its working

кu03B1ятu03B9к

Edited by: kartik tarla on Jan 27, 2009 12:23 PM

Former Member
0 Kudos

I cant set user settings and control parameters as i'm using standard report " rlb_invoice "...

is there any other possibility?

Former Member
0 Kudos

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к

Former Member
0 Kudos

is there any other way to set nodialog = '' with help of smartform?

Former Member
0 Kudos

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

Former Member
0 Kudos

Well Anil, I dont think changing the parameters inside the smartforms will help so i guess creating a zcopy is the only option left. I'll let u know if i found any thing else.

кu03B1ятu03B9к

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Anil, I tried some options but was unable to change the params from smartform, so u need to chnage the print program.

кu03B1ятu03B9к