‎2008 Jul 31 11:28 AM
Hi,
I have developed a smartforms.It is for only viewing purpose.If they wish they will take printout.But when i execute that it is asking output device in a popup window,and then in the bottom its showing the print preview button.
But i need to see the output directly..So what i want to do.Any body help me with a sample code
‎2008 Jul 31 11:31 AM
Hi
Put LOCL in the output device and click on the print previw.
Aditya
‎2008 Jul 31 11:31 AM
Hi
Put LOCL in the output device and click on the print previw.
Aditya
‎2008 Jul 31 11:31 AM
Hi,
In CONTROL_PARAMETERS(SSFCTRLOP-NO_DIALOG) of smartform while calling it specify NO_DIALOG = 'X'
and also specify the output device (ex locl) in that OUTPUT_OPTIONS(SSFCOMPOP-TDDEST) of smartform function module while calling it.
Then it will now ask for output device (dialog box will not be displayed) and it will take the printer type that u have specified in the function module paramters.
Edited by: Ravi Kumar Banala on Jul 31, 2008 12:36 PM
‎2008 Jul 31 11:40 AM
But its not displaying the output also..
I need to make disappear the dialog box..its disappeared and no output has been displayed..
can u givwe a sample code
‎2008 Jul 31 11:42 AM
HI Mahesh,
Put controls-preview = 'X'., and try. Look that you have given valid output device (printer) to SSFCOMPOP-TDDEST properly.
I will create one and i will send it to you... Wait for a while.
The below code is working fine... I just created and ran it.
REPORT zcall_smartform.
DATA: s_control TYPE ssfctrlop,
s_output TYPE ssfcompop.
s_control-no_dialog = 'X'.
s_control-preview = 'X'.
s_output-tddest = 'LOCAL'.
CALL FUNCTION '/1BCDWB/SF00000346'
EXPORTING
control_parameters = s_control
output_options = s_output
.
‎2008 Jul 31 11:55 AM
Mahesh
take reference from example sf_example03!!!!!!!!!!!1
It will help you a lot!!!
with regards
pardeep sharma
‎2008 Jul 31 12:03 PM
Hi,
I have given the same thing..But it not working.Its again asking the output device...
I am working in 4.6c..
So there is no example like sf_example_03..
‎2008 Jul 31 12:27 PM
HI,
I think you forgot to put s_control-preview = 'X', check it once.
‎2008 Jul 31 12:35 PM
buts its present in my system
its SF_EXAMPLE_03!!!!!!!!!!!
look it once again in se38
‎2008 Jul 31 11:32 AM
hi,
in form interface there is a structure called SSFCTRLOP.
IN THAT STRUCTURE U CAN FIND A FIELD NO_DIALOG
MAKE IT 'X'.
UR PROBLEM WILL BE SOLVED.
Rgds.,
subash
‎2008 Jul 31 11:33 AM
use function ssf_open, then ssf_file_name, ssf_close..
take reference from example sf_example_03.
you will also do coding as under.
controls-no_dialog = 'X'.
controls-preview = 'X'.
controls-no_open = 'X'.
controls-no_close = 'X'.
dont forget to see the example!!!!!!!!!!!
with regards
pardeep sharma