InterviewSolution
| 1. |
What Is The Difference Between Collect And Sum? |
|
Answer» COLLECT allows you to create unique or summarized datasets. The system first tries to find a table entry corresponding to the table key. The key values are taken either from the HEADER line of the INTERNAL table itab, or from the explicitly-specified work area. If the system finds an entry, the NUMERIC FIELDS that are not part of the table key (see ABAP NUMBER types) are added to the sum total of the existing entries. If it does not find an entry, the system creates a new entry instead. COLLECT allows you to create unique or summarized datasets. The system first tries to find a table entry corresponding to the table key. The key values are taken either from the header line of the internal table itab, or from the explicitly-specified work area. If the system finds an entry, the numeric fields that are not part of the table key (see ABAP number types) are added to the sum total of the existing entries. If it does not find an entry, the system creates a new entry instead. |
|