SAP smartform 打印问题 10
高手们!请教一个问题!我在SAPsmartform打印时,写成如下,能让SMARTFORM不用选择输出设备,直接进入打印预览,但是却无法打印了,谁能帮忙解决这个问题啊(既...
高手们!请教一个问题!我在SAP smartform 打印时,写成如下,能让SMARTFORM不用选择输出设备,直接进入打印预览,但是却无法打印了,谁能帮忙解决这个问题啊(既能不用选择输出设备,直接进入打印预览,又能打印)!
TMP_CONTROL_PARAMETERS-PREVIEW = 'X'.
TMP_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
OUT_OPTION-TDDEST = 'LP01'.
CALL FUNCTION FM_NAME
EXPORTING
TITLE = TITLE
CONTROL_PARAMETERS = TMP_CONTROL_PARAMETERS
OUTPUT_OPTIONS = OUT_OPTION
USER_SETTINGS = ''
TABLES
ITAB_A = ITAB_A
ITAB_B = ITAB_B
ITAB_C = ITAB_C
ITAB_D = ITAB_D
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5. 展开
TMP_CONTROL_PARAMETERS-PREVIEW = 'X'.
TMP_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
OUT_OPTION-TDDEST = 'LP01'.
CALL FUNCTION FM_NAME
EXPORTING
TITLE = TITLE
CONTROL_PARAMETERS = TMP_CONTROL_PARAMETERS
OUTPUT_OPTIONS = OUT_OPTION
USER_SETTINGS = ''
TABLES
ITAB_A = ITAB_A
ITAB_B = ITAB_B
ITAB_C = ITAB_C
ITAB_D = ITAB_D
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5. 展开
展开全部
CALL FUNCTION 'WFMC_PREPARE_SMART_FORM'
EXPORTING
pi_nast = nast
pi_addr_key = is_addr_key
pi_repid = lf_repid
IMPORTING
pe_returncode = cf_retcode
pe_itcpo = ls_itcpo
pe_device = lf_device
pe_recipient = cs_recipient
pe_sender = cs_sender.
IF cf_retcode = 0.
MOVE-CORRESPONDING ls_itcpo TO cs_composer_param.
cs_control_param-device = lf_device.
cs_control_param-no_dialog = 'X'.
cs_control_param-preview = xscreen.
cs_control_param-getotf = ls_itcpo-tdgetotf.
cs_control_param-langu = nast-spras.
ENDIF.
不知道你的程序入口怎么设置的,所以不知道能不能跟你的对应上
EXPORTING
pi_nast = nast
pi_addr_key = is_addr_key
pi_repid = lf_repid
IMPORTING
pe_returncode = cf_retcode
pe_itcpo = ls_itcpo
pe_device = lf_device
pe_recipient = cs_recipient
pe_sender = cs_sender.
IF cf_retcode = 0.
MOVE-CORRESPONDING ls_itcpo TO cs_composer_param.
cs_control_param-device = lf_device.
cs_control_param-no_dialog = 'X'.
cs_control_param-preview = xscreen.
cs_control_param-getotf = ls_itcpo-tdgetotf.
cs_control_param-langu = nast-spras.
ENDIF.
不知道你的程序入口怎么设置的,所以不知道能不能跟你的对应上
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
ZESTRON
2024-09-04 广告
2024-09-04 广告
在Dr. O.K. Wack Chemie GmbH,我们高度重视ZESTRON的表界面分析技术。该技术通过深入研究材料表面与界面的性质,为提升产品质量与可靠性提供了有力支持。ZESTRON的表界面分析不仅涵盖了相变化、化学反应、吸附与解吸...
点击进入详情页
本回答由ZESTRON提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询