Professional Documents
Culture Documents
Naming Conventions
Object Project SAP CustDev
Class (in SE24) <ZCU>CL_<name>
Interface (in SE24) <ZCU>IF_<name>
Types TV_<name>
TS_<name>
TT_<name>
Instance attributes
(public, private, protected) MV_<name>
MS_<name>
MT_<name>
MR_<name>
Static attributes SV_<name>
(public, private, protected)
SS_<name>
ST_<name>
SR_<name>
method data
(local declarations)
LV_<name>
LS_<name>
LT_<name>
LR_<name>
<FS_name>
Class definition
LCL_<name>
GCL_<name>
Class interface definition LIF_<name>
GIF_<name>
IS_<name>,
PIS_<name>
IT_<name>,
PIT_<name>
IR_<name>
Export-Parameter EV_<name>,
PEV_<name>
ES_<name>,
PES_<name>
ET_<name>,
PET_<name>
ER_<name>
Changing-Parameter CV_<name>,
PCV_<name>
CS_<name>,
PCS_<name>
CT_<name>,
PCT_<name>
CR_<name>
Returning-Parameter RV_<name>,
PRV_<name>
RS_<name>,
PRS_<name>
RT_<name>,
PRT_<name>
RR_<name>
Method names
Naming Conventions
Object Project SAP CustDev
SET- / GET-Methods for
SET_<attribute
attribute access
name>,
GET_<attribute
name>
Methods for event handling ON_<event_name>
w classes
Example
use LC_ for declaration in methods
use GC_ for declaration in class attributes
Variable
Structure type
Table type
mv_matnr (variable)
ms_mara (structure)
mt_mara (table)
mr_header (reference)
field symbols
Example
IV_MATNR
PIV_MATNR
Use only one notation for your project!
IS_HEADER
PIS_HEADER
IT_ITEM
PIT_ITEM
IR_HEADER
EV_SUBRC
PEV_SUBRC
Structure
internal table
Object Reference
Variable
Structure
internal table
Object Reference
Variable
Structure
internal table
Object Reference
Example
set_status
on_button_pushed
as_string
is_open, is_active
These methods must not return any EXCEPTIONs
Recommendation: The Boolean value should be represented
by the values SPACE/’X’ for false/true
check_authorization