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...

difference between append and collect statement?

Answer Posted / sravan

APPEND statement adds the record to the internal table
body.We can't say it adds the new record at the end of the
internal table. It all depends on the type of the internal
table (standard,sorted or Hashed).
COLLECT statement searches for the data in the char type
fields and adds the numeric value.

eg.
if itab contains fields f1 and f2 f1 of char type and f2 of
numc type.
if itab contains data like this.
f1 f2
A 5
b 30
c 10

if we give collect stament like collect itab ( A and 15 as
values)

the data in the itab will become.
f1 f2
A 20
b 30
c 10


this is how it works

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to creat transactions? : abap data dictionary

1084


What is an internal table?

1158


Explain difference between primary key and unique key?

965


What are the events we use in dialog programming and explain them?

989


To how many tables can an append structure be assigned. : abap data dictionary

1055


How to write a code in tab control? : abap bdc

1109


What are the different types of data dictionary objects? : abap data dictionary

1088


What is a transport?

1079


What is the function of a data element? : abap data dictionary

1037


Can you give the Example for the structure of an ABAP program? REPORT... NODES: SPFLI, SFLIGHT. DATA:... INITIALIZATION. AT SELECTION-SCREEN. START-OF-SELECTION. GET SPFLI... GET SFLIGHT... GET SPFLI LATE. END-OF-SELECTION. FORM... ENDFORM.

1072


What is a size category?

1083


What are the aggregate objects in the data dictionary? : abap data dictionary

1498


What is a subroutine?

1019


What is a report?

1213


What are the different software packets available in the market? : sap abap hr

1072