Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

append

Former Member
0 Likes
589

why do we use append?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
570

APPEND line_spec TO itab [SORTED BY comp] [result].

This statement appends one or more rows line_spec to an internal index table itab. If itab is a standard table, you can use SORTED BY to sort the table in a specified way. Use result when appending a single row as of release 6.10 to set a reference to the appended row in the form of a field symbol or a data reference.

For the individual table types, appending is done as follows:

To standard tables, rows are appended directly and without checking the content of the internal table.

To sorted tables, rows are appended only if they correspond to the sort sequence and do not create duplicate entries with unique table key. Otherwise, an untreatable exception is triggered.

To hashed tables, no rows can be appended.

The APPEND statement sets sy-tabix to the table index of the last appended row.

Thanks

VIjay

<b>PLZ reward points if helpful</b>

5 REPLIES 5
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
570

Hi

To append 1 record in the end of the Internal Table, we use APPEND statement.

<b>Append Workarea to Internal Table .</b> is the syntax.

Regards,

Sree

Read only

Former Member
0 Likes
570

append is used to insert the new line (record) exactly below the last inserted record.

insert it used to insert the record at specific location by row or by any other condition..

for more information

write

APPEND in your ABAP editor and place cursor on it and then press F1...

Reward if it is useful.

Thanks & Regards

ilesh 24x7

Read only

former_member194152
Contributor
0 Likes
570

HI,

FOR POPULATING INTERNAL TABLE WITH DATA WE HAVE TO USE APPEND STATEMENT.

rEGARDS

gAGAN

Read only

Former Member
0 Likes
571

APPEND line_spec TO itab [SORTED BY comp] [result].

This statement appends one or more rows line_spec to an internal index table itab. If itab is a standard table, you can use SORTED BY to sort the table in a specified way. Use result when appending a single row as of release 6.10 to set a reference to the appended row in the form of a field symbol or a data reference.

For the individual table types, appending is done as follows:

To standard tables, rows are appended directly and without checking the content of the internal table.

To sorted tables, rows are appended only if they correspond to the sort sequence and do not create duplicate entries with unique table key. Otherwise, an untreatable exception is triggered.

To hashed tables, no rows can be appended.

The APPEND statement sets sy-tabix to the table index of the last appended row.

Thanks

VIjay

<b>PLZ reward points if helpful</b>

Read only

Former Member
0 Likes
570

Hi

Append statement is used to add the data from default header area into body area of an internal table. While adding the records, this statement will not verify whether the record is already existing or not. Even the record already exists... The new record will be added again.

Append --> simply appends/adds the current record u are working on (in the workarea) at the end of the internal table. ....

but collect will check all the fields of that record till the numberic field in the internal table body and just adds the numeral to the numeral of the work area and modifies the internal table

<b>Reward if usefull</b>