2009 Jan 13 7:47 AM
Hello,
What I would like to do is append a line into an internal table at certain index using a single statement (if possible).
I can use The 3 glasses method to append a new line into an itab at certain index ...but I wonder if ABAP does not have an addition or a statement that does this thing in a single step...
Thank you.
2009 Jan 13 7:52 AM
Three glasses method? There is one statement for insert (NOT AN APPEND), into itab.
INSERT wa INTO itab INDEX index?
This is one single line of code!!!
Hello,
What I would like to do is append a line into an internal table at certain index using a single statement (if possible).
I can use The 3 glasses method to append a new line into an itab at certain index ...but I wonder if ABAP does not have an addition or a statement that does this thing in a single step...
Thank you.
2009 Jan 13 7:50 AM
Hi,
To know what kind of keyword options are avialable:
just use the F1 help in SAP.
Type the keyword in ABAP editor and press F1.
2009 Jan 13 7:52 AM
2009 Jan 13 7:52 AM
Three glasses method? There is one statement for insert (NOT AN APPEND), into itab.
INSERT wa INTO itab INDEX index?
This is one single line of code!!!
2009 Jan 13 7:53 AM
hi,
Populate the data in Itab header.Write an INSERT with index = 1. You will get the data as the first record in Itab.
likewise you can give any index no depending upon where you have to append a line.
Regards,
anand
2009 Jan 13 7:53 AM
hi
you can use the statement APPEND ITAB to append the internal table.like
itab-field = 'Text'.
APPEND ITAB.
hope this helps
regards
Aakash Banga
2009 Jan 13 7:53 AM
You can use following statement
INSERT wa INTO ITAB INDEX w_index.
2009 Jan 13 8:28 AM
1) With APPEND statement one can add row/rows only to the end of an internal tabel.
2) If you wish to add row at any index then use INSERT statement and pass the index value.
2009 Jan 13 8:40 AM
Hello,
APPEND keyword is enough to solve your problem.
read help for this statement.
regards,
sujeet
2009 Jan 13 8:51 AM
Hi ,
You can refer the below link for further details :
http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb36e2358411d1829f0000e829fbfe/content.htm
Regards,
Radhika.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |