What is the difference between Collect statement and Append
Statement?

Answer Posted / anu

Append adds the record at the end of internal table.
Collect sums up the numeric fields of the records whose
primary keys are equal and adds it as a single record i.e
To fill an itab with lines which have unique standard keys
we use collect statement.If an entry with the same key
already exists,the collect statement does not append a new
line as append statement but adds the contents of the
numeric fields in the work area to the contents of the
numeric fields in the existing entry.

Is This Answer Correct ?    32 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why to create a custom BAPI if the BAPI already exists? y to find BAPI again? frankly even i dint undstnd tne question properly. if any one come across this q please do anser me.

1717


How do you find the information on the current screen?

592


Can we use transfer dataset to transfer data in internal table ?

1634


What is your approach to find exit and BAdi?

861


What is Transactional based Application & Role based Application?

1038






How can you display frames (horizontal and vertical lines) in lists?

605


When will the current screen processing terminates?

539


Is it possible to pass data to and from include programs explicitly?

579


How to find Kernal badi ?

1147


What are the dynamic actions and how to configure it? : sap abap hr

575


What takes most time in SAP script programming?

673


What is the syntax of packed number?

635


difference between Valuation type and valuation category?

1991


How do you save data in bdc tables? : abap bdc

582


Explain the difference between function group and function module?

558