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 to create hashed tables?and its purpose

Answer Posted / buddula15

Hashed Table:
You can imagine a hashed table as a set, whose elements you
can address using their unique key. Unlike standard and
sorted tables, you cannot access hash tables using an index.
All entries in the table must have a unique key.Hashed table
is useful when your have to work with very big internal
table and to read it with "READ TABLE WITH KEY ..." .

Sample code for Hashed table Creation :
types:
begin of typ_pernr,
pernr like pa0001-pernr,
ename like pa0001-ename,
end of typ_pernr.

data:
ls_pernr type typ_pernr,
lt_pernr type hashed table of typ_pernr with unique key
pernr.
...
select pernr ename into table lt_pernr from pa0001.
...
loop at itab.
read table lt_pernr with table key pernr = itab-pernr
into ls_pernr.
write: ls_pernr-ename, itab-data.
endloop.

Is This Answer Correct ?    19 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the events used in abap in the order of execution?

946


How do you process errors in call transaction method? : abap bdc

1143


How does the interface between the dynpro and the abap/4 modules take place?

964


What is get cursor field?

1361


What is sap abap data dictionary?

1065


Why are insert and append statement used in sap abap?

1107


I need some information regarding Vcentric Test pattern ? with questions.

2101


What is sap luw or update transaction?

998


Differentiate between report and dialog program

1024


What is the disadvantage of a call by reference? : abap modularization

1049


What is partner selection?

1020


What are conversion routines? : abap data dictionary

954


What is size category?

959


Name some data dictionary objects?

937


What are the different modes of processing batch input sessions? : abap bdc

1149