2008 Feb 06 4:25 AM
hi all,
i am working with smartforms. here i need to skip the screen where we give the output device name ( LP01 ).
Thanks and Regards
P.Sreelakshmi.
2008 Feb 06 4:28 AM
hi ,
if you are using smartforms then go to global settings--->form interface
-->Export tab --->JOB_OUTPUT_OPTIONS type SSFCRESOP which has all the setting for output option and TDIMMED is the component associated with that which should be set to X in the program..
hope this will help you ..
if its a script then this is the code...
tables : itcpo.
FORM open_form .
itcpo-tdnewid = 'X'.
itcpo-tdimmed = p_imme.
itcpo-tddest = 'LOCL'.
itcpo-tddataset = 'DELB'.
itcpo-tdsuffix1 = p_ldest.
itcpo-tdsuffix2 = lips-vbeln.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
application = 'TX'
archive_index = space
archive_params = space
device = 'PRINTER'
dialog = ' '
form = 'ZV_DEL_LABEL'
language = sy-langu
options = itcpo
EXCEPTIONS
canceled = 1
device = 2
form = 3
options = 4
unclosed = 5
mail_options = 6
archive_error = 7
invalid_fax_number = 8
more_params_needed_in_batch = 9
OTHERS = 10.
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " open_form
plz reward if useful
regards
vivek
2008 Feb 06 5:11 AM
HI,
I tried with this code but, its not working.
Thanks and Regards,
P.Sreelakshmi.
2008 Feb 06 4:28 AM
You can try below code.
DATA: l_control_param TYPE SSFCTRLOP.
l_control_param-no_dialog = 'X'.
CALL FUNCTION l_funcname
EXPORTING
CONTROL_PARAMETERS = l_control_param.
2008 Feb 06 4:29 AM
Hi,
This you will ahev to modify in the program where you call the smartform. the printer parameters will have to be set.
call teh funstion module CALL FUNCTION 'WFMC_PREPARE_SMART_FORM'
and then
data : CS_CONTROL_PARAM TYPE SSFCTRLOP.
CS_CONTROL_PARAM-NO_DIALOG = 'X'.
reward appropriate points.
Regards,
Mansi.