‎2008 May 30 7:53 AM
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
‎2008 May 30 8:08 AM
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
‎2008 May 30 8:17 AM
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
‎2008 May 30 9:36 AM
Hi Bhupal,
How to set this print immediately option could you please explain?
‎2008 May 30 9:55 AM
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