Add Field in Transaction FBL3N
You can use OpenFI 1650 and add any fields to ALV line in FBL1N, FBL3N, FBL5N. It's simple. In this sampe you will add fields Vendor (LIFNR) and Customer (KUNNR).
Steps:
Steps:
- Include field ZZLIFNR & ZZKUNNR as add.structure in RFPOS, RFPOSX.
- Copy func.module SAMPLE_INTERFACE_00001650 in ZFM_FBL3N and developing use ZZLIFNR & ZZKUNNR field...
FUNCTION zfm_fbl3n.
*"----------------------------------------------------------------------
*"*"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: lfa1, kna1, bseg.
SELECT SINGLE lifnr kunnr
FROM bseg INTO (e_postab-zzlifnr, e_postab-zzkunnr)
WHERE bukrs = i_postab-bukrs
AND gjahr = i_postab-gjahr
AND belnr = i_postab-belnr
AND ( kunnr <> '' OR lifnr <> '' ).
ENDFUNCTION.
- Activate OpenFI (FIBF tr.code).
- Create product of a customer
- Add Z1650 and Text and activate
- Create P/S Modules of a customer
- Assign Func.Module ZFM_FBL3N to Event 1650 & Product Z1650
- Run RFPOSXEXTEND (regenerate structure) and BALVBUFDEL (clear ALV).
This program can only be run by user who has admin authority. Contact Basis user or IT administrator for assistance
No comments :
Post a Comment