‎2009 May 25 10:08 AM
Hello again.
I use the 'SSF_FUNCTION_MODULE_NAME,' and
I then frame these variables do not display for printing:
lw_ctrlop-getotf = 'X'.
lw_ctrlop-no_dialog = 'X'.
lw_compop-tdnoprev = 'X'.
Then I use: CALL FUNCTION lfm_name
But I also am interested to write in "Output Device: LOCA"
and just press the Print button.
What I want is not to see the print screen.
Someone can tell me something please
‎2009 May 25 10:47 AM
To skip the print screen,
use the following parameter assignment. It will work .
data : wa_cparam type ssfctrlop,
wa_output type ssfcompop.
wa_cparam -no_dialog = 'X'.
wa_cparam -preview = space.
wa_cparam -getotf = 'X'.
wa_output-tddest = 'LP01.'
wa_output-tdnoprev = 'X'.
call function lfm_name
exporting
control_parameters = wa_cparam
output_options = wa_output
user_settings = space
importing
job_output_info = it_otf_from_fm
tables
....
exceptions
Kindly do the changes in the parameters and check.
Regards,
Uma
‎2009 May 25 10:10 AM
well for this requirement you should popup the dialog.
normally when you click on "print" in the dialog, no print view is beeing processed but just the printout.
‎2009 May 25 10:12 AM
Hello,
Set: lw_ctrlop--no_dialog = 'X' and
pass it to : control_parameters
This should help
Cheers,
Remi
‎2009 May 25 10:19 AM
Yes, I have:
DATA: lw_ctrlop TYPE ssfctrlop,
lw_compop TYPE ssfcompop.
lw_ctrlop-getotf = 'X'.
lw_ctrlop-no_dialog = 'X'.
lw_compop-tdnoprev = 'X'.
But in the window I want to write default LOCA and just press the Print button.
‎2009 May 25 10:22 AM
Hi,
By doing this, basically you are supressing the Print dialog and it won't give you options to press the Print button.
Cheers,
Remi
‎2009 May 25 10:25 AM
Hi Jonatan,
You need to see the print setting for your user id in SPAD. There you can select this option so that no
pop up appears. Take the help of BASIS guy if required.
‎2009 May 25 10:26 AM
if u want to default the output device use the field "DEVICE" in the field of SSFCTRLOP structure.
i.e : lw_ctrlop-device = 'LOCA'.
‎2009 May 25 10:47 AM
To skip the print screen,
use the following parameter assignment. It will work .
data : wa_cparam type ssfctrlop,
wa_output type ssfcompop.
wa_cparam -no_dialog = 'X'.
wa_cparam -preview = space.
wa_cparam -getotf = 'X'.
wa_output-tddest = 'LP01.'
wa_output-tdnoprev = 'X'.
call function lfm_name
exporting
control_parameters = wa_cparam
output_options = wa_output
user_settings = space
importing
job_output_info = it_otf_from_fm
tables
....
exceptions
Kindly do the changes in the parameters and check.
Regards,
Uma
‎2009 May 25 11:23 AM
Perfect, Perfect, Perfect
You are very good.
Only with:
data: wa_cparam type ssfctrlop,
wa_output type ssfcompop.
wa_cparam-no_dialog = 'X'.
wa_cparam-getotf = 'X'.
wa_output-tdnoprev = 'X'.
wa_output-tddest = 'LOCA'. "or 'LP01'.
call function lfm_name
exporting
control_parameters = wa_cparam
output_options = wa_output
user_settings = space "It was my fault
importing
job_output_info = it_otf_from_fm
tables
....
exceptions
Do you can tell me how can I give my points?
‎2009 May 25 11:38 AM
Great. You got the ouput expected.
While replying to the answer you can give points : Solved problem or Useful answer. you can see in the left side.