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 |
what are the built in types in bdc
what is the difference between interface and global diffinations in smartforms?
What are ranges? What are number ranges?
hai iam srinivas. I have done client copy in sccl for 800 client and i have stopped the process in middle unexceptedely and after some time iam unable to login into the client 800. error message is incorect password or inclient username. how to refresh the client or solve the problem. please me out in it.
What are the types of views? : sap abap data dictionary
What is an abap/4 query? : abap hr
How many structures can be created in a Ztable ?
Difference between MACRO and SUBROUTINE ?
Abstract class and interface, multiple inheritance, live example
what objects can be generated by the batch input recorder?
Differentiate between abap memory and sap memory?
What are control commands in sap scripts?