• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
^ω^SAp傻X^o^
博客园    首页    新随笔    联系   管理    订阅  订阅

【二】SAP GM Events Enhancement using the BDT

As well as being able to enhance screens/tabs and adding new screens to the GMGRANT transaction you can also enhance the events such as pressing save, enter, cancel, back etc. This is implemented by enhancing there associated event codes such as ISSTA, ISDATA, XCHG, DCHCK, DSAVC etc within transaction GRANT_CUSTOMIZE(BDT). A list of the different events and there uses can be found here 

This functionality can be very useful, one use for this would be if you wanted to create a whole new tab/screen which saved data to a ZTABLE, but as with the standard tabs you needed to ensure that the data was not stored until the user clicked on the save button. You would therefore need to add the actual save functionality to the save event (i.e. DSAVC). To do this you simply add a function module which has been created in your function group to the DSAVC event. Another useful event is DCHCK which gets called when the user presses the enter button, this allows you to add any extra field validation which needs to be done before the transaction gets to the save functionality. See below for steps on how to implement the event enhancement: 

Step 1 
Execute grants management BDT development transaction (GRANT_CUSTOMIZE) 

Step 2 
Select Grant Master BDT Customizing->Events(GMS7) 

 

Step 3 
Select the event you want to enhance(i.e. DSAVC) 
 

Step 4 
Double click on the 'Event-> Function Modules' folder option from the left column 

Step 5 
Select 'New Entries' button. Enter an item number and the name of your custom function module, other fields should be same at Standard SAP entry. 

^_^很多人都把资料锁进了note里,以后还怎么百度呢^_^
posted on 2018-11-20 16:43  ^ω^SAP傻X^o^  阅读(239)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3