Application Development 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: 

Issue with Update of Table VARINUM

former_member195698
Active Contributor
0 Kudos

Hi,

I am getting waiting Issues with Update of table VARINUM. Has anybody faced such an issue.

I have a lot of Jobs which are running in background. I am submitting it through a report. what can be the issue.

Regards,

Abhishek jolly

12 REPLIES 12

Former Member
0 Kudos

If each of the jobs is updating the table, they could be waiting for locks to release.

Rob

0 Kudos

There is no locking on the table VARINUM by SAP. The system goes into Waiting forever and it timesout after sometime.

0 Kudos

May be your update processes are not free. Check in the SM51.

Regards,

Naimesh Patel

0 Kudos

I am having issue in the production system where a lot of processes are going on.

Its only the table VARINUM that is having issues with Update.

Regards,

Abhishek

0 Kudos

Can you post the update code? Is it doing a SELECT SINGLE FOR UPDATE?

Rob

0 Kudos

There are only around 300 entries in the table VARINUM. The code below is having issues.

varinum-numid = 'VJ'.

varinum-report = progname.

update varinum set vnumber = vnumber + 1

where numid = varinum-numid

and report = varinum-report.

There are a lot of jobs submitted through BAPI in Background which try to update this table. Because of concurrency of the No of Processes trying to udpate VARINUM the update goes into a long wait..

0 Kudos

Can you try with this?

arinum-numid = 'VJ'.
varinum-report = progname.
l_vnumber = vnmumber + 1.

update varinum set vnumber = l_vnumber  " <<
where numid = varinum-numid
and report = varinum-report.

Regards,

Naimesh Patel

0 Kudos

Hi,

Its part of Standard Sap report. is there any SAP Note for this or anything that can be done from the Basis side

0 Kudos

Hard to tell - what program/transaction is it?

Rob

0 Kudos

RSDBSPJS program is being called.

Regards,

Abhishek

former_member195698
Active Contributor
0 Kudos

raised with SAP

MarcelloUrbani
Active Contributor
0 Kudos

Thisi is quite old, but not answered properly yet, so there you go:

SAP generates a new job and temporary variant on report RSDBSPJS, for each HTTP call,which creates database locks on table VARINUM .

This causes any heavyweight BSP application  to hang and give timeout errors.

The problem is fixed applying OSS note 1791958, which is not included in any service pack.