difference between append and collect statement?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / aditya
append adds to end of the internal table, irrespective if
the same data was present or not.
collect doesnt add duplicate records as it searches for the key.
Is This Answer Correct ? | 7 Yes | 3 No |
Answer / chvpavankumar
append adds the recoed to table body
collect first search for the non numeric fields.if it same
adds the numeric values
Is This Answer Correct ? | 3 Yes | 6 No |
Answer / sainath
Append statement appends the contents of the header line at
the end of the internal table.
The Collect statement includes the header line of the
internal table in the table as the new entry or adds it to
the existing entry of the same type.
Is This Answer Correct ? | 0 Yes | 9 No |
3 types of buffering techniqes. 1.bufering not allowed 2.buffering swithed on 3.buffering not allowed but switced on what does it means?
Explain the differences between interactive and drill down reports?
How to deactivate the sort button from the alv output
What are the sequences of event block?
How do you read the data from clusters
What two statements would be used to exchange data between programs using abap memory?
What are smart forms?
Tcode for SNIP?
What is difference between dialog program and a report?
6. wat is pf status interactine report?
WHAT IS COMPOSITE KEY??
In a transaction there are 5 screens (say) but while recording you could see only 3 screens.what will u do to avoid such situation?will u save it like that?