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

Row by row update

Former Member
0 Likes
968

<<stop posting your interview questions>>

Hi

The below select statement is taking too much time in Production system,

is there any way to optimize the above code ?

"select * from VVBAP

into g_wa_vvbap

where vbeln in g_vbeln.

g_wa_vvbap-zmeng = g_wa_vvbap-zmeng + 5.

update vvbap from g_wa_vvbap.

Endselect."

Sandeep

Edited by: Matt on Dec 21, 2009 2:10 PM

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
937

The code is below, not above. For you, that is. For me, it is above, not below. Hope you understand.

Thomas

<<stop posting your interview questions>>

Hi

The below select statement is taking too much time in Production system,

is there any way to optimize the above code ?

"select * from VVBAP

into g_wa_vvbap

where vbeln in g_vbeln.

g_wa_vvbap-zmeng = g_wa_vvbap-zmeng + 5.

update vvbap from g_wa_vvbap.

Endselect."

Sandeep

Edited by: Matt on Dec 21, 2009 2:10 PM

7 REPLIES 7
Read only

ThomasZloch
Active Contributor
0 Likes
938

The code is below, not above. For you, that is. For me, it is above, not below. Hope you understand.

Thomas

Read only

0 Likes
937

Looks like Subin is trying to divert attention and you just won the lotto..

Read only

0 Likes
937

You're right, looks like I got two tenners from Sandeep already...please contact me before taking action.

Thomas

Read only

0 Likes
937

Hi Thomas,

Reading this was a real treat

The code is below, not above. For you, that is. For me, it is above, not below. Hope you understand.

My experience ..

I searched for the answer so that i may be the early bird to post the answer,on this thread..and win some good points on this thread...

I felt bad that day that in spite of my efforts, Sandeep gave 10 points to Subin.

Now i see it all

Am feeling a looooooooooottttttttt better now.

Sandeep,Subin,Vicky... lesson to be learnt

Regards,

SuryaD.

Read only

0 Likes
937

Yes, unfairness is often a horrible by-product of dishonest bias.

Subin's user ID will be deleted, along with his clones.

Cheers,

Julius

Read only

0 Likes
937

Regards,

SuryaD.

Read only

0 Likes
937

But you can still read the forum rules anyway, because Rob is still around...

Cheers and merry christmas,

Julius