When we learn ABAP, we are taught a series of rules on how to name variables. Not everyone uses the same rules but, still, some strict rules are shared between many people:
-
Local variables must start with L: L_BUKRS;
-
Global variables must start with G: G_MODE;
-
Internal tables must have T_: LT_MARA;
-
Structures must have S_: LS_MARA;
-
Object references must have R_: R_CUSTOMER;
-
input parameters must start with I, output with O, changing with C and returning with R.
-
And the most stupid of all, field-symbols must start with FS_: <FS_MARA>.
In the early XXI century those rules made some sense (except for the field-symbols on, which was, and still is, as stupid as writing ‘pencil’ in all our pencils). Today they don’t make much sense anymore. Let me explain.