‎2007 Jan 10 2:49 PM
Hi ,
I would like to update a record in a table...
Please help me.
‎2007 Jan 10 2:52 PM
Hi
Which table? Intenal or dictionary table?
- Internal table
LOOP AT ITAB.
MODIFY ITAB.
ENDLOOP.
- Dictionary
SELECT * FROM <TABLE>.
MODIFY <TABLE>.
ENDSELECT.
Max
‎2007 Jan 10 2:56 PM
CHK THIS FROM sap HELP
PARAMETERS p_carrid TYPE scarr-carrid.
DATA scarr_tab TYPE SORTED TABLE OF scarr
WITH UNIQUE KEY carrid.
DATA: idx TYPE sy-tabix,
scarr_wa TYPE scarr.
SELECT *
FROM scarr
INTO TABLE scarr_tab.
READ TABLE scarr_tab
WITH TABLE KEY carrid = p_carrid
TRANSPORTING NO FIELDS.
idx = sy-tabix.
scarr_wa-currcode = 'EUR'.
MODIFY scarr_tab INDEX idx FROM scarr_wa
TRANSPORTING currcode.
‎2007 Jan 10 9:46 PM
Hello Sathya,
If u want to update a database table u can use any one of the Command.
Insert - Inserts a new record to the table
Modify - Modify already existing record mainly thro internal table
Update - Update already existing record mainly thro work area
If useful reward
Vasanth