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
How do you set up background jobs in sap? What are the steps?
What actually happens in real-time recruitment? : sap abap hr
What are the parameters in bdc_insert? : abap bdc
what are the important fields while preparing sales order,inquiry?
Difference between sap script and report?
there are 2 selection screens. material num in screen 200 and plant in screen 300. so how can you write in INITIALISATION event?
Explain the different types of screen keywords?
What is the difference between bdc_open_group and bdc_open_dataset. : abap bdc
What are the page headers for secondary lists?
What is open sql?
In the MM module for finding out the standard cost what is the view one has to look at?
What should be declared explicitly in the corresponding abap/4 statements to access internal tables without header lines & why?
Define abap/4 layer?
Can we handle two transaction codes in the same program using call transaction bdc input method? : abap bdc
if while coding power goes off , how to retrieve the codes?