2) What is the difference between TYPE and DATA?
Answer Posted / 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 |
Post New Answer View All Answers
What are matchcodes?
What does the extract statement do in extract datasets? : abap modularization
What are conditional chain statement?
What are two methods of modifying sap standard tables? : abap data dictionary
What are the function module in bdc?
Explain about interactive report?
What are th control break events in abap?
How to debug rfc function module?
How to write a code for multiple transactions? : abap bdc
What is the differrences between structure and table in data dictionary in abap? : abap hr
What is erp? : sap abap hr
Explain the different types of view?
Explain the difference between open_form and close_form?
Does the external program run in the same sap luw as the caller, or in a separate one?
Specify the types of data dictionary objects.