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

Calling multiple smartforms

Former Member
0 Likes
651

Hi All,

My requirement is like this....

Multiple smartforms are created by different programs..And now I want trigger all these smartforms with my program..Is it possible?

When I tried to do like this it needs to come back and again print preview to go next smartform....Is is possible to call all the smartform at single execution.........

Edited by: sundeep singh on May 30, 2008 9:06 AM

4 REPLIES 4
Read only

Former Member
0 Likes
541

You can call them at single instance only if u dont need print preview.

So u should set all the options not to show the print preview (like print immediately) so that all the output can go to printer at a time.

Actually here also smartforms are called one by one but as you dont see the preview it dont seem like running one after other.

awrd points if helpful

Bhupal

Read only

Former Member
0 Likes
541

Hi,

Check the below code...

DATA SSFCTRLOP LIKE SSFCTRLOP.

CALL FUNCTION 'SSF_OPEN'

.....

SSFCTRLOP-NO_OPEN = 'X'.

SSFCTRLOP-NO_CLOSE = 'X'.

CALL FUNCTION SMART1

EXPORTING

CONTROL_PARAMETERS = SSFCTRLOP

CALL FUNCTION SMART2

EXPORTING

CONTROL_PARAMETERS = SSFCTRLOP

CALL FUNCTION SMART3

EXPORTING

CONTROL_PARAMETERS = SSFCTRLOP

CALL FUNCTION SMART4

EXPORTING

CONTROL_PARAMETERS = SSFCTRLOP

CALL FUNCTION 'SSF_CLOSE'

Rgds,

Bujji

Read only

Former Member
0 Likes
541

Hi Bhupal,

How to set this print immediately option could you please explain?

Read only

0 Likes
541

g_output_options TYPE ssfcompop, " Output Options for Smartform

g_control_options TYPE ssfctrlop. " Control Options

  • Control Options

g_control_options-device = 'PRINTER'.

g_control_options-preview = ''.

g_control_options-no_dialog = 'X'.

  • Output Options

g_output_options-tdnoprev = 'X'.

g_output_options-tdimmed = 'X'.

  • Call Smartform

CALL FUNCTION lv_fmname

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

control_parameters = g_control_options

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

output_options = g_output_options

user_settings = ''

rwrd points if useful

Bhupal