Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

naming convention for flags in table

Former Member
0 Kudos

I happen to create a lot of custom tables that have a field thats a flag. So I can use this flag field in my custom programs.

What is the naming convention for flag fields.

Here is an example of a table

mandt

lgort

flag

and then in the code

if flag = 'X'

display description of storage location

endif.

I dont want to leave the name of the field as flag as its too generic. Do you folks using a naming convention for such situations. Thank you.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Usually name the flag as per logic, so other developers can understand your code.

for example:

emp_chk type flag
lgort_chk type flag

-Aman

1 REPLY 1

Former Member
0 Kudos

Usually name the flag as per logic, so other developers can understand your code.

for example:

emp_chk type flag
lgort_chk type flag

-Aman