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: 

How to find out if ENQUEUE_ESRDIRE is used inside a standard program!

Former Member
0 Kudos

Hi All,

I have run VFX3 to rellease billing document using VF02 BDC that is called inside VFX3.

I used debugging to find out in ENQUEUE_ESRDIRE, or ENQUEUE_E_TRDIR is used anywhere in the process.

I also used System Debugging and Break-point at statement functions. But I have not ben stopped at these function modules.

However, I checked using ST05 with enqueue trace enabled, and I found the below entries.

255 ESRDIRE ENQUEUE 1 0 Excl(cum) TRDIR GP3VOFY4EM1BE5DHB1155DUU8H

37 ESRDIRE DEQUEUE 1 0 Excl(cum) TRDIR GP3VOFY4EM1BE5DHB1155DUU8H

My query is how can we debug to a point where these lock objects are used or Do these lock objects are not identified in debug mode but are logged while enqueue trace used i.e., SAP uses internally?

Please help me as this helps me in resolving an issue where locking issue is there that fails to update VFX3 becuase for one user

in SQL trace it is logged as VF02 TRDIR Lock > 6 hours VF02 TRDIR

and for another job "UPD 42 050 BATCHFIN GZZ K > Obj: ESRDIRE # enxxhead7727" is logged in ST05.

Regards,

Pratyusha

4 REPLIES 4

Clemenss
Active Contributor
0 Kudos

Hi pratyushasdn,

in dictionary se11/se12, in lock object, goto function modules. Set dynamic break point for enqueue function module,. switch on system and update debug.

If no success, check the user in SM12. Is there any other process run by this user?

If it happens in background (job), then you have not many chances.

Regards,

Clemens

Former Member
0 Kudos

Hi Clemens,

I was unable to trigger the exact point from where this lock object has triggered.

But I am sure that it is a standard SAP process which is locking while releasing the billing documents.

Now my query is why SAP why SAP'S standard program VF02 that is internally called by VFX3 (RVFAKSPE) and that can be submitted in background mode will use ESRDIRE lock whil each time it releases the block?

The problem I am facing is - there are different BATCH jobs and all are for VFX3 with different variant so that no billing document is processed by two different jobs at same time. However the lock entries ENQUEUE_ESRDIRE is creating problem as it is creating locking issue and hence the jobs are processed longer than expected. This is evident from ENQUEUE trace of ST05.

Is VFX3 ( In version 4.5B) is meant for running 1 background job of VFX3 at a time?

Regards,

Pratyusha

Clemenss
Active Contributor
0 Kudos

Hi Hi pratyushasdn,

sorry I'm not too familiar with the details of the billing process. The lock object is used for creation/change/generation of ABAP reportss. The lock argument GP3VOFY4EM1BE5DHB1155DUU8H must be a report include in your system.

As it is created by SAP standard, this is a good chance to retrieve a little part of your service fees: Create an OSS support question for this.

Regards,

Clemens

0 Kudos

Hi pratyushasdn,

that seems, that they are used in SAP update modules, e.g. in V1 update. Maybe its the update key that you can see as lock argument. You can't process it in debugger, but maybe you can get system log entries!

You can look at the where used list in SE37 for the fm's, too, maybe you can find the right update module.

Regards,

Klaus