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 is the sap abap?
What is the use of table maintenance allowed?
what is the process of creating quotation using BAPIs.
What are the two levels in defining a match code? : abap data dictionary
What are your ways to performance optimization?
What do you mean by transparent tables in sap abap? : abap data dictionary
How do you send files to the legacy systems from sap and vice versa? How does one know that the legacy files have come on to the sap server you are working on? : abap bdc
Hi guy.. i have to face an interview in a couple of day.. so can you please give me some good and tough question on abap.
What are the fields in a bdc_tab table? : abap bdc
What is ole?
I am trying to automate a manual processing of iDOCs in BD87. I used the following code to pass idoc-id to global variable 'DCN' and then skip the first screen of BD87 to go to processing directly. After running this code SET PARAMETER ID 'DCN' FIELD itabhdr-idoc_id. CALL TRANSACTION 'BD87' AND SKIP FIRST SCREEN. it takes me to the first screen because it cannot recognize my idoc-id. How I can pass idoc-id to global? I have used the above code to goto VA02 with VBELN and it worked perfectly.
What is the different type of projects? : sap abap hr
What are internal tables? How to use a specific number occurs statement?
How are BAPI different from Normal function modules ?
What is the basic difference internal tables and database tables? : abap data dictionary