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: 

unlock the PO

Former Member
0 Kudos

Hi all

i am using the bapi to change the Purchase order..

Po is having eq 4 line item

its changing the First line item

for next line item its showing error .. PO is locked.

i try with call function 'DEQUEUE_EMEKKOE' .

i am not sure how it will process.

can anybody tell aby that.

or some other F. module with its functinality

thanks in advance

Manish

6 REPLIES 6

Former Member
0 Kudos

Manish,

BAPI_PO_CHANGE is the function to change the PO, can you post your code here and detail us what are you trying to do?

Regards,

Ravi

vinod_gunaware2
Active Contributor
0 Kudos

Use function module

<b>BAPI_PO_CHANGE

BAPI_TRANSACTION_COMMIT</b>

regards

vinod

0 Kudos

hi

my scenarion is i want to unlock the Purchase order.

how i will to this plz explain in details

0 Kudos

Manish,

Unless you know what kind of lock has been placed, you cannot unlock the same. There are two kinds of locks that can be placed.

EMEKKOE Purchasing Document Exclusive

EMEKKOS Purchasing Document Shared

If it is an exclusive lock you can call the function DEQUEUE_EMEKKOE and if it is a shared lock call DEQUEUE_EMEKKOS.

Regards,

Ravi

Note : Please close the thread if the question is answered

0 Kudos

hi,

first call the fm SD_SALESDOCUMENT_CHANGE

then COMMIT WORK AND WAIT.

then call the fm BAPI_TRANSACTION_COMMIT

bye

sasi

0 Kudos

Try Using

CALL FUNCTION 'DEQUEUE_ALL'.

Reggads

- Angel