What is the difference between Collect statement and Append
Statement?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / sagi.nagamani
collect : it gives the summarized record if all the
character fields of the work area matches with all
character fields of any record of the table body then it
adds its numeric fields .if not matched then it inserts it
as anew record.
append: it appends or inserts the record into the table
body as last record .
Is This Answer Correct ? | 15 Yes | 3 No |
Explain the different types of mode (run code) in call transaction method?
what is index? I need exact defination? how will create a secondary index?
what are the events in lsmw?
i have a requirement that design window in layout of smartforms but when we print smartforms window should not be printed?
while creating table in ECC 6.0,it'll ask for enhancement Catagory?What is that?
i want to print 1 tp 100 in sapscript in a single page in a vertical manner 1 6 2 7 3 8 . . . . how will i do it
what is an internal table and types of internal table
what is the work of buffer in sap ?
What are the domains and data elements?
what is inline documnetation?
What is the difference between macro and subroutine?
Which method of BDC’s would u apply ? Session or call transaction ? why ? Which is more good ? Its advantages ?