博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
How to convert smartform output into pdf?
阅读量:6296 次
发布时间:2019-06-22

本文共 2503 字,大约阅读时间需要 8 分钟。

There is a way to download smartform in PDF format. 

Please do the following:  

1. Print the smartform to the spool.  
2. Note the spool number.  
3. Download a PDF file (Acrobat Reader) version of the spool by running Program RSTXPDFT4 and entering the  
noted spool number. 

or use this program:

&---------------------------------------------------------------------*& Report ZPDF_DNLD_TEST2 **& *&---------------------------------------------------------------------*& DEVK904540 **& *&---------------------------------------------------------------------REPORT ZPDF_DNLD_TEST2 .data: i_otf LIKE itcoo OCCURS 100 WITH HEADER LINE,i_pdf LIKE tline OCCURS 100 WITH HEADER LINE.data: op_option type SSFCTRLOP,job_output type SSFCRESCL.op_option-getotf = 'X'.CALL FUNCTION '/1BCDWB/SF00000005'EXPORTINGARCHIVE_INDEX = ARCHIVE_INDEX_TAB = ARCHIVE_PARAMETERS = CONTROL_PARAMETERS = op_optionMAIL_APPL_OBJ = MAIL_RECIPIENT = MAIL_SENDER = OUTPUT_OPTIONS = USER_SETTINGS = 'X' itab1 = itab1 IMPORTINGDOCUMENT_OUTPUT_INFO = JOB_OUTPUT_INFO = job_outputJOB_OUTPUT_OPTIONS = EXCEPTIONSFORMATTING_ERROR = 1INTERNAL_ERROR = 2SEND_ERROR = 3USER_CANCELED = 4OTHERS = 5.IF sy-subrc 0.MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF.CALL FUNCTION 'CONVERT_OTF'EXPORTINGFORMAT = 'PDF'MAX_LINEWIDTH = 132 ARCHIVE_INDEX = ' ' COPYNUMBER = 0 ASCII_BIDI_VIS2LOG = ' ' PDF_DELETE_OTFTAB = ' ' IMPORTING BIN_FILESIZE = BIN_FILE = TABLESotf = job_output-otfdatalines = i_pdfEXCEPTIONS ERR_MAX_LINEWIDTH = 1 ERR_FORMAT = 2 ERR_CONV_NOT_POSSIBLE = 3 ERR_BAD_OTF = 4 OTHERS = 5 .IF sy-subrc 0.MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF.CALL FUNCTION 'GUI_DOWNLOAD'EXPORTINGBIN_FILESIZE = filename = 'c:\test_pdf_sf.pdf'FILETYPE = 'BIN'tablesdata_tab = i_pdfFIELDNAMES = EXCEPTIONSFILE_WRITE_ERROR = 1NO_BATCH = 2GUI_REFUSE_FILETRANSFER = 3INVALID_TYPE = 4NO_AUTHORITY = 5UNKNOWN_ERROR = 6HEADER_NOT_ALLOWED = 7SEPARATOR_NOT_ALLOWED = 8FILESIZE_NOT_ALLOWED = 9HEADER_TOO_LONG = 10DP_ERROR_CREATE = 11DP_ERROR_SEND = 12DP_ERROR_WRITE = 13UNKNOWN_DP_ERROR = 14ACCESS_DENIED = 15DP_OUT_OF_MEMORY = 16DISK_FULL = 17DP_TIMEOUT = 18FILE_NOT_FOUND = 19DATAPROVIDER_EXCEPTION = 20CONTROL_FLUSH_ERROR = 21OTHERS = 22.IF sy-subrc 0.MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF.

专注于企业信息化,最近对股票数据分析较为感兴趣,可免费分享股票个股主力资金实时变化趋势分析工具,股票交流QQ群:457394862
分类: 
标签: 
本文转自沧海-重庆博客园博客,原文链接:XXXXXX,如需转载请自行联系原作者
你可能感兴趣的文章
mac pro 入手,php环境配置总结
查看>>
MyBatis-Plus | 最简单的查询操作教程(Lambda)
查看>>
rpmfusion 的国内大学 NEU 源配置
查看>>
spring jpa 配置详解
查看>>
IOE,为什么去IOE?
查看>>
Storm中的Worker
查看>>
dangdang.ddframe.job中页面修改表达式后进行检查
查看>>
Web基础架构:负载均衡和LVS
查看>>
Linux下c/c++相对路径动态库的生成与使用
查看>>
SHELL实现跳板机,只允许用户执行少量允许的命令
查看>>
SpringBoot 整合Redis
查看>>
2014上半年大片早知道
查看>>
Android 6.0指纹识别App开发案例
查看>>
正文提取算法
查看>>
轻松学PHP
查看>>
Linux中的网络监控命令
查看>>
this的用法
查看>>
windows下安装redis
查看>>
CentOS7 yum 安装git
查看>>
启动日志中频繁出现以下信息
查看>>