FBL*N报表增加客户/供应商名称

Add additional field to FBL*N reports with using BTE exit.

First of all, if you don't use BTE before, You must create a product on FIBF.

Call FIBF transaction -> Settings -> Products -> ...of a customer

Create a new line,
Product : ZFI
Text : BTE Products for FI Exit
Product active : tick check fro activation.

Then you must call SE11 for structure RFPOS.
You must use append structure function for this structure and you can define ZFI_RFPOS append structure

Define 4 fields.

Component : KUNNR - Component type : KUNNR
Component : NAMED - Component type : NAME1
Component : LIFNR - Component type : LINFR
Component : NAMEK - Component type : NAME1

Then save and active your RFPOS structure.

After that, you must do same step for structure RFPOSX.

Then go to SE37 and copy from SAMPLE_INTERFACE_00001650 to ZFI_INTERFACE_00001650 FM.

After copy action, you must uncomment this line on ZFI_INTERFACE_00001650 FM's source code. It's very very important;

E_POSTAB = I_POSTAB.

TABLES : bseg, kna1, lfa1.
IF sy-tcode = 'FBL3N'.
CLEAR : bseg.
SELECT SINGLE *
FROM bseg
WHERE bukrs = i_postab-bukrs
AND belnr = i_postab-belnr
AND gjahr = i_postab-gjahr
AND koart = 'K'.
IF sy-subrc EQ 0.
e_postab-lifnr = bseg-lifnr.
CLEAR: lfa1.
SELECT SINGLE *
FROM lfa1
WHERE lifnr = bseg-lifnr.
IF sy-subrc EQ 0.
e_postab-namek = lfa1-name1.
ENDIF.
ENDIF.
CLEAR : bseg.
SELECT SINGLE *
FROM bseg
WHERE bukrs = i_postab-bukrs
AND belnr = i_postab-belnr
AND gjahr = i_postab-gjahr
AND koart = 'D'.
IF sy-subrc EQ 0.
e_postab-kunnr = bseg-kunnr.
CLEAR: kna1.
SELECT SINGLE *
FROM kna1
WHERE kunnr = bseg-kunnr.
IF sy-subrc EQ 0.
e_postab-named = kna1-name1.
ENDIF.
ENDIF.
ENDIF.





Then save and active FM.

Call FIBF transaction again.

FIBF -> Settings -> Process Modules -> ...of a customer

Define a new line.

Process : 00001650
Function Module : ZFI_INTERFACE_00001650
Product : ZFI

and this customizing.

Then you go to SE38 transaction.

start report RFPOSXEXTEND. After starting, a pop-up appears, you must click YES.
(此处执行的时候会报错,

End phase  002 ***********************************************************

Message no. D0322,)


补充,在FIBF添加Process Module的时候,系统找不到00001650,可以用SM30维护TPS01解决。


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11782589/viewspace-702587/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/11782589/viewspace-702587/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值