09-08-2007 11:38 AM
Hi, all, thank you very much for your help.
I'm trying with <b>BAPI_SHIPMENT_CHANGE</b>, to change a shipment's Planning_Status. The Planning_Status is successfully updated. But, the LOCK of the shipment is NOT automatically released after the bapi commit.
Following is my detailed processing:
1. Write an ABAP LIST.
2. Press a button on the ABAP LIST's Application tool bar to call the bapi.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'CALL_BAPI'.
CALL FUNCTION 'BAPI_SHIPMENT_CHANGE'
......
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
......
ENDCASE.
3. After the bapi, stay at the current ABAP LIST wihout leaving.
Although I commit the bapi explicitly, and the planned update succeeds, the processing shipment <b>stays being locked</b> by me, <b>unless I leave the ABAP LIST</b>. And just when I leave the current screen, the lock is released.
I'm wondering, hasn't the BAPI_TRANSACTION_COMMIT committed successfully? Or, do I miss some steps?
09-08-2007 2:54 PM
Hello,
i have questions :
1/ what transaction is telling you that the processing shipment is locked by you ?
2/ In your program do you have any other function with name '%enqueue%' ?
09-08-2007 2:54 PM
Hello,
i have questions :
1/ what transaction is telling you that the processing shipment is locked by you ?
2/ In your program do you have any other function with name '%enqueue%' ?
09-09-2007 11:20 AM
Hi, chaouki,
Thanks for your reply.
1). Transaction 'VT02N' tells me the shipment is being locked by myself, if I haven't leave the ABAP LIST.
2). There is NO extra 'ENQUE' processing in my program. Only BAPI_SHIPMENT_CHANGE and BAPI_TRANSACTION_COMMIT.
09-09-2007 11:56 AM
Hello,
1/Do you know what is the use of ENQUEUE/DEQUEUE function module ?
2/My point of vue is : the VT02N is trying to lock the Shipment entry (created by the BAPI) by calling an ENQUEUE function module. By debbuging the VT02N transaction, you can know the name of the ENQUEUE function module.
09-09-2007 1:54 PM
I agree with you on the lock.
I'm wondering, why BAPI_TRANSACTION_COMMIT doesn't release the lock? Why Leaving_Screen releases the lock?
09-10-2007 3:44 AM
09-10-2007 10:24 AM
09-20-2007 2:53 AM