Mysql――数据查询
2015-10-06 22:54
399 查看
Refer to SAP wiki: http://wiki.sdn.sap.com/wiki/display/Snippets/Creating+a+SAP+shortcut+for+any+transaction+and+sending+it+by+mail
Key Points:
1. Create the shortcut content for the required transaction
CALL FUNCTION 'SWN_CREATE_SHORTCUT'
EXPORTING
i_transaction = transaction
i_parameter = parameter
i_sysid = sy-sysid
i_client = sy-mandt
i_user = recipient_user_id
i_language = sy-langu
i_windowsize = 'Normal window'
IMPORTING
shortcut_string = content
EXCEPTIONS
inconsistent_parameters = 1
OTHERS = 2.
2. Sending the document to recipients with the shortcut attachment
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = it_objpack
contents_bin = it_objbin
contents_txt = it_objtxt
receivers = it_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
Shortcut Example.
[System]
Name=QA1
Description=
Client=800
[User]
Name=
Language=EN
[Function]
Title=
Command=ZAPR
Type=Transaction
[Configuration]
GuiSize=Maximized
[Options]
Reuse=1
Key Points:
1. Create the shortcut content for the required transaction
CALL FUNCTION 'SWN_CREATE_SHORTCUT'
EXPORTING
i_transaction = transaction
i_parameter = parameter
i_sysid = sy-sysid
i_client = sy-mandt
i_user = recipient_user_id
i_language = sy-langu
i_windowsize = 'Normal window'
IMPORTING
shortcut_string = content
EXCEPTIONS
inconsistent_parameters = 1
OTHERS = 2.
2. Sending the document to recipients with the shortcut attachment
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = it_objpack
contents_bin = it_objbin
contents_txt = it_objtxt
receivers = it_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
Shortcut Example.
[System]
Name=QA1
Description=
Client=800
[User]
Name=
Language=EN
[Function]
Title=
Command=ZAPR
Type=Transaction
[Configuration]
GuiSize=Maximized
[Options]
Reuse=1
相关文章推荐
- nagios监控mysql
- R连接MySQL数据库方法
- 主机Windows7下的MySQL workbench连接虚拟机MySQL出错
- 如何通过mysql bin_log拯救数据
- 关于用C操作mysql的一些函数介绍
- mysql进程意外停止的解决方案
- MySQL学习历程(一):安装和配置
- mysql索引学习
- Mysql高并发优化
- 遇到Host ‘xxx’ is not allowed to connet to this MySQL server 问题
- MySQL 转换函数与运算符
- ubuntu15.04手动安装MySQL5.6.27数据库
- MySQL 数据类型 详解
- MySQL运算符和函数
- mac 卸载mysql数据库
- mysql免安装的配置方法
- mysql子查询优化
- Mysql数据引擎的选择
- mysql常见问题
- mysql基本操作