Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Modify database table record

Former Member
0 Likes
1,267

Hello,

We want to modify a database table record. We are unable to do this through the standard transaction. What are the best & safe options to modify a database table record directly?

Thanks,

11 REPLIES 11
Read only

Former Member
0 Likes
1,240

Standard SAP table or custom table? If SAP - which table and field?

Rob

Read only

Former Member
0 Likes
1,240

Why dont you use modify then?

Read only

MaryM
Participant
0 Likes
1,240

data: wa type TABLE.
select single * from TABLE into corresponding fields of wa
   where...


wa-field1 = ...
wa-field2 = ...
...
update TABLE from wa.

At leas like this you only modify a single record in your table.

Regards,

MayM

Read only

Former Member
0 Likes
1,240

Hello Rob,

It is a standard SAP table and the table is EINA.

Thanks,

Read only

Former Member
0 Likes
1,240

Seems dangerous - what field?

Rob

Read only

Former Member
0 Likes
1,240

Small correction. Table is EINE and field is MWSKZ. I need to confirm if these are the right table and field. But for now let's say these are the right table and field. What options do we have?

Thanks,

Read only

Former Member
0 Likes
1,240

If those are correct, then it seems even more dangerous. You could get into big trouble with data integrity if you simply update the database table here. I'd look at cancelling the original transaction and re-creating it with the correct tax code.

Rob

Read only

Former Member
0 Likes
1,240

Rob,

From what I heard from business, they are unable to either change or delete the record. I'm just looking to see what all ways(except doing it through a small program) in which we can update the table record. Please let me know all the ways in which we can update a table record. Thanks.

Read only

Former Member
0 Likes
1,240

Any thoughts Rob? I do not think we will be making any updates but just want to know how we can update a database table record other than doing it through a small program to update the table. Thanks.

Read only

Former Member
0 Likes
1,240

If you cannot change it using the original transaction (in change mode), look for another transaction that can change the value.

Rob

Read only

Former Member
0 Likes
1,240

Hi Stone,

For your requirement write one small program.

<< Very bad example removed >>

Thanks,

Kiran Kumar G.A

Edited by: Rob Burbank on Apr 27, 2009 1:19 PM