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 )
Use the Documentation button to see the documentation for the BTE.
Generated by Jive on 2016-09-24Z
1
Customer Name Addition to FBL5N Report Using BTE
Click on Sample Functional Module and see the Functional module for BTE
Generated by Jive on 2016-09-24Z
2
Customer Name Addition to FBL5N Report Using BTE
Copy Functional module with Z......
Implementing the BTE
Go back to transaction FIBF
Generated by Jive on 2016-09-24Z
3
Customer Name Addition to FBL5N Report Using BTE
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
Generated by Jive on 2016-09-24Z
4
Customer Name Addition to FBL5N Report Using BTE
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.
Generated by Jive on 2016-09-24Z
5
Customer Name Addition to FBL5N Report Using BTE
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
Generated by Jive on 2016-09-24Z
6
Customer Name Addition to FBL5N Report Using BTE
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.
Generated by Jive on 2016-09-24Z
7