Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member203806
Participant
18,685

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 )



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

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

Copy Functional module with Z......

Implementing the BTE

Go back to transaction FIBF

Create a new product for BET active the same


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


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


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


Add Name1  & Name2 Fields to Structure RFPOS & RFPOSX








After that run the program RFPOSXEXTEND from SE38.

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





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 :




Thank You.


Pramod Pathirana.








Labels in this area