登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

原来为了你

我的人生就是要一次次的超越

 
 
 

日志

 
 
 
 

SF批量打印  

2011-08-03 09:19:23|  分类: smartform |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

datalf_fm_name            type rs38l_fnam.

when  '&PRT'."打印
read table gt_output with key sel 'X'.
if sy-subrc <> 0.
  
message w895(m7with '您没有选择任何数据!'.
endif.

datalc_control_parameters type ssfctrlop.
lc_control_parameters
-no_dialog ''.
lc_control_parameters
-no_open   'X'.
lc_control_parameters
-no_close  'X'.
lc_control_parameters
-preview   'X'.

*---get function into lf_fm_name
call function 'SSF_FUNCTION_MODULE_NAME'
  
exporting
    formname           
'ZSDBATCHPRT01'
  
importing
    fm_name            
lf_fm_name
  
exceptions
    no_form            
1
    no_function_module 
2
    
others             3.

*---ssf_open
call function 'SSF_OPEN'    "打开打印窗口
  
exporting
    control_parameters 
lc_control_parameters
  
exceptions
    formatting_error   
1
    internal_error     
2
    send_error         
3
    user_canceled      
4
    
others             5.

loop at gt_output where sel 'X'.
  
perform get_print_data using gt_output-vbeln.
  
call function lf_fm_name  "smartform中获取数据
    
exporting
      control_parameters 
lc_control_parameters
    
exceptions
      formatting_error   
1
      internal_error     
2
      send_error         
3
      user_canceled      
4
      
others             5.

endloop.

*---ssf_close               "关闭打印窗口,如点打印预览会关闭此窗口
call function 'SSF_CLOSE'
  
exceptions
    formatting_error 
1
    internal_error   
2
    send_error       
3
    
others           4.

  评论这张
 
阅读(576)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018