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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
4 | |
4 | |
3 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 |