2008-06-17

abap objects中的命名习惯

abap objects中的类和接口与data elements,tables,structures和types共用一个命名空间,它们都被保存在表TADIR中。

classes in the class library: CL_<class name>
example: CL_COMPANY_CODE, CL_GENERAL_LEDGER_ACCOUNT

interfaces in the class library: IF_<interface name>
example: IF_STATUS_MANAGEMANT, IF_CHECKER

local classes in programs: LCL_<class name>
example: LCL_TREE_MANAGEMENT

local interfaces in programs: LIF_<interface name>
example: LIF_PRINTER

For parameters

The parameters are regarded from the point of view of the method that implements them:

IMPORTING parameters: IM_<parameter name>

EXPORTING parameters: EX_<parameter name>

CHANGING parameters: CH_<parameter name>

RESULT: RE_<result>

More on sap help: Naming Conventions in ABAP Objects

没有评论:

发表评论