2009 Jul 08 5:07 AM
Hi,
I have a requirement in which i need to print the smartform after script. The program is using script to print the deliveryorder.
After printing the delivery order i need to print the smartform automatically. How can i do it?
Regards,
Arun.
Hi,
I have a requirement in which i need to print the smartform after script. The program is using script to print the deliveryorder.
After printing the delivery order i need to print the smartform automatically. How can i do it?
Regards,
Arun.
2009 Jul 08 12:17 PM
Hi arun,
u would be calling script fn module to print.
so under that u can call smartform fn module.for the smartform fn module there would be controls (here i have used z control).
U need to pass X value to control for not making the poup to appear..
MOVE 'X' TO : Z_CONTROL-NO_DIALOG.
u need to specify the printer.
MOVE 'LOCL' TO Z_OPTIONS-TDDEST.
There is one more parameter (for which X should be passed) to make it print,like the ones as above.This u need to search
DATA : Z_CONTROL TYPE SSFCTRLOP, "Smart Forms: Control structure
Z_OPTIONS TYPE SSFCOMPOP. "SAP Smart Forms: Smart Composer (transfer) options.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = V_FORMNAME
IMPORTING
FM_NAME = V_FMNAME.
CALL FUNCTION V_FMNAME
EXPORTING
CONTROL_PARAMETERS = Z_CONTROL
OUTPUT_OPTIONS = Z_OPTIONS
TENDERID = TENDERID "" Value Assignments from prgrm to smrtform
TABLES
IT_ZBOQ_ITEM = IT_SMARTFORM.Regards
Sajid
2009 Jul 09 6:55 AM
Thanks for ur reply...but in this case when the user select for print preview my smartform will be printing right....but how can i restrict this..