Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all articles
Browse latest Browse all 10425

Re: declarations of constants

$
0
0

Hi Raghava,

    

               You dont have to include constants in a DATA declaration. Instead use CONSTANTS.

The syntax is

 

CONSTANTS lc_con(20)  Value 'Confirmation'.

 

System automatically considers it as a Character type.

The best practice is to create a Class with all constant variables needed. Make all those variables as Static and access it like

 

ClassName=>ConstantName.

You can access this everywhere in your program


Viewing all articles
Browse latest Browse all 10425

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>