Anda di halaman 1dari 21

Adding custom fields to the FI report FBL5N using BTEs

By Shaik Sajid, Selligence Technologies Example Scenario: When we run FBL5N, we need to have additional columns (Custom Fields) Billing Plant and Description.

Now for the above requirement, we need to do following in FIBF tcode (BTE).

Give a Product name

Select the appropriate event which gets triggered during the execution of the tcode FBL5N.

Against the Event assign the Product name which was created above and assign a function module name (the procedure to create the correct function module can be found at this linkhttp://www.saptechnical.com/Tutorials/Others/BTE/Page1.htm )

In FBL5N, we need to have two additional columns, Billing plant and Description. For this we need to append a structure with two fields in RFPOS structure and RFPOSX structure.

Then we need to execute a Report RFPOSXEXTEND

Select YES

Click here to continue....

Adding custom fields to the FI report FBL5N using BTEs


...Previous

Code written in the Function module is as follows

TEST:

Scenario on Business Transaction Events (BTEs)


By Deepak K Manjunatha, IBM India In this tutorial, we would focus on triggering a BTE whenever a vendor data is changed (Transaction FK02) Go to transaction FIBF or IMG Menu Path: Financial Accounting ->Financial Accounting Global Settings->Business Transaction Events-> Environment-> Infosystem (Processes).

Click on execute. Look for the appropriate event that fulfills our requirement.

Double click on the corresponding BTE. Click on the Sample Function module.

Copy the interface into the custom function module (z*). The desired logic is coded in the custom function module. The interface of the function module should never be changed.

Additional logic can be coded in the function module. Save and activate the function module.

The next step is to create a Product that links the event with the function module. Products are created in the same transaction FIBF.

Click here to continue...

Scenario on Business Transaction Events (BTEs)


...Previous Click on the New Entries button.

Enter the product name description and RFC destination if applicable. The check box A is to activate the product.

The next step is to link the function module and the event using the product created. The path is shown below.

Click new entries and enter the event and the function module.

Testing the BTE. For our case go to transaction FK02, that changes the vendor data.

Make a small change in the existing vendors data.

Upon save, the BTE associated with the event will be triggered.

Apply a break point in the function module associated with the event to check the triggering.

Anda mungkin juga menyukai