SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Business Transaction Events



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Enhancement and Modification | Расширения и модификация
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1636

PostPosted: Fri Nov 23, 2007 1:08 am    Post subject: Business Transaction Events Reply with quote

Business Transaction Events

This activity describes how you can connect additional components
(such as in the form of function modules developed yourself or a
product from an external software provider) to the standard R/3
System.

There are two types of interface available in the General Ledger
Accounting (FI-GL), Accounts Receivable and Accounts Payable
(FI-AR/FI-AP), and Sales and Distribution (SD) components for this:

1. Publish & Subscribe interfaces (also called "informing interfaces" in
the following) These should inform you about particular events (such
as a document being entered) in the SAP standard application and make
the data generated as a result available to the external software. The
external software does not return any data to the standard R/3 System.
(I'm confused. MIT is using two business transaction events for the SD
to FI interface. Both of these events are Publish & Subscribe interfaces.
They both return data to the SAP standard application! They both change the
FI document before it is posted. What I've figured out is that if there is
an export to memory and an import from memory before and after the function
call, then we can't modify the data. We can check this in the calling function
module - OUTBOUND_CALL_00503110_E or OPEN_FI_PERFORM_00001020_E, etc)

Examples of such events in the R/3 System are:

* Master record was created, changed, or blocked

* Document was entered, parked, changed, or reversed

* Items were cleared or reset

Additional processing can be caused in the additional component on the
basis of these events and data:

* Starting a workflow

* Generating or changing additional data

* Requesting correspondence

FI Clearing (F-32) calls (gathered via SE30):

Function OPEN_FI_PERFORM_00001020_E (can't modify data)

00001020 POST DOCUMENT: Prior to final checks

EVENT
This Event is reached prior to completing the document. The checks that
are carried out at this point include checking, prior to posting, that
the document balances to zero, and calculations for tax offsetting. This
Event is accessed once per standard posting process and is similar to
validation at document level (Event 0003). A document number has not yet
been assigned when this Event is reached.

INTERFACE
All document line items created and the document header data are
transferred (both as tables).

Parameter
T_BSEG
T_BKPF

Function OPEN_FI_PERFORM_00001025_E (can't modify data)

00001025 POST DOCUMENT: Final checks completed

EVENT
This Event lies following all checks on the whole document, but prior to
number assignment. Following this Event, no further error messages may
be sent. The document is complete at this point, and no further changes
can be made to it prior to posting.

INTERFACE
All current data, all document data relevant for the posting, and
various control parameters are transferred to the additional component.
At this point you can still implement your own checks on the current
document data.

Parameter
I_BKDF
T_AUSZ1
T_AUSZ2
T_AUSZ3
T_BKP1
T_BKPF
T_BSEC
T_BSED
T_BSEG
T_BSET
T_BSEU

Function OPEN_FI_PERFORM_00001030_E (can't modify data)

Function OPEN_FI_PERFORM_00001140_E (can't modify data)

2. Process interfaces (also referred to as "process" in the following)
Process interfaces are used to submit business processes to a
different control which cannot be realized with the standard system,
that is process interfaces replace standard processes. Here you can
structure determination of individual field contents or of specific
reactions to process flows individually. It is possible to connect
different external developments to the standard R/3 System. The
additional developments are generally carried out using the ABAP/4
Development Workbench. This way you can, for example, influence the
control of payment transactions. Selection of payment method, house
bank and partner bank can be made using the payment data (currency,
amount, and payee) according to a selection logic which you have
defined.

FI Clearing (F-32) calls:

Function OPEN_FI_PERFORM_00001120_P
Function OPEN_FI_PERFORM_00001130_P
Function OPEN_FI_PERFORM_00001150_P
Function OPEN_FI_PERFORM_00001170_P

Standard Settings

Sample modules are delivered in the standard R/3 System which you can
copy into your name range and fill them with statements there.

Activities

1. Enter a product using "Settings -> Customer's products". Actually, in 4.6C,
from transaction FIBF (IMG -> Financial Accounting -> Financial Accounting Global
Settings -> Business Transaction Events):

Settings -> Products -> ...of a customer



There are generally a large number of function modules belonging to a
product which can be called by different program events from within
the standard R/3 System. A product can also be an external software
component. If the product is in an external system, enter an RFC
destination here. If the product is in the same system, you do not
have to enter anything. Important: Do not forget to activate the
product after making the following settings.

2. Establish the interfaces with which the R/3 System provides you. To do this, choose

Environment -> Info system (P/S)
or
Environment -> Info system (Processes).



Execute the program. You should enter "A" as the
attribute type. You see the respective interfaces with which the R/3
System provides you. Note the key of the interface which you require.
You can also select:

* By particular SAP application components




* By particular events by entering intervals

* Which interfaces are used in activated products

* Which interfaces are used within a particular country version or
within a particular industry

* Which interfaces are used within a particular customer product



3. Enter the function module which you have developed yourself. To do
this, choose either Goto -> Edit modules within the info system or
Settings -> P/S modules or Process modules -> Customer's in the "SAP
Business Framework" menu. Make the following entries:

* Key for the interface

* The product that you want to use

* Function module which belongs to this product.

You can also enter several function modules for a product. Caution:
The function module must be within your name range, that is must begin
with the letter Z. You leave the Ctr and Appl. fields blank unless you
want a particular country version or a particular SAP
industry-specific component to be enhanced or replaced instead of the
standard process flow.

4. Fill the source text of your function module
and activate it. To do this, go again via Environment -> Info system
(P/S) or Environment -> Info system (Processes) into the information
system and execute the program. Then proceed as follows:

* Click twice on the interface you have chosen. If you want, you can
look at the interface at this point by choosing Goto -> Interface.
Then choose the Back function again afterwards.

* Place the cursor on the relevant line and choose Goto -> Function
library. You see the sample function module delivered by SAP.

* Copy the sample module delivered by SAP and call it the same as the
function module entered in step 3.

* Fill the source text of the empty function module.

* Activate the function module.

* Activate the product as described in step 1.

5. Run the R/3 program affected and test whether calling your function
module works.

Further Notes

The other menu paths are only used for information about additional
components delivered by SAP or about software already installed by
external software providers.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Enhancement and Modification | Расширения и модификация All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.