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

Problem in changing PR using BAPI With Error User already processing PR

Former Member
0 Likes
1,265

Hello Experts,

When i am using BAPI_PR_CHANGE, to change PR . Since i have many number of PRs to be changed in , i am running the program in background . Issue now is that i am getting already PR is been changed (processed) by User(myself), so changes cannot be made and stooping the process of change. I am using BAPI_TRANSACTION_COMMIT with WAIT also. but i coukd not change the PR in background. How can i over come this problem? How the lock entries shall be removed fast so that next PR is changed.

Please help me out experts.

Thanks in advance

9 REPLIES 9
Read only

Former Member
0 Likes
1,089

Hi,

What you can do is through yur program ENQUEUE the pr then used bapi (along with commit)and then DEQUEUE the PR.

This way yur locking problem will not come.

Hope it helps.

Regards

Hiren K.Chitalia

Read only

0 Likes
1,089

Anyway BAPI is going to take care of locking and unlocking as i am using bapi commit. Is there any need of me externally use enqeue and deqeue .

Read only

mvoros
Active Contributor
0 Likes
1,089

Hi,

that's really weird. You get a lock only for particular PR, so when you process multiple PRs you shouldn't have any problems. What exactly do you do with PRs? BTW you can see current lock in SM12.

Cheers

Read only

Former Member
0 Likes
1,089

Its not the problem with particular PR, Only first PR is being changed succesfully, from second PR , thought it get unreleased, its not able to change, saying user(myself) already processing PR.

Read only

vimalv
Active Participant
0 Likes
1,089

Kiran, one bad question, but like it happens at times, have you left one of the PRs open in any of your sessions

Read only

Former Member
0 Likes
1,089

No i did not do that, i am out of all PR transactions, before executing the back ground program

Read only

mvoros
Active Contributor
0 Likes
1,089

Hi,

do you run it in test run? If yes, then have you checked Note 1333005?

Cheers

Read only

Former Member
0 Likes
1,089

i am not test running it. i used in the program to change PR items

Read only

Former Member
0 Likes
1,089

One bad question. Are you refreshing all the internal tables properly inside the loop? Can you send us your code?

Regards,

Ganga