on 05-27-2009 8:54 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
*-----
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.