参考:http://blog.csdn.net/lymkelly/article/details/2874808
解决办法:
smartfoms调用后传递 参数
测试后结果为:
data jobinfo type ssfcrescl.
call function 'SSF_CLOSE'
importing
job_output_info = jobinfo
exceptions
formatting_error = 1
internal_error = 2
send_error = 3
others = 4
.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
exit.
endif.
if jobinfo-outputdone = 'X'.
message '打印了' type 'I'.
else.
message '没有打印' type 'I'.
endif.