Answer Posted / sudhir kumar
Basically there are 3 methods of creating the internal table which are used frequently, are as following:
1) for ex.
data: it_mara type table of mara.
note: after type table of, always a structure is used.
hence, here we call it structure mara not table mara.
and one thing more, here we can use like table of . but
it is not recommend. it is mostly used method.
2) for ex.
data: it_mara type mara occurs 0.
it means it_mara is a internal table of type mara.if we
write:
data: it_mara type mara occurs o with headerline.
it means there will be a internal table and a workarea
with the same name i.e. it_mara. hence it will little
confusing.
3) tables mara.
data: it_mara like mara occurs 0.
here, with the help of first statement, a workarea will be created with the name of mara and second statement will crate internal table with the name of it_mara. This is also little confusing because we mara is also of database table name and here it is also name of work area.
for exe.
select *
from mara
into mara.
hence, first method is most suitable and it should be used.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Can you create an internal table dynamically?(at run time)
what is the purpose of BAPI BAPI_CUSTMATINFO_GETLIST What is input and output of this BAPI.
What is “call mode”?
In select-options, how to get the default values as current month first date and last date by default?
Can you delete data element, which is being used by table fields. : abap data dictionary
1)can any body tell the transport request number concept and 2)there are 3 screens in one screen u have uploaded the resume and second screen also u have done the same thing but when u are uploading the resume in third screen u got some error in somewhere else but whatever u have uploaded the resume in 1 and 2 should not
What are the differences between interactive and drill down reports?
What is the different type of projects? : sap abap hr
Difference between sy-tabix and sy-index?
Differentiate database index and match code.
What is the use of the statement leave to list-processing?
Explain about drill down report?
what is diff between idocs,bdc,rfc and bapi. give real time answer
What is the function of a domain?
What is the significance of the screen number ‘0’?