没有合适的资源?快使用搜索试试~ 我知道了~
首页abap 面向对象编程方法-CLASS创建 step by step
abap 面向对象编程方法-CLASS创建 step by step
5星 · 超过95%的资源 需积分: 47 57 下载量 48 浏览量
更新于2023-03-03
收藏 387KB PDF 举报
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页未读,继续阅读
jackzheng33
- 粉丝: 3
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- zigbee-cluster-library-specification
- JSBSim Reference Manual
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功