1、把SAP打印函数输出PDF文件(网上例子比较多在此简单列举)
SmartForms生成PDF文件
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = name
* VARIANT = ' '
direct_call = 'X'
IMPORTING
fm_name = lv_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
* 获取OTF数据
IF sy-subrc = 0.
CALL FUNCTION lv_fm_name
EXPORTING
control_parameters = ls_ctrl_form
output_options = ls_output_opt
user_settings = lv_user_settings
IMPORTING
job_output_info = ls_job_output_info
TABLES
i_tab = gt_data
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-m

本文介绍了如何使用SAPSmartForms生成PDF文件,包括通过CALLFUNCTION调用函数模块、处理OTF数据转换为PDF以及通过链接回票系统和调用本地打印机进行打印的过程。
最低0.47元/天 解锁文章
2454

被折叠的 条评论
为什么被折叠?



