‎2006 Dec 08 12:06 PM
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
‎2006 Dec 08 12:09 PM
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
‎2006 Dec 08 12:11 PM
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
‎2006 Dec 08 12:12 PM
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
‎2006 Dec 08 12:13 PM
Hi
Append command is used to insert a new record in to an internal table.
Regards
Haritha.
‎2006 Dec 08 12:18 PM
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.
‎2006 Dec 08 12:22 PM
CAN ANY ONE TELL ME, WHEN APPEND WILL FETCH SINGLE RECORD AND WHEN MULTIPLE RECORDS.
THANX
‎2006 Dec 08 12:24 PM
Hi ,
Append never fetches a record , it is used to insert a record and not to read a record.
Regards
Arun
‎2006 Dec 08 12:59 PM
GOOD, BUT WHEN IT INSERT SINGLE RECORD AND WHEN MULTIPLE.
THANX
‎2006 Dec 08 1:04 PM
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