Business Transaction Events

来源:互联网 发布:ppt数据对比的图片 编辑:程序博客网 时间:2024/05/29 11:22

 

然后选择菜单Products->…of a customer,出现图3.4.2.6-2画面(Tcode:BF24).

在此屠夫先生建立了一个product ZST1(想做所谓的FICO资深顾问们的导师[相当于克莱登大学博士生导师]的要看清楚).Active勾上表示激活.

现在想使用EVENT 00001020(对应function SAMPLE_INTERFACE_00001020),如下图copyFunction ZST_BTE_TRAINING.

Tcode:BF34SAP给出的event(看成interface就对了)和刚刚定义的product ZST1,你写的function module(Z的联系上就对).

 

 

FUNCTION ZST_BTE_TRAINING.

*"----------------------------------------------------------------------

*"*"Local interface:

*"  TABLES

*"      T_BSEG STRUCTURE  BSEG

*"      T_BKPF STRUCTURE  BKPF

*"----------------------------------------------------------------------

 

if  not ( sy-tcode eq 'FBB1' or sy-tcode eq 'FB08' ) .

   Loop at T_BSEG .

      if T_BSEG-HKONT = '0013050099' or T_BSEG-HKONT = '0030050099'.

         Message E008(ZFICO) with

         'Post GL Account:0013050099|0030050099'

         'only possible through FBB1 or FB08' .

     endif.

   endloop.

endif.

ENDFUNCTION.

这样在保证GL account 00130500990030050099只能在FBB1FB08中使用.

你可以使用Validation确定达到同样的效果.

BTE相关Tcodes:

FIBFBERE|BERP|BERPC|BF01|BF02|BF03|BF05|BF06|BF07|BF11|BF12|

BF21|BF22|BF23|BF24|BF31|BF32|BF34|BF41|

BF42|BF44|BFST|

要点:

1.      BF24 create product and activate it .

2. BF34 to link events,product and your function together .

上面只是简单介绍了BTE,BTEFI,SD应用更详细请看…<<FICO资深顾问三月通>>

原创粉丝点击