Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Print SmartForm with CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

Former Member
0 Likes
3,976

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

1 ACCEPTED SOLUTION
Read only

UmaArjunan
Active Participant
0 Likes
2,021

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

9 REPLIES 9
Read only

Former Member
0 Likes
2,021

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.

Read only

RemiKaimal
Active Contributor
0 Likes
2,021

Hello,

Set: lw_ctrlop--no_dialog = 'X' and

pass it to : control_parameters

This should help

Cheers,

Remi

Read only

0 Likes
2,021

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.

Read only

0 Likes
2,021

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

Read only

0 Likes
2,021

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.

Read only

0 Likes
2,021

if u want to default the output device use the field "DEVICE" in the field of SSFCTRLOP structure.

i.e : lw_ctrlop-device = 'LOCA'.

Read only

UmaArjunan
Active Participant
0 Likes
2,022

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

Read only

0 Likes
2,021

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?

Read only

0 Likes
2,021

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.