源代码增强的一点说明(souce code enhance )详解编程语言
2023-06-13 09:11:51 时间
下面以显式创建为例子:
1、在ABAP编辑器中, 打开想要编辑的程序,切换到可编辑模式
2、在源代码中的指定位置右键,弹出菜单,选择 Enhancements #Create Option
此处说明一下:你需要进入Utilities》设置》ABAP Editor 中,将downwards-comp.Line Lngth(72)的复选框取消勾选,否则在创建源代码增强的的时候,会提示消息creating of enhancements supported only for line length 72 。
3、在弹出的对话框中,选择ENHANCEMENT-POINT(增强点) 或ENHANCEMENT-SECTION(增强部分),然后在后面填写名称,如 ZEH1 。
4、选择有条件调用还是无条件调用。
对于有条件调用和无条件调用的说明:
As an unconditional call (the enhancement option then receives in the source code the addition STATIC ):In such static enhancements, data declarations for example can be added or replaced. The call of enhancements is independent of the client the choice of a static call should therefore be carefully thought out beforehand.
As a conditional call:
The enhancements implemented here are dynamic that is, they are called in connection with the switch settings.
5、创建增强点,并填入增强点名称,如 ZSP1 ,描述,pakage,如果有请求号,需要将请求号填入,还有开发类等。
说明:一个增强点名称下,可以分配多个增强点,既,这里可以创建多个增强点。
6、选择右下角的对号,回到abap编辑器中,你会发现光标位置出现类似如下代码ENHANCEMENT-POINT ZEH1 SPOTS ZSP1 ZSP2 .
需要说明的时候,在创建的时候,注意命名的问题,需要以字符Z或Y开头
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/19652.html
c相关文章
- 想在 Visual Studio Code 里进行 ABAP 开发,需要安装的扩展列表
- Code For Better 谷歌开发者之声——使用 GPU 渲染模式分析工具进行分析
- Windows10添加自定义右键菜单VS Code
- The unit caddy.service has entered the 'failed' state with result 'exit-code'
- ORA-46095: Invalid error code supplied ORACLE 报错 故障修复 远程处理
- SparkSpark性能优化之Whole-stage code generation详解大数据
- Microsoft开源用于VS Code的Java Debugger详解编程语言
- 两个对象值相同 (x.equals(y) == true),但却可有不同的 hash code,这句话对不对详解编程语言
- [BAPI]BAPI_GOODSMVT_CREATE中的GM_CODE汇总详解编程语言
- Google Summer of Code 2016 启动:现接受学生注册申请
- 2021 全球开发者报告:VS Code 环境占绝对优势,编程语言 JS 最流行 Rust 最受喜爱 Clojure 最赚钱
- Visual Studio Code (简称 VS Code ) 是一个轻量但功能强大的跨平台源代码编辑器。
- Get Your Hands on Linux: Easy Guide to Downloading Source Code Packages(linux源码包下载)
- Exploring Code with Ease: Enhance Your Programming Skills with a Linux Code Reader(linux代码阅读器)
- 深入浅出MySQL中的Code学习实用编程技巧(mysql中code)