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: 

Lock Entry on PO Number.

Former Member
0 Kudos
210

Hi,

How to lock the PO No. is two users are trying to edit the same PO in a Z development.

Thanks in Advance!!

Rohini.

1 REPLY 1

Former Member
0 Kudos
167

Hello,

This FM will do the trick :

CALL FUNCTION 'ENQUEUE_EMEKKOS'

EXPORTING

MODE_EKKO = 'S'

MANDT = SY-MANDT

EBELN = ebeln

  • X_EBELN = ' '

  • _SCOPE = '2'

  • _WAIT = ' '

  • _COLLECT = ' '

EXCEPTIONS

FOREIGN_LOCK = 1

SYSTEM_FAILURE = 2

OTHERS = 3.

Best regards,

Dirk.