cancel
Showing results for 
Search instead for 
Did you mean: 

Delivery is locked

Former Member
0 Kudos

Hi,

If a delivery is opened in VL02N and somebody tries to open it again then we will get a message " Delivery is locked by xxx user".

If i want to implement the same thing in a custom print program how can i do that?

i want to open a delivery in VL02N and at the same time when i try to print in ZVT70 it should display an error saying the delivery is locked...

please help me on this.

Thanks,

ratna

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

See suppose you take print from certain mode of transaction (eg : VL02N) then what you can do is you hard code the Tcode in print program that only in tcode VL02N the print firing is possible.

Now when one user will be in VL02N, other will not be able to open it. Also since you have hardcoded the tcode VL02N in the print program, other user will not be able to take print from VL03N.

Hope this helps you.

Regards,

Dhananjay

Former Member
0 Kudos

Hi ,

make use of this FM

ENQUEUE_EVVBLKE

call function 'ENQUEUE_EVVBLKE'

exporting

vbeln = us_vbeln--->Delivery No.

exceptions

foreign_lock = 2

system_failure = 3.

regards

Prabhu

Former Member
0 Kudos

Hello,

Can be done with the help of your ABAP expert, contact him with a clear requirement.

Prase

Shiva_Ram
Active Contributor
0 Kudos

Hi,

Check with the ABAP'er and they can enter the document check logic in the print program.

Regards