Thursday, 19 March 2015

                              Business Transaction Events    

For each application sap is providing standards BTE. Each BTE is associated with a function module where enhancement have to be created. Where ever BTE is triggered respective functional is executed enhancement is called.Using BTE we can enhance an application based on standard Events given By SAP
Tcode:  FIBF

Envirements->InfoSystems(P/s)    .  Select Execute.
Double Click on Event 1420.  (See the last post to find the Event Number: we have FM)
Select “Sample Functional Module"
Select Copy-option (Ctrl+F5)
Provide ‘Z’ infront of To; Functional module
Funcitonal Group: YGROUP


IF I_BUKRS NE '1000'.
  MESSAGE 'ENTER CORRECT COMPANY CODE'  TYPE  'E'.
ENDIF.


Activate the Functional Module .
Settings-> Products-> of Customer.
Select New Entries option
     Product      Text                            A
     ZPROD      Production               | Check it |

Save and activate it.

Settings  -> P/s Module  ->  of a Customer.
Select New Entries Option
      Events    Product     Functional Module
      1420       ZPROD     ZSAMPLE_INTERFACE_00001420

Save.

Testing the Application :
    goto FK02 .    Vendor : 1000     ..Enter
                           Company code : 1000  .. Enter
                         address
you will get a message ..


Findind BTE Events:

Business Transaction Events:

CALL FUNCTION 'BF_FUNCTIONS_READ'
       EXPORTING
            I_EVENT = I_EVENT
            I_LAND  = LAND
            I_APPLK = I_APPLK
       IMPORTING
            E_EMPTY = EMPTY
       TABLES
            T_FMSAP = FMSAPTAB
            T_FMPRT = FMPRTTAB
            T_FMCUS = FMCUSTAB.


Please break point to find the exits 


No comments:

Post a Comment