2008 May 30 5:40 AM
Objective :
Change the data in a Existing row of a table
Problem.
I am unable to change an existing row's data
I think it is in inactivate state
please provide me a solution for my query
thanks
prasad
Objective :
Change the data in a Existing row of a table
Problem.
I am unable to change an existing row's data
I think it is in inactivate state
please provide me a solution for my query
thanks
prasad
2008 May 30 6:42 AM
If you are changing the eixting row of the database table,
try to specify all the key fileds and se the MODIFY statement in the code.
Reward me if this is usefull !!!!
2008 May 30 6:58 AM
Hi,
You have to delete the existing row and add the new one.
You can do easily using SM30 for this you have generate the Table Maintainance.
Or you can do it using the program, read the data and using the modify statement you can do it..
regards,
mahantesh
Edited by: Mahantesh Patil on May 30, 2008 7:58 AM
2008 May 30 7:06 AM
hi,
you can change from se11
firstle check is the table in display or change mode. if in display goto change mode
after you display the values check the check box by the side of the row you want to change and press change(f6) you can change values except the primary key values
or if you have TMG you can do the same from sm30
you can write a cusrtom program and change the values using modify statement
if you want to change the primary key values you must delete rhe row and enter new row thats only way
reward if helpful
prasanth
2008 May 30 7:31 AM
Hi,
Possible reasons could be:
1. As you said the table whose records you are trying to modify the data, may be inactive.
2. We will not be able to change the contents of a table if the table view maintenance is not specified as display/maintenance allowed.
So check for these points.
3. If you dont find any problem with the table view maintenance, then check for your code whether you have used the modify statement specifying all the key fields.
Regards
Sayee
2008 May 30 9:43 AM
hi lakshmi prasad,
are you trying to change data of an existing row of a n internal table in a report.
then comment the MODIFY statement line and then activate the report.
then once again uncomment the MODIFY statement and use it like
MODIFY internal tabel from Work are transporting <MATNR> - if you are modifying MATNR field.
Hope this will resolve your problem or do explain us in more detals where exactly you are facing the problem.
Encourage others in answering your queries by suitably rewarding them
Thanks
Venugopal
2008 May 30 12:38 PM
use update statement with where condition on active database table..
2010 Jun 08 7:32 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |