没有合适的资源?快使用搜索试试~ 我知道了~
abap 面向对象编程方法-CLASS创建 step by step
5星 · 超过95%的资源 需积分: 47 57 下载量 199 浏览量
2009-07-24
16:37:41
上传
评论
收藏 387KB PDF 举报
温馨提示
试读
19页
abap object-oriented class:this document will teach you hwo to create a object-oriented class step by step.
资源推荐
资源详情
资源评论
Object Oriented ABAP - Local and
Global classes
© 2005 SAP AG The SAP Developer Network: http://sdn.sap.com
SDN Community Contribution
(This is not an official SAP document.)
Disclaimer & Liability Notice
This document may discuss sample coding or other information that does not include SAP official interfaces
and therefore is not supported by SAP. Changes made based on this information are not supported and can
be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods
suggested in this document, and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of
this technical article or code sample, including any liability resulting from incompatibility between the content
within this document and the materials and services offered by SAP. You agree that you will not hold, or seek
to hold, SAP responsible or liable with respect to the content of this document.
1
Object Oriented ABAP - Local and
Global classes
© 2005 SAP AG The SAP Developer Network: http://sdn.sap.com
2
Applies To:
SAP Web AS, SAP R/3 4.0 and above
Summary
The use of Object-Oriented (OO) ABAP is ever-increasing. The classical ABAP programming paradigm is
giving way to the Object Orientation. One important aspect of Object-Oriented ABAP is the portability. This
two-part document explains how the Classes and their components can be imported and exported in ABAP.
This also lists the limitations of the tool provided by SAP.
This document, Part I, explains how the Local Classes are imported into the Global Classes visible in the
ABAP Class Builder (Transaction SE24). It gives the details of the relationships between the local and global
class components, and the limitations of the import step. Part II will explain the other way around, that is,
exporting the Global Classes into the Local Classes.
By: Bhanumurthy Thirumala
Company: Intelligroup, Inc.
Date: 05 January 2006
Table of Contents
Applies To:........................................................................................................................................2
Summary ..........................................................................................................................................2
Table of Contents.............................................................................................................................2
Introduction.......................................................................................................................................5
Requirements: ..................................................................................................................................5
The Local Class................................................................................................................................5
The IMPORT Step............................................................................................................................5
Import results and Limitations ..........................................................................................................7
Class Properties in ‘Properties’ Tab .............................................................................................7
Description ................................................................................................................................8
Instantiation...............................................................................................................................8
Final / Super Class....................................................................................................................8
Modeled only.............................................................................................................................8
Object Oriented ABAP - Local and
Global classes
© 2005 SAP AG The SAP Developer Network: http://sdn.sap.com
3
Message Class..........................................................................................................................8
Program Status .........................................................................................................................8
Category....................................................................................................................................8
Type Groups / Objects ..............................................................................................................9
Inheritance – example (Z_LOCAL_CLASS1) ...........................................................................9
‘Interfaces’ Tab .............................................................................................................................9
Abstract...................................................................................................................................10
Final.........................................................................................................................................10
‘Friends’ Tab ...............................................................................................................................10
‘Attributes’ Tab............................................................................................................................10
Level........................................................................................................................................11
Visibility ...................................................................................................................................11
Modeled...................................................................................................................................11
Typing......................................................................................................................................11
Associated Type......................................................................................................................11
Description ..............................................................................................................................12
Initial value ..............................................................................................................................12
‘Methods’ Tab .............................................................................................................................12
Level........................................................................................................................................12
Visibility ...................................................................................................................................12
Modeled...................................................................................................................................13
Description ..............................................................................................................................13
Method properties accessed from the ‘Details’ Icon:..............................................................13
Abstract...................................................................................................................................13
Final.........................................................................................................................................13
Event Handler .........................................................................................................................13
Editor Lock ..............................................................................................................................14
‘Events’ Tab ................................................................................................................................14
Object Oriented ABAP - Local and
Global classes
© 2005 SAP AG The SAP Developer Network: http://sdn.sap.com
4
Type ........................................................................................................................................14
Visibility ...................................................................................................................................14
Modeled...................................................................................................................................14
Description ..............................................................................................................................14
‘Internal Types’ Tab ....................................................................................................................14
Visibility ...................................................................................................................................15
Modeled...................................................................................................................................15
Typing......................................................................................................................................15
Associated Type......................................................................................................................15
Description ..............................................................................................................................15
Aliases ........................................................................................................................................16
Alias Name..............................................................................................................................16
Visibility ...................................................................................................................................16
Other Class properties affected..................................................................................................16
Conclusion:.....................................................................................................................................16
Code of the sample Local Class.....................................................................................................16
Author Bio.......................................................................................................................................19
剩余18页未读,继续阅读
资源评论
- yangbing6543212012-10-31书本描述详细,通俗易懂,好书。
- keyuming2015-04-30非常好的资源, 可以根据讲解一步一步的创建类
jackzheng33
- 粉丝: 3
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 实验项目一:线性表(模板 ).docx
- 基于LM317A设计交流220V输入可调5V-12V直流输出稳压电源电路multisim10仿真源文件.zip
- Screenshot_2024-04-25-17-04-18-55_2332cb9b27b851b548ba47a91682926c.jpg
- -基于AVR单片机的LNG加液机控制器设计.pdf
- ThePowerOfNow-EckhartTolle.mobi
- BLOCK_TYPE_HEARTBEAT_D70A3465D4EE4E9_046141_dump_1st.dmp
- 项目方法测试调用接口工具
- studyupdate
- 基于西瓜数据集的决策树实现.zip
- 60套HTML网站源码-响应式-涵盖(简历&作品展示&商业&科技&培训&商城&课设等)-适配移动设备-解压即用.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功