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: 

No entry found in SM12 but still Sales order is locked

Jay_Kamdar
Participant
0 Kudos

The application log in VA03 -Returns Overview screen displays the below error

The sales order 500046 is currently being processed by user PP1_APPLUSER

We checked SM12 but there is no lock entry for the mentioned user.

The user is a background user used for interfaces.

In SM04 the previous sessions for the user are not getting cleared.

1 ACCEPTED SOLUTION

Jelena
Active Contributor

It doesn't look like an ABAP issue, in general. If RFC sessions are not completed, they should be sitting in the RFC queue and Basis team (or anyone with respective access) should be able to push them through or remove.

Not sure why lock wouldn't show in SM12 (other than wrong user ID and client are entered on the selection screen) but, as Raymond pointed out, the lock could be gone by the time you look for it.

This is really not an SCN type of question and needs to be resolved in your system by Basis team together with a developer who would have more knowledge about this specific interface.

7 REPLIES 7

raymond_giuseppi
Active Contributor

Try to set a break-point at start of FM SD_SALES_DOCUMENT_ENQUEUE to find the exact lock that failed. (e.g. some CRM system?)

0 Kudos

Actually i dont have much authorizations and the issue cannot be replicated.

I am executing VA03 and in the Returns overview screed the application log button displays the error.

Is there any other way to find where and how the lock failed ?

0 Kudos

So how do you know there was no SM12 lock active at this moment?

0 Kudos

i asked the Basis colleague to check

0 Kudos

So there was some delay between the lock message and the SM12, if the background process was finished or released the order, too late to see the lock.

Could you check change documents of the sales order to find purpose of the background processing.

former_member208149
Participant

Hi Jay,

If the user session is visible in SM04, then there are fair chances that one of these sessions is locking the Sales Order. Besides, the Basis guys who is checking the SM12 for you, might not have enough authorizations to check the user locks of all users. Please check with Security team once.

Regards.

Jelena
Active Contributor

It doesn't look like an ABAP issue, in general. If RFC sessions are not completed, they should be sitting in the RFC queue and Basis team (or anyone with respective access) should be able to push them through or remove.

Not sure why lock wouldn't show in SM12 (other than wrong user ID and client are entered on the selection screen) but, as Raymond pointed out, the lock could be gone by the time you look for it.

This is really not an SCN type of question and needs to be resolved in your system by Basis team together with a developer who would have more knowledge about this specific interface.