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

Updated Database Table

Former Member
0 Likes
418

Hi

I am basically BW Consulatnat,

I wanted to updated some field in Standard Table, fro example

we have A B C D E F fields are their in our table

i wanted to updated data from B to D, A to F

but should not delete data from B and A ,

please some one provide me the code

Thanks,

GAL

3 REPLIES 3
Read only

jitendra_it
Active Contributor
0 Likes
396

hi Gal,

suppose 'dbtab' is ur database table .

hope following code will help u.

data: itab type table of dbtab.

data: wa type dbtab.

select A B C D E F from dbtab into table itab.

loop at itab into wa.

wa-D = wa-B.

wa-F = wa-A.

modify itab from wa.

clear wa.

endloop.

modify dbtab from itab.

Read only

Former Member
0 Likes
396

Hi,

We are not supposed to do the direct table update for any standard table.

I don't know which is the case, but I think this can be done without any update in standard table.. (e.g. during extraction)

I suggest you ask in BW forum.. or explain in more details your problem

regards,

Paulo Carvalho

Read only

Former Member
0 Likes
396

Moderator message - Please do not ask or answer basic questions - thread locked Rob