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

Is it advised to use UPDATE in ABAP code

Former Member
0 Likes
834

Hi sdn,

i had a requirment where i need to update some values in transaction level so i used UPDATE table statment to update one filed in BSEG and RBKP table.

so my query is weather we can use UPDATE table in ABAP ECC 6.0 or not.

please let me know

thnaks & regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
769

Hi,

Direct usage of statements like update insert or delete (DML) are not advisable in ABAP. Instead try to search for a BAPi/ FM which will update the tables. If it is done through a transaction maybe write a BDC program.

Thanks and Regards,

Sachin

4 REPLIES 4
Read only

Former Member
0 Likes
770

Hi,

Direct usage of statements like update insert or delete (DML) are not advisable in ABAP. Instead try to search for a BAPi/ FM which will update the tables. If it is done through a transaction maybe write a BDC program.

Thanks and Regards,

Sachin

Read only

mvoros
Active Contributor
0 Likes
769

Hi,

generally it's not a good idea to update directly SAP tables. You can easily create the inconsistencies in your system. In some scenarios it is possible to directly update SAP table but you have to be 100% sure that you are not going to break anything. For example you can directly update fields which you added to standard SAP structures because you know what's the purpose of those fields.

Cheers

Read only

0 Likes
769

yes i got ur point i will agree with ur point

but my senario is like it won't allow Space value for one filed when u manuvally save.

if record the same it will stop there and don't allow to move further.

if i run BDC programing it is getting stopeed at that point.

if i update that filed with space value in table then actuval updations are happenning in transaction level also.

i never find any BAPi or FM for this.

Read only

0 Likes
769

s