Demo on Enhancement FrameworkBy Jagadeshwar Gollap

本文介绍如何使用增强框架中的源代码增强技术实现特定销售人员无法查看或修改其他销售人员的销售订单数据。通过实施隐式增强选项,确保了数据的安全性和权限管理。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Restrict users (sales persons) to view or change Sales order data - Using Enhancement framework:  
Source Code Enhancement is one of the enhancement technologies available under Enhancement Framework. Implementing this technology is also called as Source Code Plug-In. Technically the source code plug-in implementations are stored in a separate include program and not as part of the original source program.
There are two types of Source Code enhancements possible.

Implicit enhancement option Explicit enhancement option

Example Scenario: 
One sales person can’t see or change another sales person’s sales orders.
In my program, I have used following users.
Sales person1 (user 1): lz8xzf
Owner for Sales order no: 174.

Sales person2 (user 2): lzn4rm 
Steps to Implement the Implicit enhancement option: 
Step1:
Go to SE38 and Open include MV45AFZB

Step2:

In order to implement any of these Source code enhancements, you need to be in
‘change Enhancement mode’ (the spiral icon available in the editor).
 
 
Step3: Go to EDIT option in the menu and choose Enhancement Operations -> Show implicit Enhancement Options 
 
All Implicit Enhancement option will be displayed. All yellow lines indicate Implicit Enhancement options. In ABAP programs, implicit enhancement options are predefined at the following places:

Begin/End of an include.

Begin/End of Method/Function Module/Form Routine

End of a structure

End of Private/Protected/Public Section of a local class
 
 
Step4: Place the cursor on the yellow line and choose
Enhancement implementation
à Create. 

 
Step5: Give Implementation name and then create. 
 
Step6: Here Editor will be enabled to write the code. Write your own code save and activate it.


Step 7:
Once the development is completed you can test the scenario.
When Sales person (lzn4rm) tries to Open Sales order no 174, it gives error message ’Access Denied’.

Note: Sales order 174 is created by another sales person (lz8xzf).

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值