08-11-2008 5:05 PM
08-11-2008 5:08 PM
Global variables are variable which are accessible every where inside with in the program.
REPORT ZTEST.
data: var type c. "this is global variable.
perform get_data.
form get_data.
data: loc type c. "local variable.
"
write var. "accessing global variable
endform.
08-11-2008 5:10 PM
Hi,
Global variables are those which can be accessed from any place of the progam.
You can Declare it with the Keyword DATA.Like-
Data: w_variable type i.
But if you declare it inside Form ....Endform i.e then it becomes local variable and you can not access it outside the subroutine.
Regards,
sujit
08-11-2008 5:33 PM
Interview questions => threads deleted and points removed.
PS @ everyone: If you see someone spamming interview questions, please report it as an Abuse and do not provide answers which a simple search could have found anyway if used.
Bobby already had 2 warnings:
[What happens when MARA is deleted from the database?|;
[How many phases in a project?|;
Edited by: Julius Bussche on Aug 11, 2008 4:38 PM