SAP Certification
SAP Download
SAP Companies India
SAP Books
SAP JOBS
SAP jobs in India
SAP ABAP jobs in India
SAP BASIS jobs in India
SAP BI jobs in India
SAP CRM jobs in India
SAP FICO jobs in India
SAP Fresher jobs in India
SAP HR jobs in India
SAP MM jobs in India
SAP PM jobs in India
SAP PP jobs in India
SAP SD jobs in India
SAP XI jobs in India
|
STATICS is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details.
Show Full Details
STATICS
Variants
1. STATICS f. 2. STATICS f(len). 3. STATICS: BEGIN OF rec, ... END OF rec. 4. STATICS: BEGIN OF itab OCCURS n, ... END OF itab.
Effect The
STATICS statement is a variation of the DATA statement. It allows you
to define variables in a procedure (i.e. a FORM or FUNCTION ) with
local visibility, but static validity.
Static validity means
that, unlike normal local variables, the life of static variables does
not depend on the defining procedure, but on the program at runtime.
Static variables are thus not redefined on the stack each time the
defining procedure is called, but exist independently of this in the
program and keep their value, regardless of calls to the defining
procedure.
Like all other data objects , static variables always
have a particular data type. Data types and data objects are important
components of the ABAP/4 type concept .
Example
DATA RESULT TYPE I.
PERFORM RANDOM CHANGING RESULT.
FORM RANDOM CHANGING P_RESULT TYPE I. STATICS L_STATE TYPE I. L_STATE = ( L_STATE * 113 + 34 ) MOD 256. P_RESULT = L_STATE. ENDFORM.
Show Most Readed SAP Tutorials
Most readed SAP Tutorials
Show Latest Added SAP Tutorials
Latest Added SAP documents
|
"Site covers most of the SAP technical and functional tutorials, articles, interview questions and PDF study materials . List and details of SAP transaction codes ( tcodes ), Tables, report names, Bapi, ABAP programming syntax and keywords are also available in the site.
Information on SAP Certification and training, latest SAP jobs in India, ABAP interview questions are useful for SAP professionals seeking for a career in SAP as a fresher or experienced.ABAP tutorial downloads on BDC, LSMW, BAPI, ALE, IDOC, Smartforms, Sapscripts etc etc are also added.Now you can read from this page about STATICS ( SAP ABAP Keyword)" |