ABAP 如何判断调用smartforms时是进行打印还是预览

2024-11-22 00:41:56
推荐回答(1个)
回答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.