10-12-2006 1:35 PM
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
10-12-2006 1:48 PM
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
10-12-2006 1:37 PM
Try to ENQUEUE the Sales order and if it fails..someone is using it.
10-12-2006 1:37 PM
10-12-2006 1:40 PM
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.
10-12-2006 1:44 PM
Hi,
Use Function module ENQUEUE_EVVBAKE to check if the sales order is changing by other user.
Regards,
Sudheer
10-12-2006 1:48 PM
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