You can use OpenFI 1650 and add any
fields to ALV line in FBL1N, FBL3N, FBL5N. It's simple.
Steps:
Steps:
1. Include field ZZLIFNR & ZZKUNNR
as add.structure in RFPOS, RFPOSX.
2.
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
*"----------------------------------------------------------------------
*"*"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 buzei = i-postan-buzei
AND ( kunnr <> '' OR lifnr <> '' ).
ENDFUNCTION.
3. 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

4. Run RFPOSXEXTEND (regenerate structure) and
BALVBUFDEL (clear ALV).
No comments:
Post a Comment