Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

HOW MANY WAYS TO DEFINE INTERNAL TABLES.

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


Please Help Members By Posting Answers For Below Questions

What is the difference between ABAP and HR ABAP

3592


Explain the Inportance of pa30? : abap hr

1370


Explain how to create any functions?

1149


Do we have to migrate all sapscript forms to smart forms?

1085


What are the classifications of the sap abap data classes?

1132


What is the difference of update types in call transaction method ? : abap bdc

1168


Can you create an internal table dynamically?(at run time)

1929


Why do we use FOR ALL ENTRIES and what is the pre-requisite

1414


What is sequence number

2195


Differentiate screen painter from menu painter.

1065


ABAP : Classical reports events name

1347


When value table becomes check table?

1086


​​What is the symbol to do “concatenation” operation in​​ nw​​ abap​​ 7.4​​ ?

1372


Can i know some of the Realtime tickets that anyone has been faced ?

2171


In sap scripts, how will you link form with the event driven?

993