Purchase order locking issue

Hi ,
We are processing IDoc. The IDoc FM does GR of STO by using MIGO transaction via BDC , then FM also does GR of STO Delivery number by using VL02N transaction . MIGO transaction is successful but while doing GR of STO Delivery number via VL02N we are getting an error like ' Purchase order XXXXXXXXXX is currently locked by user XXXXXX .
This happens if we process the IDoc in background . If I process the IDoc in foreground  by putting breakpoint at MIGO and VL02N , it executes successfully .
I feel it is a locking issue . I tried using FM DEQUEUE_ALL , MM_DEQUEUE_DOCUMENT after MIGO but it did not work out .
Please suggest for any pointers on this locking issue .
Regards,
Kiran.

Forget about WAIT statement.
Use:
set update task local.
...before starting MIGO.
regards

Similar Messages

  • Purchase order save issue, Using through BADI  PROCESS_PO_CUST ME21n

    Hi,
    Pls  Experts ,can we have some solution for this
    Purchase order save issue,  we are Using  BADI  PROCESS_PO_CUST currently we are throwing a
    message  using MMPUR_MESSAGE_FORCED if mandatory custom fields are not entered by the User,
    When we are saving the PO we are getting a exception which is raised by us ( custom message ) .
    Pls let me know is there any way to clear the message or to make mandory custom fields to be entered by user ..
    thanks  in advance...
    PK

    Hi Arnab,
    Thanks for quick response ..
    My requirement is if user is not entering the cusome fields then  i dont want to allow him to process any other Tabstrips  in the order .. thats the reason i am throwing an error message asking to enter custom fields.. then once user enters the custom fields which are created by   me .. then i should consider those values for further process like some other tab strips values maintained by the user then when we try to Save the PO still my custom error will be creating issue its not allowing to save..
    Can i have some solution ..
    thanks in advance.
    kumar

  • Issue with BAPI_PO_CHANGE: purchase order locked

    I'm experiencing problems with the following scenario:
    1. change purchase order with RFC BAPI_PO_CHANGE
    2. wait 30 seconds
    3. post goods issue using IDoc MBGMCR01
    When performing step 3, I get in 20% of the cases the error that the PO is still locked by the RFC user in the R/3 system (user PIREMOTE already processing purchase document 123456789). I have tried to extend the wait step to 10 minutes, but the same issues still remains.
    I've also tried executing BAPI_TRANSACTION_COMMIT (with and without wait) and BAPI_DOCUMENT_DEQUEUE between step 1 and 2. Neither worked.
    Debugging BAPI_PO_CHANGE using SE37 didn't give any results. I noticed that the PO was still locked even when the processing of BAPI_PO_CHANGE in SE37 had finished. Somehow R/3 is locking the purchase document for a very long time in 20% of the cases. During the execution of the module enough work processes are available and no jobs are running.
    Has anyone ever experienced something like this and has an idea where to look next?

    So that should be BAPI_TRANSACTION_ROLLBACK in my case, since I have to use remote enabled functions. What does this function do? It looks like it's rolling back the performed transaction, thus reversing the changes, and that's not my intention.
    Edited by: Iddo Rijsdijk on May 25, 2008 1:09 PM

  • Purchase order status issue

    Hi Everyone
    I am having an issue with the status of Purchase order. When the Purchase order has single account assignment, everything is fine. But when I create a purchase order with multiple account assignment, the first line item is correct but when I ad second line, the still to deliver quantity gets added correctly but the amounts only reflect the recent item and not the previous one.
    For example:
    Item 10            Quantity 10           
    Item 20            Quantity 10         CC xxxx         GL account 666666
                                                       CC yyyy         GL account 666666
    Status:    Ordered        20              200
                    Still to deliver 20             100
    Please help me with this issue.
    Thanks,
    Shalu
    Edited by: Shalu G on Feb 9, 2010 12:07 AM

    Resolved myself

  • Excise duty condition type and Purchase Order Print Issue

    Dear Friends,
    We have a issue related to Purchase order print out.
    We are maintaining TAXINN.
    We have implemented CIN and we are maintaining Excise Conditions i.e. Basic Excise in JMOP
    In FV11 we are maintaining values for JMOP with plant and material Group combination.
    In Purchase Order Tax calculation is happening correctly.
    But issue is to find the value of taxes for Purchase Order Print.
    We are using function module CALCULATE_TAX_FROM_NET_AMOUNT
    and passing values of Company Code, Country, Currency, and Base amount to get the entries in condition types.
    But we are not getting any entry even after passing the values.
    How we can get these values in JMOP.
    Regards
    Kant

    Why do you want to calculate the taxes during the PO Print when you are getting correct values in PO itself?
    Modify your print program with pulling values directly from EKPO/ EKKO Tables and display it to Spool.
    check with ur ABAP Person

  • Purchase order workflow issue

    Hi All,
    A PO is created and rejected by a user in user decision step.The workflow will end.If the PO is changed(amount) again,the release strategy is triggered for the same user.But the workflow is not triggering.If the release strategy is for a different user,its triggering the workflow.I have used a fork inside which 1 parallel branch contains a wait for significantly changed event & another branch contains the user decision step,po release step & rejection reason scenario.
    Please refer the thread below.
    PO Release Strategy Issue
    Replies will be greatly appreciated.
    Edited by: Feddie on Jan 3, 2008 11:43 AM

    Hi,
    This is not workflow issue(work flow is different term)
    It seem problem of BADI (program written for creation of purchase order based on sales order)
    Take help of ABPer so he/she can solve this issue
    Kapil

  • Purchase order idoc issue

    Hi,
        I am facing a issue with an inbound purchase order change IDOC (message type: PORDCH).
    I am getting the following error: FM VENDOR_MASTER_DATA_SELECT_15 ; no partner functions found for vendor VENDOR_MASTER_DATA_SELECT_15 1.
    The vendors are configured such that they dont need a partner function. The suprising part is that the same message type idoc from the same vendor got succesfully posted a few days back and a few days after the issue was found, which means the error doesnt occur every time.
    Any input is highly appreciated.
    Thanks,
    Aparna.

    Hi Aparna,
    I want to make changes in an existing PO through an inbound idoc. I am using idoc type PORDCH01 and message type PORDCH, process code BAPI. But I am getting an error "Characteristic does not exist in operating concern".
    Can you please explain how u are using idoc type PORDCH01??
    Thanx in advance,
    Shaleen

  • Purchase orders dates issue

    Hi All,
    Somehow MRP Pushing the dates to future date i.e to year 2015. Even though the dates changed manually after an MRP run it changing back to year 2015.
    Please advise, how to approach to solve my issue.
    Thanks in advance.
    Quantum.

    I'm not sure what your question is, but MRP will not change automatically a firmed element, e.g. purchase order, or a firmed purchase requisition.
    Could you clarify?

  • Purchaser Order Locking Problem In PROXY interfaces

    Hello Experts,
    Scenario is as follows
    landscape is  : NON SAP system ->> PI --> ECC
    Documents flowing is Purchaser order create and change
    Problem is like when i receive same purchase order for change in few fraction of seconds and multiple time as i am already processing the same same PO the next interface goes into a error saying that the PO is locked by user so and so.
    What could be possible solution for to avoid  locking in first place .
    Note its a asynchronous interface XML proxy message.
    Thanks and Regards,
    Anup Deshmukh
    Still waiting for the inputs...!
    PS : Moderators please move it to PI forum if it has to something with PI also

    Self Answered... ! Sorry Closing Old Thread.

  • Purchase order qty issue

    Hi SAP SD GURUS,
    this is STO  process, Doucment type is UB, delivery type is NLCC, Item catagory is NLC.
    When ever to create the delivery enter the qty more than the purchase order qty, system is allow to create the delivery, in this case i want restirct the delivery levle and  we cannot enter the delivery qty more than the Purchaswe qty in delivery level, where it is controlled?
    Thnaks and Regards,
    Murali krishna

    Dear Sd experts , @ Lakshmipathi G sir
    I have one doubt on this plz Tray to solve this .. i know this is not possible in sap stranded To achieve this  But some links some Mentors said It will be possible In OMCQ But i didnt get result in OMCQ
    Link is this Delivery is happening more than STO quantity
    If it is possible in sap stranded only what is the purpose of      BADI LE_SHP_GOODSMOVMNT For this scenario to handle
    Give me clarity sir .....waiting your valuable replay

  • Purchase order script issue

    when i copied the medruck form and then saved the data into nace transaction and then went to me22 and when i clicked on messages and i got the output screen stating output NEU is not defiened and i clicked on f4 button and found out there is only email option in it, how i need to save it and execute my form and what is partner tab in the screen, what i need to give in it.

    using NACE tocde we can assign print program to form.
    goto NACE->select the Application type(EF-purchase order)->select output types->NEU for new PO printout->double click on process routines_> sscroll right->specfiy ur form and print proggram there(instead of MEDRUCK give ZMEDRUCK)->save
    Nace is for message control settings. Say if u want to trigger a Smartform or an Idoc or any other customized program u can do the message control settings.
    Say at the time of Sales Order creation or updation u want to trigger a Smartform, then u have to follow the following steps:
    Goto NACE
    Select application V1 and then click Output Type.
    create a new Output type or copy the existing one abd save it with new name
    then in Processing Routine Mention the driver program name and in Form routine mention the main subroutine name.
    In Smartform mention your SMartform name and also the layout if u have ceated.
    Again go to NACE and Select application V1 and press Procedures.
    here out of the many procedures u have to select the right one and attach your Output Type to it.
    You can also create a condition record..Say if u want to trigger this Smartforms for Sales Order of particular type.
    Hope this helps.

  • Purchase Order copying issue

    Hi there,
    I have a client who is having problems with their service purchase orders. When someone copies an approved service PO to an invoice/GRPO and they change the GL account on the line level the document loses the link to the PO. This then results in the PO being available to be copied again in the future. This could result in fraud because users can copy an order multiple times using the same approved order for many invoices.
    Is there a way to stop this from being allowed in the system? If so, how?
    Kind regards
    Clayton.

    Hi there,
    The thing is they don't want any stand alone invoices or GRPO's. They all have to be copied from a PO so there is an audit trail. If someone can keep copying the same PO and just changing the account it posts to then this is going to cause major problems for them.
    How can we stop this?
    Regards
    Clayton.

  • Purchase Order Rounding Issue

    Hi
    I want to round the Purchase Order qty based on the Info Record Standard Qty.
    Example
    If standard Qty = 50LB in Info Record.
    If MRP generated the requisition for 100Kg (in material master Base UOM = KG and Order Unit = LB)
    when we converting the PR to PO, system should round the PO qty to 250 LB (multiples of 50)
    How to do this?
    IF i'm wrong, Please suggest where we can do this setting.
    Please suggest me ASAP
    Thanks for your help in advance
    SUNIL

    hi,
    Go to Material master ---> Make your material for the View MRP1 --> In it enter the rounding value as 50...and then save...
    Now the values will in the multiples of 50...
    Hope it helps..
    Regards
    Priyanka.P

  • Purchase order sapsrcipt issue

    Hi,
    In the Medruck form for Purchase order, iam not getting Item text.
    When i debug the SAPSRIPT, i have seen that the values in 'Include' statement are not comming ie in T166p-Txnam,T166p-Tdobject,T166p-Tdid.
    Can any one please advice on this.

    Did you set in the customizn¡ing that teh item texts should be printed???
    Material Management>Purchasing>Messages>Texts for Messages>Define texts for Purchase Order
    Here you can define the texts on item level to be printed.
    Hope it helps,
    JG

  • Purchase order-smartform issue

    dear experts,
        Here in purchase order import po printout one of the text field-AIR/OCEAN FREIGHT-VAL am getting the value like 560.00 but actually i should get 56,000. So i have changed my smartform declaration like JOFV TYPE KWERT. the earlier it was displayed like jofv like ps207-bgert. then the same in samrtforms form interface-->import paramter...where there given like jofv type ps207-bgert. then there i made a change like JOFV TYPE KWERT. once after this has done..when i save it doesn't ask for the request no...it directly saves...SO HERE MY PROBLEM IS NOW I HAVE TO GIVE THE REQUEST NO TO EDP THEN THEY WILL MOVE TO PRODUCTION TO SEE THE O/P.
      here what can i do.....please help me out....
    thanks & regards,
    selva....
    Moderator message: please use more descriptive subject lines for your posts, do not post in all upper case.
    Edited by: Thomas Zloch on Jun 18, 2011 11:06 AM

    Hi,
    if its directly saved means already in some other request.
    if you want to find SAP request in which your smart form is being saved then follow this
    1) se03
    2) Search for Objects in Requests/Tasks
    3) Add in object selection blank box - SSFO and select checkbox
    4) give smartform name
    5) Execute
    it will show request name details
    Regards,
    Dhina...

