TCODE:FIBF/BF24/BF34
查找BTE事件:FIBF->环境->信息系统
在清单中找到我们需要BTE事件,可以点击文件按钮查询事件的详细描述,点击模式函数模块找到具体的函数-SAMPLE_INTERFACE_00001650
复制标准函数到自定义函数组
实施BTE
BF24 或FIBF->设置->产品
BF34 或FIBF->设置->发布/订阅模块
3 APP-ALV显示结构(RFPOS&RFPOSX)
4、根据需求,对BTE事件对应的方法进行编码,填充对应的字段
function zsample_interface_00001650. *"-------------------------------------------------------------------- *"*"局部接口: *" 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. select single lifnr kunnr into (e_postab-lifnr,e_postab-kunnr) from bseg where belnr = e_postab-belnr and bukrs = e_postab-bukrs and gjahr = e_postab-gjahr and buzei = e_postab-buzei. select single name1 from lfa1 into e_postab-lfnam where lifnr = e_postab-lifnr. select single name1 from kna1 into e_postab-kunam where kunnr = e_postab-kunnr. select single txt50 from skat into e_postab-ztext50 where ktopl = '1000' and saknr = e_postab-hkont and spras = sy-langu. endfunction.
————————————————
原文链接:https://blog.csdn.net/ABAP_NY/article/details/125504717
标签:FBL1N,客制化,FBL5N,into,lifnr,postab,RFPOS,where,select From: https://www.cnblogs.com/aqsyc/p/18259299