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 |
Explain the advantages and disadvantages of abap query tool?
1.If there is one receiver,then To send 10 materials at a time through BD10 tcode, How many Master Idoc create? 2.If there is one receiver,then To send 1 material at a time through BD10 tcode, how many Master Idoc generated? 3.Can I Send Multiple Messges through BD10 tcode?
when we create a simple report with input field as S_VBELN (as select-options)..for any range of values it is displaying the output...i dont want like that..only the existing ranges it must be displayed...for ex. in sales ranges from 4969...but in input from 1 to z also displaying..please send me the solution
please clear this what is the diff b/w select single * and select up to 1 row?
Explain the properties of selection screen?
What are the domains and data elements?
What are the two different ways of building a match code object? : abap data dictionary
How can we set the table spaces and extent sizes? : abap data dictionary
layout conversion?
What is meant by hotspots?
How to Search for User-exits for a particular Transaction?
How did you handle errors in Call Transaction?