Skip to Content
author's profile photo Former Member
Former Member

Document on BTE

send me some document on BTE .

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2008 at 04:36 PM

    See the following documentation :

    *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. 

    Reward If found helpful.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 19, 2008 at 06:23 PM

    Hi,

    You should check out this link (pdf document). It is a how-to-use guide. Should help you in implementing bte's.

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/207835fb-0a01-0010-34b4-fef1240ba9b7

    Good luck,

    Bert

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.