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

Smartforms

MusAbaper
Active Participant
0 Likes
373

Hi,

Can anyone tel me how can I hide the POP Up after calling a SMARTFORM ?

==> I don't want to show the popup 'PRINT'

==> I want to generate a Spool.

There is a FM who do that ?

Thank you in advance.

Best regards

Mustapha

3 REPLIES 3
Read only

Former Member
0 Likes
355

hi you need to hide the print button and you need to create the button spool ..

for hiding the button check this..

regards,

venkat

Read only

Former Member
0 Likes
355

if u dont want to generate the popup and to create spool:

inthe function module generated by smartform

DATA: options LIKE itcpo,

ch_print LIKE itcpp-tddest.

options-tddest = ch_print. " printer

options-tdimmed = 'X'. " print immediately

options-tdnewid = 'X'. " new spool request

Edited by: BrightSide on May 9, 2008 1:14 PM

Edited by: BrightSide on May 9, 2008 1:19 PM

Read only

Former Member
0 Likes
355

sorry mate, ive given a wrong one..try this it defenitely wrks

DATA: ls_outputoptions TYPE ssfcompop,

ls_control TYPE ssfctrlop.

ls_outputoptions-tddest = ch_print.

ls_outputoptions-tdimmed = con_x.

ls_outputoptions-tdnewid = con_x.

ls_outputoptions-tdnoprev = con_x.

ls_control-no_dialog = 'X'.

ls_control-device = 'PRINTER'.

CALL FUNCTION gv_func_mod_name

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

control_parameters = ls_control

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

output_options = ls_outputoptions