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 will you define org structure in MM?
What is a maintenance view? : abap data dictionary
What is amdp (abap managed data procedures)?
Of the two call transaction and session method, which is faster?
I am getting the (first) page number and the remaining records displayed in another list in another page BUT the PAGE Number is not displayed? What is the code/solution?
What are client dependent objects in abap/sap?
How did you transfer legacy data in the mid of the financial year (us) to the sap system? : sap abap hr
What is the difference between collect and sum?
How to Raise a Particular Ticket in Realtime ?
WHAT ARE THE INPUT PARAMETERS TO BE PASSED FOR THE BAPIS 'BAPI_CUSTMATINFO_GETDETAILM' AND 'BAPI_CUSTMATINFO_GETLIST'
How to combine multiple order in one Delivery ( Step by Step)?
Can you print decimals in type n?
Have you worked with support? How ticket comes to you? What were the timings for resolving tickets types of severity?
Define structure in abap data dictionary?
What is static attribute