2) What is the difference between TYPE and DATA?
Answers were Sorted based on User's Feedback
Answer / bharath
TYPE: is used to define new data types and will not occupy
any memory space.
DATA: is used to define the variables representing the
exisitng data types. and will hold the memory space.
Type: var1 type c.
DATA: def type var1.
Is This Answer Correct ? | 14 Yes | 1 No |
Answer / chaitra
Types are definitions, i.e they do not hold memory space.
They cannot be used directly as variables, they have to be
declared before using in the code.
Data are declaration, i.e they hold memory space. They can
be used directly as variables in the code.
Ex :
Type : a type C.
DATA : b type C.
now, b can be directly used in the code directly eg:
IF b is initial .
...
ENDIF.
But 'a' cannot be used, as it is just a definition, it has
to be declared before being used.
DATA: x type a.
Now x is of type a and occupies memory space and can now be
used in the program.
Regards
Is This Answer Correct ? | 8 Yes | 0 No |
please give the remaining answers.
Commonly used tables in MM and SD?
What is the max no of match code id’s that can be defined for one match code object?
list the important field symbol?
how to stretch the report size in standard tool bar.
Static and instance variable and method with live example. Why and when to use
what is text symbol and standard symbol?
variant attached in the report. can be transportable from one server to another server
What are the commands for BDC to pass specified values directly to a Batch Input Session..?
How can we access the correction and transport system?
Have you set up a back ground job ? How to create a background job without a variant ?
what is the use of FOR ALL ENTRIES in an internal table?
9 Answers Keane India Ltd, PCS, Wipro,