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
What are the check tables?
Explain the advantages and disadvantages of different types of bdc's?
What are the advantages and disadvantages of different types of bdc's?
A field-groups statement or an insert statement reverses storage space and transfers values. State true or false. : abap modularization
what is code to upload cost centers through call trans. and procedure
Hi, I have a requirement for locking the fax field in user master records. As you know user can edit the details using the System>profile>own data (SU3), it is causing some security threat to our model. What i want is users should not be able to change the fax field under communications when they get into su3.I have heard of user Exist functionality but don't know how to implement it. Can you suggest something, it will be greatly appreciated.
Can we access static attribute from instance method
foreign key enforcement?
What are the advantages of logical databases : abap hr
A subroutine can contain nested form and endform blocks. State true or false. : abap modularization
What are screen painter and menu painter? : abap hr
What are the basic objects of the data dictionary?
How to debug rfc function module?
Structures can contain data only during the runtime of a program (t/f) : abap data dictionary
What is the difference between call transaction method and the session method? : abap bdc