Answer Posted / 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 |
Post New Answer View All Answers
How to creat transactions? : abap data dictionary
What is an internal table?
Explain difference between primary key and unique key?
What are the events we use in dialog programming and explain them?
To how many tables can an append structure be assigned. : abap data dictionary
How to write a code in tab control? : abap bdc
What are the different types of data dictionary objects? : abap data dictionary
What is a transport?
What is the function of a data element? : abap data dictionary
Can you give the Example for the structure of an ABAP program? REPORT... NODES: SPFLI, SFLIGHT. DATA:... INITIALIZATION. AT SELECTION-SCREEN. START-OF-SELECTION. GET SPFLI... GET SFLIGHT... GET SPFLI LATE. END-OF-SELECTION. FORM... ENDFORM.
What is a size category?
What are the aggregate objects in the data dictionary? : abap data dictionary
What is a subroutine?
What is a report?
What are the different software packets available in the market? : sap abap hr