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 |
How to define PROJECT in CMOD?
Define database layer? : abap data dictionary
how to track records from data dictionary?
What are the errors occurred in a report?
if i login in english then top-of page will display in english.if i login in german then it will display in german as on .. abap report how.........
Where the data captured data is stored in ALV Interactive Reports using usercommand?? I_callback_usercommand
when u create an index in Data Dictionary..how do we call it in a program or report..?
Would WS_UPLOAD function module work if the BDC is run in Background? If yes explain, If no explain?
how to transport query?
What is logo in sap script?
What are the program names for logical database PNP and PNPCE
what are conversion routines