Hello Rajesh
The strict answer is: no, they are different. However, they share things in common.
That's what the SAP documentation says about STATICS:
Local" target="_blank">http://help.sap.com/saphelp_erp2005/helpdata/en/9f/db982c35c111d1829f0000e829fbfe/content.htm">Local Data in the Subroutine
<b>Static Local Data Objects</b>
<i>If you want to keep the value of a local data object after exiting the subroutine, you must use the STATICS statement to declare it instead of the DATA statement. With STATICS you declare a data object that is globally defined, but only locally visible from the subroutine in which it is defined.</i>
Class-data are also globally defined yet they are valid everywhere within your class. That is different from local static variables that are only visible within the FORM routine where they are declared.
Regards
Uwe
Add a comment