cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in Printpriview

Former Member
0 Kudos

Hi,

I am using 2 SMARTFORMS in my Driver program.

One Set of data goes to One FORM, and

another set of data goes to Second form.

But, when I execute that,

I am not able to see the Print priview for Both.

Only, one Print priview I am able to see.

please let me know, how can I see the Priview for BOTH.

Thanks,

Sandeep.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Option1: Try to Put the below code and call the form as show below.

IF sy-ucomm = 'VIEW'.

g_ctrl_op-preview = 'X'.

g_output_options-tdimmed = ' '.

g_output_options-tdnoprint = 'X'. " No printing from print preview

ELSE .

g_ctrl_op-preview = ' '. " No Print preview.

g_output_options-tdimmed = 'X'. " Print Immediately

g_output_options-tdnoprint = ' '. " No printing from print preview

ENDIF.

Call the Form1

IF sy-ucomm = 'VIEW'.

g_ctrl_op-preview = 'X'.

g_output_options-tdimmed = ' '.

g_output_options-tdnoprint = 'X'. " No printing from print preview

ELSE .

g_ctrl_op-preview = ' '. " No Print preview.

g_output_options-tdimmed = 'X'. " Print Immediately

g_output_options-tdnoprint = ' '. " No printing from print preview

ENDIF.

Call the Form2

Option2: Click on the back button on top of the print preview of form1.

here you can see the second print preview of form2.

Let me now if this helps....

Regards,

Sathish Donthula

Answers (0)