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

query on SQL

Former Member
0 Likes
595

hi,

an UPDATE statement i coded for MARA updates one material, but does not update another material what could be the reason.

please help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
569

avoid to use update(insert,delete) command in sap standard table.

just add after update command commit work.

5 REPLIES 5
Read only

sridharreddy_kondam
Active Contributor
0 Likes
569

Hi Surendar,

Can u give the code in detail...

r u using the Update statement once without a loop or ?

And also after Update use commit work.

Update updates the record if the record exists...

Modify modifies the record if exists else creates a new record...

Regards,

Sridhar

Read only

Former Member
0 Likes
570

avoid to use update(insert,delete) command in sap standard table.

just add after update command commit work.

Read only

Former Member
0 Likes
569

Hi Surendrakumar,

After Update use the statement commit work.

Regards,

Mukesh Kumar

Read only

santhosh_patil
Contributor
0 Likes
569

hi,

better you lock the table before update and unlock the table after update, this may help.

you can use this FM :

DEQUEUE_E_TABLEE

ENQUEUE_E_TABLEE

Read only

Former Member
0 Likes
569

Hi,

Use conversion exit FM for numeric materials

Try using modify and also check whether your

where condition value matches with mara-matnr.

Regards,

Amole