What is Constants Statement
Monday, June 30th, 2008A constant is almost identical to a variable except that its value cannot be changed. To define one, you use the constants statement.
Use a constant when you need to include the same literal multiple times in a program. You can define a constant with the same value as the literal and use the constant in the body of the program in place of the literal. Later, if you need to change the value of the literal, you can simply change the value of the constant, causing its value to be updated wherever it is used in the program.
ABAP/4 has one pre-defined constant: SPACE. It is a constant having a value equal to spaces. You can use it in place of the literal ‘ ‘.
Syntax for the CONSTANTS Statement (more…)
Popularity: 4% [?]