cancel
Showing results for 
Search instead for 
Did you mean: 

Print preview functionality for the Fax output using Smartform

Former Member
0 Kudos

Hi Guys,

I am working on an issue for the Smartform Fax output which is for the Purchase Order.

The requirement is: User wants to see the print preview of the PO output before the Fax output sends to the Fax server. Fax is working fine. I tried giving some parameters in the Smartform for the print preview and it did not work.

I tried with CONTROL_PARAMETERS-PREVIEW and it is not working. It is still sending fax without print preview. But I did the same thing for the External send medium and I could see the print preview.

Please share with me if anybody worked on this.

Thanks,

Ramesh

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Try like this :

Declare work area like this : options LIKE ssfctrlop.

Provide : options-preview = 'X'.

Provide that work are in Function module of smart form as

control_parameters = options

Madhurivs23
Participant
0 Kudos

Hi Ramesh,

If you are sending FAX through custom Tcode, then u can use two buttons for print preview and second one for send fax .

Regards,

Madhuri

Former Member
0 Kudos

Hi.

When I tried, the preview was displayed.

*-----

CONTROL_PARAMETERS-PREVIEW = 'X'.

*-----

Is the parameter correct?

In this case, I do not think the preview to be displayed.

*-----

CONTROL_PARAMETERS-NO_DIALOG = 'X'.

OUTPUT_OPTIONS-TDIMMED = 'X'. "<--- Print Immediately

*-----

Former Member
0 Kudos

Hi.

Thanks for everybody's reply.

I already have preview parameter .

LS_CONTROL_PARAM-GETOTF = 'X'.

LS_CONTROL_PARAM-NO_DIALOG = 'X'.

LS_CONTROL_PARAM-PREVIEW = 'X'.

What else are you providing to the function module?

Thanks,

Ramesh

Edited by: Ramesh Marimuthu on May 28, 2009 5:24 PM

Former Member
0 Kudos

Ok..

I have resolved it.

Here is the solution.

When sending Fax, we would have to activate OTF parameter as 'X'. But when we try to see the preview of a PO using this logic will not work. Since system wont be able to pop up print preview using OTF data.

What I did was, SAP is using the variable called ent_screen and this variable will have a value 'X' if we click print preview in PO screen. So I have two logics for the Fax medium.

if ent_screen = 'X'.

OTF parameter will be blank and then pass all data to the smartform function module

else.

The second logic will have OTF checked before passing to the Smartform function module.

endif.

I hope this clears.

Thanks,

Ramesh