Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Enhancement Framework, User Exits, BTE

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

https://wiki.scn.sap.

com/wiki/display/ABAP/Enhancements+and+Modifications+-+BADI
%2C+Enhancement+Framework%2C+User+Exits%2C+BTE

https://wiki.scn.sap.com/wiki/label/ABAP/bte

OPEN_FI_PERFORM*

The 'OPEN_FI_PERFORM......_P' function module corresponds to the Process BTE. These


BTEs allow to implement program that differs from standard application, so they have changing
or exporting parameter in the BTE function module interface.

The 'OPEN_FI_PERFORM......_E' or the 'OUTBOUND_CALL..' are Publish and Subscribe


BTEs. These BTEs allow you to functionality implement additional functionality, not delivered
by SAP or as per custoomer requirement.

The 'OUTBOUND_CALL*' BTE function module additionally allows to sRFC enabled


implementation.

Which means that in the OUTBOUND_CALL..' BTE there is a check to identify if the function
module implemented is RFC enabled or not, and it has the possibility to call RFC enabled
function module based on 'SAMPLE_INTERFACE_....' with destination

BTE

Business Transaction Events (BTE) allow you to attach additional components, in the form of a
function module, for example, to the R/3 system.

Two types of interface are available for this purpose:


Publish & Subscribe interfaces:

These interfaces inform external software that certain events have taken place in an SAP standard
application and provide them with the data produced. The external software returns no data to the
SAP Standard System.

Process interfaces:

These interfaces are used to control a business process differently than the way in which it is
handled in the standard R/3 System. They intervene in the standard process, and return data to
the SAP application.

Publish & Subscribe interfaces:

Allow you to start one or more (multiple) additional operations when a particular event is
triggered. They do not influence the standard R/3 program in any way.

Multiple operations do not interfere with each other.

Add on components can only import data.

Additional checks (authorizations, existing duplicates, and so on)

The program contains an enhancement in the form of a Business Transaction Event. A function
module is called in the SAP program, which determines and processes the active
implementations. The names of the event function modules begin with "OPEN_FI_PERFORM_"
or "OUTBOUND_CALL_".

The event function module OPEN_FI_PERFORM_<u2026> or


OUTBOUND_CALL_<u2026> determines the active implementations for each enhancement
and stores them in an internal table. Function modules are implemented in the sequence defined
by the internal table. At this point the system also considers the conditions under which the
function module will be processed in the customer namespace. For example, a country or an
application can be entered as a condition. These conditions are also referred to as filter values.

In case of publish and subscribe interface :

In this case, data only flows in one direction - from the SAP application to the additional
component.

SAP application developers make interfaces available to you at certain callup points in a
transaction. You can define additional logic at these points.
In a very basic scenario, SAP partners and customers can use the interfaces themselves. In this
case business transaction events function in much the same manner as customer exits (see the
unit on "Enhancements using Customer Exits").

*Implementing a BTE*

******************************************************************************
**************************************

You can use transaction FIBF (called when you selected Use business transaction events from
the financial accounting hierarchy) to carry out all necessary activities prior to using a business
transaction event.

First, choose an interface to which you would like to attach your function module. The
Interface button displays the parameter structure for the interface you have selected. You can also
use the documentation to determine what functions each interface allows you to perform.

Use the ABAP Workbench to copy the sample function module sample_interface_<n> to the
customer namespace (z_*) of a customer function group. You must not change the interface. You
can fill the module with any source text except COMMIT WORK. Do not use a COMMIT
WORK! Don't forget to activate the function module.

Create a product in the administration screen.

Assign a number to your function module and product.

In contrast to customer exits, business transaction events are client-specific. This means that
the same event can be used in different clients for different purposes.

Business transaction events may also be used more than once

You might also like