Customer Name Addition to FBL5N Report Using BTE

+ -

Requirement :  Customer Name1 and Name2 should Display in line item wise in FBL5N Report.

 

 

 

To find a BTE, Go to transaction FIBF and follow the below path.


FIBF ---> Environment ---> Info System ( P/S )



ScreenHunter_05 Jul. 15 15.22.jpg

Use the Documentation button to see the documentation for the BTE.

 

ScreenHunter_07 Jul. 15 15.36.jpg

 

Click on Sample Functional Module and see the Functional module for BTE

 

ScreenHunter_07 Jul. 15 15.36.jpg

Copy Functional module with Z......

 

ScreenHunter_08 Jul. 15 15.43.jpg

 

Implementing the BTE

 

Go back to transaction FIBF

Create a new product for BET active the same


Setting ----> Product ---> of a Customer

 

 

ScreenHunter_09 Jul. 15 15.50.jpg


Then go to below path to attached the product to Z function module which is created.


Settings --> P/S Module --> of a Customer

 

 

ScreenHunter_10 Jul. 15 15.54.jpg


Add Name1  & Name2 Fields to Structure RFPOS & RFPOSX



ScreenHunter_11 Jul. 15 15.59.jpg



 


ScreenHunter_13 Jul. 15 16.00.jpg



After that run the program RFPOSXEXTEND from SE38.

After this you can see vendor code and names column in FBL5N.



ScreenHunter_14 Jul. 15 16.03.jpg



Then write the code as per your requirement inside the Created Z Functional Module.


function zsample_interface_00001650.

*"----------------------------------------------------------------------

*"*"Local Interface:

*"  IMPORTING

*"     VALUE(I_POSTAB) LIKE  RFPOS STRUCTURE  RFPOS

*"  EXPORTING

*"     VALUE(E_POSTAB) LIKE  RFPOS STRUCTURE  RFPOS

*"----------------------------------------------------------------------

 

*-------------- Initialize Output by using the following line ----------

   e_postab = i_postab.

   tables : kna1.

 

   data: w_cname1 type kna1-name1,

         w_cname2 type kna1-name2.

 

 

 

 

   if sy-tcode = 'FBL5N'.

 

     select single name1 name2

       from kna1

       into (w_cname1, w_cname2 )

       where kunnr = i_postab-konto.

 

     if sy-subrc = 0 .

       e_postab-zzname1 = w_cname1.

       e_postab-zzname2 = w_cname2.

     endif.

 

   endif.

 

endfunction.



Results :

 


ScreenHunter_15 Jul. 15 16.09.jpg



Thank You.


Pramod Pathirana.