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

update table

Former Member
0 Likes
586

Hi everyone,

I want a to update field Name_co value in ADRC table through a program for a customer.

Please help me in regard.

Thanks and regards,

Deepthi.

4 REPLIES 4
Read only

Former Member
0 Likes
569

UPDATE ADRC set NAME_CO = 'ABCD'

where ADDRNUMBER = '01234'.

COMMIT WORK.

Read only

Former Member
0 Likes
569

update adrc set name_co = <value> [where <condn>].

example

update adrc set name_co = 'ABC Ltd' Where name1 = 'Test1'.

Read only

Former Member
0 Likes
569

Please give me reward points..

Read only

former_member404244
Active Contributor
0 Likes
569

Hi,

Try like this..u can also do by use of BDC(which is better than updating directly).

data : i_adrc type table of adrc,

wa_adrc type adrc.

get the data in i_adrc.

loop at i_adrc into wa_adrc.

wa_adrc-Name_co = <gve the value>.

modify i_adrc from wa_adrc.

endloop.

modify adrc from table i_adrc..

reward if helpful.

Regards,

Nagaraj