Object |
Length |
Naming Convention / Description |
---|---|---|
Tables |
30 |
Z<area>_<tech.repr>_<bo/query> (e.g. ZSD_A_SALES_ORDER) |
CDS View Entities |
30 |
Z<area>_<type>_<bo/query><suffix> (e.g. ZSD_C_SALES_ORDER) CDS DDIC views are no longer recommended. SAP is planning to convert all standard CDS DDIC views to CDS View Entities CDS Extractors (e.g. BW) are considered Interface Views taking standard CDS extractors as reference. |
Access Control |
16 |
ZAC<description><suffix> |
Behavior Definition |
30 |
Same name as the root entity of the business object or query. See CDS View Entities. |
Behavior Pool |
30 |
ZBP_<area>_<bo/query> (e.g. ZBP_SD_SALES_ORDER) |
Metadata Extension |
30 |
Same name as the CDS entity it relates to. If there is more than one, add a numbered suffix. See CDS View Entities. |
Service Definition |
30 |
Z<area>_<bo/query>(e.g. ZSD_SALES_ORDER) |
Service Binding |
30 |
Z<area>_<type>_<bo/query>_<protocol>(e.g. ZSD_UI_SALES_ORDER_O2) |
Object |
Naming convention |
---|---|
Local classes |
LCL_<noun> |
Local Test Class |
LTC_<noun> |
Local Test Double |
LTD_<noun> |
Local interfaces |
LIF_<noun> |
Class in the class library |
ZCL_<area>_<noun> BADI Implementation classes are autogenerated (ZCL_IM_<BADI Implementation>) and therefore considered valid |
Exception class in the class library |
ZCX_<area>_<speaking> |
Interface in the class library |
ZIF_<area>_<speaking> |
Method name |
Has to begin with a verb. Don’t mix synonyms for the same action |
Events |
<noun>_<participle> |
Method Parameters |
<direction><type>_<parameter name> |
Attribute (Static or Public) |
<visibility><type>_<Speaking> Exception: For exception classes, don’t use any prefix since attributes are also used as method parameters. |
Attribute access |
SET/GET_<attribute name> |
Event handler methods |
ON_<event name> |
Methods that perform type conversions |
AS_<new type> |
Methods that return a Boolean value |
IS_<adjective> |