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
What is interactive reporting?
Some Realtime Objects on Bdc.
How to create any functions?
write a program for creation of customer quotation using BAPI 'BAPI_QUOTATION_CREATEFROMDATA'.
Which function module would you use to check the user’s authorization to access files before opening a file?
What are the parameters in bdc_insert? : abap bdc
What is the use of the raising exception?
What are uses of foreign key?
What is the significance of hide?
What are number ranges?
What are the update types possible? : abap data dictionary
While doing bdc exp va01 transaction sometime in the item level data shows only 4 items and other times it will show 6 line items, how will you maintain this kind of screen resolutions scenerio? : abap bdc
What is roles and responsibilities of sap hr consultants? : sap abap hr
What are the major steps will you use for tuning?
Explain the disadvantage of using exec sql statement in abap?