‎2007 Dec 06 11:53 PM
Hi,
I have a general question.
How do we update the custom table through ABAP. Like any database, just using update statement, we can update custom table. Because I need to do some update to the custom table using ABAP. Please let me know the procedure.
Thanks.
‎2007 Dec 07 2:32 AM
Hi,
Yes.You can use update/modify statements.
UPDATE dbtab SET f1 = value1 where condition.
UPDATE dbtab FROM TABLE itab.
Here from itab internal table, you can update the ztable.
But if you are not sure wherether the particular record exists in ztable,you can use modify statement. It will insert the record if it is not there already.If record exists in ztable,it will update the record.
Modify dbtab from table itab.
‎2007 Dec 07 12:29 AM
Deepan,
If you need to get the data from some other tables and have to update the ztable then you can go with program by writing Insert/Modify/Update statements.
Otherwise just maintain the table maintanance generator and Create the entries from SM30 Transaction.
Regards,
Satish
‎2007 Dec 07 2:09 AM
You may do it like this :
UPDATE ztable SET column_a = 'abc'
column_b = column_b + '55'
WHERE column_a = 'test'.
‎2007 Dec 07 2:32 AM
Hi,
Yes.You can use update/modify statements.
UPDATE dbtab SET f1 = value1 where condition.
UPDATE dbtab FROM TABLE itab.
Here from itab internal table, you can update the ztable.
But if you are not sure wherether the particular record exists in ztable,you can use modify statement. It will insert the record if it is not there already.If record exists in ztable,it will update the record.
Modify dbtab from table itab.