SAP ABAP 调用smartforms打印,记录打印次数,打印预览/打印ssfcrescl-outputdone无参数值问题处理
原代码:
CALL FUNCTION 'SSF_OPEN'
EXPORTING
control_parameters = ls_control_parameters
output_options = ls_output_options
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
CALL FUNCTION 'SSF_CLOSE'
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
OTHERS = 4.
修改为:
ls_control_parameters-no_open = '' ". " 打开打印对话框
ls_control_parameters-no_close = " ''.
添加:
ls_output_options-tdiexit = 'X'. "打印预览后直接退出