`
Jack Wu
  • 浏览: 877664 次
  • 来自: ...
社区版块
存档分类
最新评论

如何实现一个BTE

Go 
阅读更多

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提供了多种自定义和增强机制,其中“业务事务增强”(Business Transaction Enhancement,简称BTE)是一种常用的扩展方式。本文将详细介绍如何通过BTE对会计凭证事务码F-29进行增强,...

    bte.rar_Only

    "BTE"(Buffer Transfer Engine)是这样的一个组件,它在处理数据传输时扮演着关键角色。根据提供的信息,我们可以深入讨论与"BTE status register"相关的知识。 标题中的“bte.rar_Only”可能指的是一个关于BTE...

    User Exits,Customer Exits,BAdI and BTE

    Business Transaction Events是SAP NetWeaver平台中的一个组件,它允许开发人员对业务流程中的特定事件做出反应。BTEs提供了一种事件驱动的编程模型,允许在流程的不同阶段触发自定义逻辑。当某个特定事件发生时...

    LSMW/BDC/BTE

    数据记录阶段,LSMW会捕获SAP事务代码的执行过程,创建一个可重用的模板。数据转换阶段,根据SAP字段映射非SAP数据,确保数据格式正确。最后,数据加载阶段将转换后的数据导入到SAP系统中。 BDC技术则是通过编程...

    BTE通讯处理配置[参照].pdf

    BTE是一个用于处理业务交易的引擎,其核心功能是协调不同应用之间的交互。在BTE系统中,SysComP(System Communication Process)扮演着至关重要的角色,它是系统通信的主要组件,负责处理各种通信协议和连接外部...

    BTE-Web-Map:用于BTE绘图分配的增强型Web地图

    **BTE-Web-Map:一个用于BTE绘图分配的增强型Web地图** BTE-Web-Map是一个专门设计用于Business Transaction Engine (BTE)的可视化工具,它利用JavaScript技术构建了一个强大的Web应用程序,旨在优化BTE绘图的分配...

    RA8875 驱动800x480 BTE 功能源程序

    "RA8875驱动800x480 BTE功能源程序"指的是针对该芯片的驱动程序,用于在800x480像素分辨率下实现最佳的图像显示效果,并且包含了一个名为"2_RA8875_800x480_BTE"的压缩包文件。 驱动程序在计算机系统中扮演着至关...

    50天突破2009考研核心词汇.txt.bte

    这些单词涵盖了多个主题领域,包括但不限于日常生活、科学、社会文化等方面,对于准备考研的学生来说,掌握这些词汇将有助于提高他们的英语水平,更好地应对考试中的阅读理解、写作和其他部分。

    bte-hockey:BTE曲棍球网站开发工作

    描述中的“BTE曲棍球网站开发工作”表明这是一个正在进行的项目,可能涉及到网站的设计、编程、功能实现以及优化等多个方面。开发者们可能在构建一个全面的曲棍球信息平台,以便用户可以获取新闻、赛程、统计、讨论...

    BTE-France-Bot:适用于BTE France服务器的Discord Bot

    **BTE-France-Bot:一个为BTE France服务器定制的Discord聊天机器人** BTE-France-Bot是一款专门设计用于BTE France服务器的Discord聊天机器人,它使用Python编程语言构建,旨在增强社区互动、提供有用的功能以及...

    bte

    虽然提供的信息不足以构建一个完整的"BTE"概念,但我们可以看到HTML作为一项关键技术,在IT领域,尤其是在网页开发和交互式应用中起着至关重要的作用。如果"BTE"项目涉及到HTML,那么可能包括了网页设计、用户界面...

    FI Enhancement

    总结,"FI Enhancement Tech: Business Transaction Event (BTE)"是SAP财务模块中的一个重要工具,它为企业提供了高度的灵活性和可扩展性,以适应不断变化的业务需求。理解和熟练运用BTE,能够有效提升FI系统的功能...

    SAP增强查找

    由于一个接口可以有多个实现类,因此一个增强可以有多种不同的源代码,通过过滤器可以应用于不同的业务场景。这种面向对象的增强方式极大地提升了增强的灵活性和可管理性。 第四代增强是SAP NetWeaver 7.0之后推出...

    FI Enhancement Tech - Business Transaction Code

    1. **BTE概念**:BTE是一个可编程的对象,它记录了SAP系统中特定业务事件的发生。这些事件可能包括销售订单创建、采购订单确认或者银行对账等。 2. **BTE激活与配置**:在SAP系统中,需要通过特定的事务代码(如...

    SAP系统中销售与分销模块相关的BADI

    - 区分只允许有一个实现的增强与可以按任意顺序调用多个实现的增强。 BADI与BTE的主要区别在于: - **适用范围**:BADI不仅可以用于程序增强,还可以用于用户界面元素的增强;而BTE主要用于程序级别的增强。 - **...

    一个用JAVA编的小型计算器

    根据描述,该计算器在处理小数点运算时存在一些问题,这为读者提供了一个进一步探索和改进的空间。 #### 二、程序结构与功能 ##### 2.1 程序结构 程序主要由以下几个部分构成: - **界面元素**:包括文本框(`...

    LS PMU330-PMU830人机界面操作手册.zip

    一、人机界面基础 人机界面(Human Machine Interface,HMI)是人与机器进行交互的接口,通过图形化界面,使得操作人员能直观地监控和控制生产过程。LS PMU330-PMU830系列提供不同尺寸和功能的触摸屏,适用于各种...

Global site tag (gtag.js) - Google Analytics