ABAP 如何判断调用smartforms时是进行打印还是预览
1个回答
展开全部
看它的输入参数,例如下面调用函数中,输出参数 lv_ssfcrescl中outputdone值为'X'为正式打印为空时是打印预览:
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZSDF0001'
IMPORTING
fm_name = lv_function.
CALL FUNCTION lv_function
IMPORTING
job_output_info = lv_ssfcrescl
TABLES
t_head = gt_head
t_item = gt_item
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZSDF0001'
IMPORTING
fm_name = lv_function.
CALL FUNCTION lv_function
IMPORTING
job_output_info = lv_ssfcrescl
TABLES
t_head = gt_head
t_item = gt_item
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询