smartforms 打印需记录用户打印 判断用户是打印还是预览

本文介绍了如何在Smartforms中记录用户的打印行为,通过检查jobinfo变量判断用户是进行了实际打印还是仅预览了文档。提供了相关代码示例进行说明。
摘要由CSDN通过智能技术生成

参考: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.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值