‎2009 Jul 01 9:26 PM
HI ,
there is a way to update internal table ,i.e that the field that dnot changing do do anything and update the field i am changing,
when i try to update the internal table i get error that the table is not in the DDIC ,
the modify is update all the fields so i don't know if this is the best idea.
any other idea?
Br
Michael
‎2009 Jul 01 10:25 PM
UPDATE statement is for updating DB tables. You don't want to use that; you should use MODIFY instead.
MODIFY statement can be used to update DB table as well as internal table. It depends on how you use the MODIFY statement. Read help on MODIFY and it should help.
If you want to update only certain fields of the internal table, look at the TRANSPORTING option of MODIFY statement.
‎2009 Jul 01 10:04 PM
I think your best bet is to use the SAP Help for starters or even searching this Forum. Look at what Internal Tables are and how they are used and also look at the UPDATE/MODIFY Statements as well in the Help. You should be able to find your answer from there. Just looking at the error message alone should give you a clue as to what direction you should be looking at or not looking at.
‎2009 Jul 01 10:25 PM
UPDATE statement is for updating DB tables. You don't want to use that; you should use MODIFY instead.
MODIFY statement can be used to update DB table as well as internal table. It depends on how you use the MODIFY statement. Read help on MODIFY and it should help.
If you want to update only certain fields of the internal table, look at the TRANSPORTING option of MODIFY statement.
‎2009 Jul 01 10:34 PM
Hi,
To modify the entry in the internal table. You can use the following method
MODIFY Internaltable From workarea INDEX SY_TABIX.
i hope it will help you.
‎2009 Jul 01 10:44 PM
Asking how to modify the contents of an internal table is an extremely basic question.
Rob