Maybe you are looking for

  • AP AGING REPORT PARKED INVOICE

    Hi Experts, I have one new requirement in AP Aging Report Parked invoice Needs to display report out put as below. Days                        Count                      Amount 0-30 Days 31-60 Days 61-90 Days 91-120 Days 121-150 Days 151-180 Days 181

  • [JPA/TOPLINK] is the function "lower" supported in "order by" clause?

    In EJB-QL I can use lower() or upper() in where clause. But there is always a parse exception thrown when i tried to use it in main clause or order by clause. works: select s from Student s where lower(s.name) like 'm%' exception thrown: select s fro

  • HT1338 How can I download windows to my Mountain Lion OSX 10.9 and what browser should I use?

    How do I download windows to my OSX Maverick 10.9 and what Browser should I use for this?

  • Some smart playlists empty.

    I have been happily using an old iPod Touch as my car's music source.  I've had playlists defined that have been working fine on the Touch.  The playlists are somewhat complex, like Match all: Rating is greater than ... Media Kind is .. Genre contain

  • How to disable trackpad on Boot Camp?

    How do I disable my trackpad on bootcamp? My trackpad (clicker?) is pressed in, so sometimes it goes crazy and hightlights stuff or clicks stuff randomly.. I just want to disable it. I know you can do it on the osx, but I have no idea how to do it on