Hello,
Is there a BAPI you can use to update the required transaction - is there any reason for using BDC?
Also, what is the reason for reading the Enqueue object - what is the objective here? Is it that if it returns 0 (not locked) then you are going to call transaction xxx otherwise what are you going to do? Wait till its unlocked? (For e.g. call the Fm and check its return code in a Do loop)??
Wouldn't it be better (and simpler) if you left the system locks alone and called the transaction anyway then handle exceptions when it fails; perhaps the reason could have been that the system could not enqueue the material and so on...
Have a think about it.
Sougata.