ABAP--关于存储全局abap类的信息数据表
一直想写一些关于oo abap编程的东西,但有许多的问题需要跨越,首先就是abap的gui的类的,现在将sap字典用于存储类信息的表列出,供大家参考学习。
一、类的基本定义信息存储的表
===============================================
Class/Interface
===============================================
SEOCLASS(CLSNAME(30))
Class/Interface(存储类的基本定义)
--------------------------------------------------------------------------------------------------------
SEOCLASSDF(CLSNAME(30),VERSION(0/1))
Definition of class/interface(存储)
--------------------------------------------------------------------------------------------------------
SEOCLASSTX(CLSNAME(30),LANG)
Short description class/interface(存储类描叙)
++++++++++++++++++++++++++++++++++++++++++++++++++++
SEOFRIENDS(CLSNAME(30),REFCLSNAME(30),FRIENDTYPE(0/1),VERSION(0/1))
Friend relationship(存储友元类)
--------------------------------------------------------------------------------------------------------
SEOMETAREL(CLSNAME(30),REFCLSNAME(30),VERSION(0/1))
Inherited Superclass and Interface(继承的父类和实现的接口,区分参见备注)
Meta relationship
--------------------------------------------------------------------------------------------------------
SEOREDEF(CLSNAME(30),REFCLSNAME(30),VERSION(0/1),MTDNAME(61))
(存储重新定义父类的方法)
Redefined methods for each inheritance relationship
--------------------------------------------------------------------------------------------------------
SEOTYPEPLS
Type group application
--------------------------------------------------------------------------------------------------------
Memo:
SEOCLASS~CLSTYPE
0->class
1->Interface
SEOMETAREL~RELTYPE
0->Interface composition (i COMPRISING i_ref)
1->Interface implementation (CLASS c. INTERFACES i_ref)
2->Inheritance (c INHERITING FROM c_ref)
5->Enhancement ( c enhances c_ref)
SEOFRIENDS~FRIENDTYPE
0->Global Friend Relationship
1->Local Friend Relationship
SEOFRIENDS~VERSION
0->Inactive
1->Active
2->Deleted
二、类的方法和事件的定义存储的表
===============================================
Class Component
===============================================
SEOCOMPO(CLSNAME(30),CMPNAME(30),)
Class/Interface component
--------------------------------------------------------------------------------------------------------
SEOCOMPODF(CLSNAME(30),CMPNAME(30),VERSION(0/1),)
Definition class/interface component
--------------------------------------------------------------------------------------------------------
SEOCOMPOTX(CLSNAME(30),CMPNAME(30),LANG,)
Short description class/interface component
--------------------------------------------------------------------------------------------------------
Memo:
SEOCOMPO~CMPTYPE
1->Attribute
2->Method
3->Event
4->Type
SEOCOMPO~MTDTYPE
0->Method
1->Event handling method
2->Constructor
3->Destructor
4->Get-method of a virtual attribute
5->Set-method of a virtual attribute
6->Factory Method of a Business Class
SEOCOMPODF~EXPOSURE
0->Private
1->Protected
2->Public
--------------------------------------------------------------------------------------------------------
三、类的事件和方法的参数和异常定义存储的表
===============================================
Class Component's subcomponent
===============================================
SEOSUBCO(CLSNAME(30),CMPNAME(30),SCONAME(30))
--------------------------------------------------------------------------------------------------------
SEOSUBCODF(CLSNAME(30),CMPNAME(30),SCONAME(30),VERSION(0/1))
--------------------------------------------------------------------------------------------------------
SEOSUBCOTX(CLSNAME(30),CMPNAME(30),SCONAME(30),LANG)
--------------------------------------------------------------------------------------------------------
Memo:
SEOSUBCO~SCOTYPE
0->Parameters
1->Exception
-----------------------------------------------------------------------------------------------------
四、读取类信息的相关函数
===============================================
Relation Function
===============================================
SEO_CLASS_EXISTENCE_CHECK
SEO_CLASS_TYPEINFO_GET
SEO_ATTRIBUTE_READ_ALL
SEO_METHOD_READ_ALL
SEO_EVENT_READ_ALL
SEO_PARAMETER_READ_ALL
SEO_TYPE_READ_ALL
SEO_INHERITANC_READ
SEO_IMPLEMENTG_READ_ALL
SEO_FRIENDSHIP_READ_ALL
SEO_TYPEPUSAGE_READ_ALL
SEO_CLSDEFERRD_READ_ALL
SEO_INTDEFERRD_READ_ALL
SEO_CLASS_RESOLVE_INHERITANCE
SEO_CLASS_RESOLVE_IMPLEMENTGS
参考链接:http://blog.csdn.net/CompassButton/archive/2007/10/29/1854631.aspx