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 check if a sales order is being edited by other user?

Former Member
0 Kudos

Hello All,

I would like to check if a sales order is currently edited by someone. How can do that using abap code?

Thanks in advance

Rui

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello Rui,

Use the function module ENQUEUE_EVVBAKE with the interface parameter VBELN as the Sales Order number. If sy-subrc is not zero after execution of the function module, then that Sales Order is being edited.

Manoj

5 REPLIES 5

Former Member
0 Kudos

Try to ENQUEUE the Sales order and if it fails..someone is using it.

Former Member
0 Kudos

USe the FM

<b>DEQUEUE_EVVBAKE

ENQUEUE_EVVBAKE</b>

Regards,

Prakash.

former_member181962
Active Contributor
0 Kudos

Try to call the transaction

va02 in your abap.

set parameter id 'AUN' FIELD V_VEBLN.

call transaction 'VA02' and skip fisrt screen.

IF SY-SUBRC <> 0.

WRITE:/ 'Somebody is EDITING', V_VBELN.

ENDIF.

Former Member
0 Kudos

Hi,

Use Function module ENQUEUE_EVVBAKE to check if the sales order is changing by other user.

Regards,

Sudheer

Former Member
0 Kudos

Hello Rui,

Use the function module ENQUEUE_EVVBAKE with the interface parameter VBELN as the Sales Order number. If sy-subrc is not zero after execution of the function module, then that Sales Order is being edited.

Manoj