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

BAPI_INSPECTIONPLAN_CREATE..issue

Former Member
0 Likes
748

Hi Experts,

I am using BAPI , BAPI_INSPECTIONPLAN_CREATE..Its creating inspection plane..THe only issue is its creating below mentioned locks.

Lock mode Table name Lock Argument

E OPR_CLASS_LOCK 796Q51999002########00000157

E OPR_CLASS_LOCK 796Q51999002########00000158

S PLKO 796Q51999002##########

E SEQ_CLASS_LOCK 796Q5199900202000000

E TSK_CLASS_LOCK 796Q5199900202

I had tried FMS...DEQUEUE_ARRAY..but still not able to clear locks..

the lock object I am passing to above fm is ENQARRAY.

Please advise

Thanks in advance

5 REPLIES 5
Read only

mvoros
Active Contributor
0 Likes
646

Hi,

do you call BAPI_TRANSACTION_COMMIT after your BAPI? It will commit changed to DB and after that it should release all locks.

Cheers

Read only

Former Member
0 Likes
646

Hi Martin,

Thanks for the reply. I am doing a commit after BAPI call. The issue is I am not able to unlock those tables which I had mentioned in my before post..

Read only

mvoros
Active Contributor
0 Likes
646

Then how do you call that BAPI? Do you just load data from somewhere and then call that BAPI? If you are pretty sure that those records are not blocked by other transaction/application/FM then I would open OSS ticket and ask SAP why it does not release locks. You can also try to use FM DEQUEUE_ALL.

Cheers

Read only

Former Member
0 Likes
646

Hi Martin,

Thanks for reeply..I had tried dequeue_all..and other unlock fms..nothing is working..

we may have to open a OSS NOTE..

Read only

Former Member
0 Likes
646

Hello!

I face the same problems using BAPI_INSPECTIONPLAN_CREATE.

Could you please tell me, how you solved it?

Thanks in advance,

regards,

Thomas