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

Updating database table through update

Former Member
0 Likes
1,759

Hi,

I am updating database table through

UPDATE EBAN SET EBAKZ = 'X'

WHERE BANFN = T_INREC-BANFN AND BNFPO = T_INREC-BNFPO.

but when I am going to see in transaction me53n here I can't see user name who has made the changes.

Regards

Sagar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,319

hi,

you can use

COMMIT WORK AND WAIT

thanks

9 REPLIES 9
Read only

Former Member
0 Likes
1,319

As you are writing direct update statement it may not work. try passing uname and time to the table as well.

Read only

Former Member
0 Likes
1,319

Use commit work and check the same

Read only

Former Member
0 Likes
1,320

hi,

you can use

COMMIT WORK AND WAIT

thanks

Read only

Former Member
0 Likes
1,319

Hi Sager,

Check the data elment of that filed what ever you are updating is the Change Documents is checked.

then only the updating will reflect in the transactions..

if it checked..

checke that fied is updating in the data base.....if not do the COMMIT after udating then it will reflects..in the trasaction

Thanks!

Read only

Former Member
0 Likes
1,319

Dont update database tables directly with UPDATE statement...its not recommended.

Try to use FM: ME_UPDATE_REQUISITION for ur requirement.

Reagards,

Dara.

Read only

kamesh_g
Contributor
0 Likes
1,319

Hi

When you are updating database table you are updating only values not attribute rite ?

Sowhen update the database table entries it will show your USERNAME details .

When you are doing any manual changes only it will show the USer details of modification .

Suppose if you change the attributes like table text . it will show your name .

And in transactinon how you are updating, may be with the help of bdc , here also we not just updating data but not changing the screens of TCODE like that . so in TCODE also you dont get your user details .

IF you want the changes by you Chekc it CDHDR,CDPOS tables .for your reference .

Read only

Former Member
0 Likes
1,319
Read only

Former Member
0 Likes
1,319

Hi Sagar,

you will not be able to see the username updated as this is trasaction specific. you will have to explicitly update the username field.

Have a nice day,

Varghese

Read only

former_member222860
Active Contributor
0 Likes
1,319

Hi

UPDATE EBAN SET: EBAKZ = 'X'                  "check SET:
          WHERE BANFN = T_INREC-BANFN 
            AND BNFPO = T_INREC-BNFPO.

  COMMIT WORK.