Searchable keywords: naming, local_variable_names, method_parameter_names,
prefix, lv, lt, ls, lo, li, lx, iv, it, is, io, rv, rs, rt, ro
This project enforces type-specific Hungarian notation via local_variable_names
and method_parameter_names in .abaplint.json.
Variable Naming — Required Prefixes
Local Variables (inside methods)
Prefix
Type
Example
lv_
Scalar / value (i, string, char, …)
lv_count TYPE i
lt_
Internal table
lt_files TYPE ty_files
ls_
Structure
ls_result TYPE ty_result
lo_
Object reference
lo_agent TYPE REF TO zcl_abgagt_agent
li_
Interface reference
li_repo TYPE REF TO zif_abapgit_repo
lx_
Exception reference
lx_error TYPE REF TO cx_static_check
lr_
Data reference
lr_data TYPE REF TO data
lc_
Constant
lc_max TYPE i VALUE 100
Field-Symbols (inside methods)
Prefix
Example
<lv_>, <lt_>, <ls_>, <lo_>, <li_>
FIELD-SYMBOLS <ls_item> TYPE ty_item
<comp>
Allowed for generic component iteration
Method Parameters
Direction
Prefix
Type
IMPORTING
iv_
scalar
IMPORTING
it_
table
IMPORTING
is_
structure
IMPORTING
io_
object ref
IMPORTING
ii_
interface ref
IMPORTING
ix_
exception ref
RETURNING
rv_
scalar
RETURNING
rs_
structure
RETURNING
rt_
table
RETURNING
ro_
object ref
RETURNING
ri_
interface ref
RETURNING
rr_
data ref
EXPORTING
ev_, es_, et_
scalar / structure / table
CHANGING
cv_, cs_, ct_
scalar / structure / table
Quick Reference
" Local variablesDATAlv_nameTYPEstring.DATAlt_filesTYPEty_files.DATAls_resultTYPEty_result.DATAlo_agentTYPEREFTOzcl_abgagt_agent.DATAli_repoTYPEREFTOzif_abapgit_repo.DATAlx_errorTYPEREFTOcx_static_check.FIELD-SYMBOLS<ls_item>TYPEty_item." Method signatureMETHODSprocessIMPORTINGiv_urlTYPEstringit_filesTYPEty_filesis_configTYPEty_configio_agentTYPEREFTOzcl_abgagt_agentii_repoTYPEREFTOzif_abapgit_repoRETURNINGVALUE(rv_result)TYPEstring.METHODSget_repoRETURNINGVALUE(ro_repo)TYPEREFTOzcl_abgagt_agent.
Rule: Never Use Generic lv_ for Objects, Tables, or Structures
" WRONG — abaplint will flag theseDATAlv_repoTYPEREFTOzcl_abgagt_agent." use lo_DATAlv_filesTYPEty_files." use lt_DATAlv_resultTYPEty_result." use ls_" CORRECTDATAlo_repoTYPEREFTOzcl_abgagt_agent.DATAlt_filesTYPEty_files.DATAls_resultTYPEty_result.