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

hi all, append,

Former Member
0 Likes
778

hi all

what i was asking in previous question was completely different.

i know how to use append statement, but i am not sure when to use it. i.e. what happens when u do not use append and what happens when it is used or what situation i have to use append and what situation i do not have to use. i.e. inside loop, inside select, inside read, inside move etc.

rocky robo

9 REPLIES 9
Read only

Former Member
0 Likes
758

Hi ,

The purpose of append is to insert record into an internal table.

Now if you do not have a similar entry in internal table use append else use modify.

And please close your previous thread.

Reagrds

Arun

Read only

Former Member
0 Likes
758

YOu should not use and append for the same internal table when you are looping it, which makes it an indefinite loop.

In all other cases, you can use it. It just adds a record to an internal table at the end.

Regards

Ravi

Read only

Former Member
0 Likes
758

Hi Rocky,

If you want to add a record to the internal table then you can use APPEND. You can use in Loop, read or even select and end select.

Reward Pointa if it is helpful.

Reagrds,

Kiran I

Read only

Former Member
0 Likes
758

Hi

Append command is used to insert a new record in to an internal table.

Regards

Haritha.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
758

Hi,

Append is used to insert the record at the end of internal table.

Let us assume

wa is the workarea and you filled workarea with values.

If you are appending wa to internal table,there is possiblity of loss of data.If the program encounters statement such as clear wa,it will clear the contents.If you use the same wa again without appending in internal table,the data in wa will be overwritten.You will lose previous data.That is the reason we are appedning.

You can append wa to internal table normally in loop,depending upon the requirement.

Read only

Former Member
0 Likes
758

CAN ANY ONE TELL ME, WHEN APPEND WILL FETCH SINGLE RECORD AND WHEN MULTIPLE RECORDS.

THANX

Read only

0 Likes
758

Hi ,

Append never fetches a record , it is used to insert a record and not to read a record.

Regards

Arun

Read only

0 Likes
758

GOOD, BUT WHEN IT INSERT SINGLE RECORD AND WHEN MULTIPLE.

THANX

Read only

0 Likes
758

Hi ,

In general case it inserts from a work area so it inserts only one record.

<b>insert wa into table itab.</b> : only one line is inserted.

the case where it inserts muliple line is

<b>insert lines of it1 into table it2.</b> here the content so internal table it1 is appended to table it2. The basic prerequist is that it1 and it2 must have same structure.

Reagrds

Arun

  • Reward with points if found helpful