2010 Oct 06 2:59 AM
Hi all,
If there is no printer ls_output_opt-LDEST defined, SAP will get the printer from the user profile. If there is also no printer defined in user profile, it will prompt window for keying in the printer name.
The problem is when I key in the printer name, and to my surprise, there is no 'OK' or 'Tick' button, the only button available is 'X' or Cancel button.
Please help.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = lv_formname
importing
fm_name = lv_fm_name
exceptions
no_form = 1
no_function_module = 2
others = 3.
...
call function lv_fm_name
exporting
control_parameters = ls_print_parm
output_options = ls_output_opt
user_settings = space
Hi all,
If there is no printer ls_output_opt-LDEST defined, SAP will get the printer from the user profile. If there is also no printer defined in user profile, it will prompt window for keying in the printer name.
The problem is when I key in the printer name, and to my surprise, there is no 'OK' or 'Tick' button, the only button available is 'X' or Cancel button.
Please help.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = lv_formname
importing
fm_name = lv_fm_name
exceptions
no_form = 1
no_function_module = 2
others = 3.
...
call function lv_fm_name
exporting
control_parameters = ls_print_parm
output_options = ls_output_opt
user_settings = space
2010 Oct 06 3:56 AM
Hi,
Try this:
data : LS_OUTPUT TYPE SSFCOMPOP,
ls_print_parm type TYPE SSFCTRLOP.
ls_print_parm-PREVIEW = 'X'.
ls_print_parm-NO_DIALOG = 'X'.
ls_print_parm-DEVICE = 'PRINTER'.
LS_OUTPUT-TDDEST = 'LOCA'. "or 'LP01'. "Spool: Output device
call function lv_fm_name
exporting
control_parameters = ls_print_parm
output_options = ls_output
user_settings = space
Thanks,
2010 Oct 06 5:06 AM
Hi,
Thanks for replying. However the requirement is no hardcode is allowed.
2010 Oct 06 5:17 AM
If so, get your printer in table TSP03 also check in user profile table USR01, then fill you pop up table for getting printer name.
Thanks,
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |