Get Example source ABAP code based on a different SAP table
ID CONSTANTS • CONSTANTS ABAP Statement
CONSTANTS> Short Reference >
ABAP_SYNTAX CONSTANTS const $[options>$].>
What does it do? This statement declares a constant data object or a constant const > for short. Its content cannot be changed at runtime of an ABAP program. It can only be used as an operand in read positions> of ABAP statements. Constants declared in the declaration part of a class or an interface belong to their static attributes>. The naming conventions> apply to the name const>. The syntax of the additions options> of the statement CONSTANTS> for declaring constants matches the statement DATA>> for declaring variables. Only the additions READ-ONLY>> and BOXED>> BEGIN_SECTION VERSION 5 OUT , and declarations of LOB handle structures> END_SECTION VERSION 5 OUT