Example Business Scenario for Business Transaction Events
Company A would like to copy the group key field from the vendor master into the allocation field on all the line items within a vendor invoice and payments, including the vendor lines. This requirement assumes only one vendor is posted to in a document.
To accomplish this requirement, Company A will use the Business Transaction Event 1130, Post Document: SAP Internal Field Substitution.
1. IMG Menu Path: Financial Accounting Financial Accounting Global Settings Use Business Transaction Events Environment Infosystem (Processes).
2. Find the correct Business Event. You are updating a field, so you select the Processes Info System instead of the Publish and Subscribe Info System.
3. Execute the search with the defaults.
4. Find the correct interface for updating a document: Post Document: SAP- Internal Field Substitution
5. Put your cursor on the event and click on the Sample Function Module button.
6. You are now in transaction SE37 – Function Builder. This is the function module (sample_process_00001130) you will need to copy into a "Z" name function module for your coding
7. Click on the Copy button.
8. Enter the "Z" function module name in the To Function Module field
9. Enter a Function Group. If you need to create a "Z" function group, go to transaction code SE37 and follow menu path: Go to Function Groups Create Group. A function group is a logical grouping of function modules, and the ABAP code is generated for function groups. You will be prompted for a development class and transport when creating the function group.
10. In Function Builder (transaction SE37), enter the new "Z" function module. Click on the Change button.
11. The system will default into the source code screen where you may enter your ABAP code.
12. Notice the tables available for the code. Additional tables may be declared if necessary.
13. Enter the following source code
tables: lfa1.
data: z_groupkey like lfa1-konzs.
z_groupkey = ' '.
loop at t_bseg.
* check for vendor lines. If one is found, read the vendor master and
* retrieve the group key field.
if t_bseg-koart eq 'K'.
select single konzs from lfa1 into z_groupkey
where lifnr = t_bseg-lifnr.
endif.
* Move the group key field into all line items allocation field.
loop at t_bsegsub.
t_bsegsub-zuonr = z_groupkey.
modify t_bsegsub index sy-tabix.
endloop. "t_bsegsub
endloop. "t_bseg
14. Save the function module.
15. Back out to the main Function Builder screen by clicking on the green arrow button.
16. Activate the function module by clicking on the Activate button
17. Assign the function module to the event in the IMG: Financial Accounting Financial Accounting Global Settings Business Transaction Events Settings Process Function Modules of an SAP Appl.
18. Hit enter past the warning messages that this is SAP data.
19. Click on the New Entries button.
20. Enter the process for your interface. In your example it is 00001130.
21. Enter the country the interface is valid for. If it is valid for all countries, leave this field blank.
22. Enter the application the interface should be called for. If it should be called for all applications, leave this field blank. Please note that not all integrated transactions are programmed to go through these interfaces! You will need to test to find out!
23. Enter the new "Z" function module
24. Save the settings. At this point you will be prompted for a CTS number for the configuration change.
25. The Business Transaction Event is complete! You are ready for testing
相关TCODE:
BERP
FIBF
相关连接:
http://help.sap.com/saphelp_erp2005/helpdata/en/3b/7f3e8be57c11d1951f0000e82dec10/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/ad/fc5a4064b4ef6fe10000000a1550b0/frameset.htm
Example:http://fuller.mit.edu/user_exits/business_transaction_event.htm
http://www.workflowbook.com/TransactionIndex.pdf
分享到:
相关推荐
一个简单的SAP BTE 实例用法!一个简单的SAP BTE 实例用法!一个简单的SAP BTE 实例用法!一个简单的SAP BTE 实例用法!
what are business transaction events? difference between BADI's and BTE's
SAP ABAP 增强 BTE 开发 .pdf
BTE训练系统对排球运动员挥臂动作上肢肌力影响特征分析,黄鹏,弋楠,目的:通过BTE PRIMUS模拟仿真训练系统对排球运动员挥臂动作进行训练,探究上肢肌力和动作速度关系以及技术动作准确性的影响。方法�
一个非常强的查找Customer Exit, User exit, BADI和BTE的程序 博文链接:https://jgtang82.iteye.com/blog/128474
该文档示例增强F-29,同时该出口也可实现F-02,FB01,FB02等事务码的增强,亲测有效,其他可自行测试
用于Broadcom芯片抓取数据log的一个工具,里面有相应的dll文件,并选择相应的cgs文件;
吉林大学学位与研究生教育 · 中国教育科研网 · 中国科技论文在线 · 中国学位与研究生教育学会 · 吉林大学主页 · 学院信息. 吉林大学研究生院Copyright © 2005.
LSMW/BDC/BTELSMW/BDC/BTELSMW/BDC/BTE
BTE status register only supports 16 bits for length field.
BTE通讯处理配置[参照].pdf
BTE-Web-Map:用于BTE绘图分配的增强型Web地图
bte:用Bash编写的简单文本编辑器
bte-hockey:BTE曲棍球网站开发工作
关于《反恐精英:突破版》 CSBTE是一个CS1.6 mod,经过修改可像CSO(aka CS:NZ)一样工作。 最初,它旨在与CSO-NST(另一个类似于CSO的mod)竞争,现在它与CSO的区别越来越小,成为最受欢迎的CSO-like mod。...
RHYTHM SA3229是低成本的BTE助听器硬件参考设计,采用预配置的DSP系统。此文档介绍使用SA3229 DSP系统创建定制的BTE助听器所需的元件、工具和流程,并附有设计可能出现的问题、原因及解决办法。……
BTE-法国-博特适用于BTE France服务器的Discord Bot 通过加入我们!
使用RA8875 完整驱动 简单易懂中文注释
在上一个项目中,我建立了一个电子记分板,该记分板由Smartwatch控制。 后来我添加了按钮来控制记分板。 随着越来越多的人加入我将参加的排球联赛,需要由手表控制记分板的原因(以便我可以打球并保持得分)逐渐消失...
验血讲解员 关于 可在