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 |
Can anyone done BDC/LSMW/BAPI for F-02 and F-04.If yes let me know the processs
26) Explain the Importance of each type of window in scripts?
What is the difference between view and table ?
13 Answers Deloitte, Renault Nissan,
what is the difference between user-exit & customer-exit?
4 Answers Cap Gemini, IBM, ITC Infotech, LGB, NTT Data, Sony, TCS, Tech Mahindra,
Difference between BDC vs Direct Loads?
How to combine multiple order in one Delivery ( Step by Step)?
in the final display list how can i change rows to columns and vice versa
What are the advantages and disadvantages of ABAP query tool?
Can you assign a matchcode object to a parameter? If so how?
How can you distinguish between different kinds of parameters?
what is difference between value table and check table?
If yes then why do we require logical database