on 08-27-2007 4:09 PM
Hello everybody,
How to print directly without even displaying what is getting printed ,ie no preview on screen , It should just say it has been printed.
Thanks.
Message was edited by:
Khaleel S.Mohammed
Hi Khaleel,
Please set the parameter dialog = 'X' in the functional moduole 'open_form' in your print program.
For Example:
call function 'OPEN_FORM'
exporting
device = 'PRINTER'
dialog = 'X'
form = ' '
options = itcpo
importing
result = itcpp
exceptions
form = 5.
if sy-subrc eq 0.
write: / 'This has been printed'.
endif.
Hope this helps.
Please reward points if useful.
Thanks,
Srinivasa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this code in the print program.
Data: lwa_ssfctrlop TYPE ssfctrlop,
lwa_ssfcompop TYPE ssfcompop.
lwa_ssfcompop-tddest = nast-ldest.
lwa_ssfctrlop-no_dialog = 'X'.
lwa_ssfctrlop-preview = ' '.
CALL FUNCTION 'ZMMS_PRCHS_ORDER'
EXPORTING
control_parameters = lwa_ssfctrlop
output_options = lwa_ssfcompop
user_settings = space
gv_bukrs = lv_bukrs
............ = ................
............ = ................
............ = ................
To print directly, without any preview...
output_opt type ssfcompop
control_param-no_dialog = ''.
control_param-preview = ''.
control_param-getotf = ''.
output_opt-tddest = 'LOCL'.
output_opt-tdimmed = 'X'.
output_opt-tdnewid = 'X'.
output_opt-tdnoprint = ''.
output_opt-tdnoprev = 'X'.
In open form (SAP scripts)
Pass this parameter.
OPTIONS = output_opt
For (smartforms)
Pass it to your smartform function module
output_options = output_opt
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Khaleel,
In the driver program pass the following parameters to the Calling FM
Structure: SSFCTRLOP
fileds:
DEVICE = <Device Name>
NO_DIALOG = 'X'.
preview = SPACE
This will directly go to print.
Regards,
Lijo Joseph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.