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

Similar Messages

  • Issues with printing purchase order

    Dear friends,
    I'm having some issues with printing purchase orders.
    Normally when I create a purchase order via ME21N and then when I save the purchase order it then gets automatically printed.
    Suddenly it is not anymore working. I have created a purchase order this morning and it did not get printed. I get the message "frontend is not available"when i check the spool in SP01
    The funny think is if i call up the spool nr via SP01and then do a reprint then i'm able to reprint.
    What can be possibly the issue that I can't print the purchase order when I create the purchase order via ME21 when I save the purchase order? Can you help me with any guide on where I need to check why the PO is not printing immediatelly when i create the PO via ME21N?
    kind regards,
    Camilla

    hello all,
    thanks so far for your reply.
    i have checked today my user settings and that shows that my prints should go to LOCL (local default printer)
    The output conditions fpr purchase order have also LOCL (local printer)
    The weird thing is that I can print other reports to the default printer without any issues. The issue arise when I create a purchase order via ME21N. Normally when I save the PO it automatically prints. So no manual print instructions are required from my side. Because if I give manual instructions then I'm able to print the purchase order.
    Is it possible that the automatic printing is switched off and that it only prints when I hit manually the print button?
    Is the automatic printing something that is maintained in SPAD?
    kind regards and thanks for your help sofar

  • ISSUE WITH SERVICE PURCHASE ORDER STATUS

    Hi
    There is an issue with a Service PO.When I created a service p.o the
    p.o value was 1,543,695.60 USD . I created service entry sheet and GR
    for 1,029,130.40 USD.
    The still to be delivered amount should be 1,543,695.60-1,029,130.40 =514565.20 USD
    But the Amount Still to be delivered in p.o STATUS HEADER DATA screen shows 191,761.60 USD.
    Actually the system should show the delivered status as 514565.20 USD.
    What should be the cause for this???
    I checked the invoice also.Invoicing is done for 1,029,130.40 USD.
    Apperciate ur immediate feedback on this.

    Hi
    S012 is updated by the Purchase Order creation date, not the Goods Receipt date. e.g. a Purchase Order is created in January and good receipt is in February and March, S012 will shows the values in period January.
    try Transaction MC26
    Info structure S012  Update group (stats) SAP
    Double click on  Goods received qty
    In the section Date field for period determination
    check regarding date or change accordingly
    hope it helps.

  • Issue with Automatic Purchase Order creation.

    Hello
    I am creating Automatic Purchase Order via transaction ME59N.
    I have  1 Purchase Requistion for 2 line items having 2 materials .When I create PO the system is creating 2 different PO's instead of one PO even though the Vendor is same.I am not able to understand why 2 PO are created even though PR is 1 .
    I would like to have one Purchase Order with 2 line items in the same way I have 1PR with 2 line items.
    Regards

    Hi Satish
    Thanks for the reply.
    I checked the parameters and it is creating 2 PO when the Indicator Ordering address is set.If I uncheck this Indicator then only one PO is created.
    But now my question is from where is the Ordering address taken because for both line items Vendor is same and ordering address is also same.
    Then why the system is creating new PO?
    Regards
    Vaibhav Mahajan

  • Manual excise map with which purchase order

    Dear experts,
    Can you tell me which manual excise map with which purchase order ? give me table name and report  if you know !
    Thanks

    Dear Mr. Siva,
    Sorry for the late reply, actually I was out of touch from this issue for few days. I am sending you the detail about my configuration----
    I have assigned this condition type as following ... 
    TAXINN     ZA1X     A/R AT1 Quantity based
    TAXINN     ZECS     A/R Cess Quantity Based
    TAXINN     ZEXP     A/R BED Quantity based
    Condition type information
         Control data 1
    Cond. class       D  Taxes
    Calculat.type     Q  Commodity
    Cond.category  D  Tax
    Rounding rule         Commercia
    StrucCond.
         Change which can be made---
    Manual entries      C       Manual entry has priority
    Still it is not showing the duty at the time of (J1IIN)
    It may be I am missing some configuration or wrong configuration.
    give me some hints...
    thank you
    Vijay

  • Excise Invoice is captured with another Purchase Order

    Hi
    We have a scenrio, transfer the material from debond plant to mfg plant after imported material in kept in Bonding area. STO po is raised to from imported plant to mfg plant with Imported duties as delivery costs.
    Bill of entry is provided for all the materials as one. While capturing the excise amount at line item level is difficult so, captured at first line item level as total because material is Same (Material is Split valuated materials with 3 batches). First GR is done properly but next GR for 2nd and 3 rd line items are refered with earlier Bill of entry, system promprts the error message "Excise Invoice is captured with another Purchase Order".
    Please do the needful.
    Regards
    Mohan

    Hi,
    Please be informed that for one a GR document wrt PO only one excise invoice can exist.
    Ex PO-4500000010
    GR no 5000000010
    only one excise can exist and if the same excise invoice is reffered to another GR with the same PO system will throw an error message. Please let me know the exact business requirement in detail.
    Naveen

  • Issue with a work order

    Hi Team,
    I am having an issue with the work order having multiple line items for the same component. Out of all line items it is showing error for two line items mentioning,
    No status object available for CMP 81411471 0160 0110
    Double clicked on it msg no displayed BS.001
    Please help on this issue, Thanks in advance.
    Regards
    Nivas

    Are you using Work Clearance Management?? Please provide the detailed error message, if any.
    67826 - Restoring the status for orders RIORDST1
    http://scn.sap.com/thread/3209398
    Check the above details.

  • I am a teacher that uses the iPad in the classroom.  I have an itunes account setup for my classroom without a credit card listed. Is there anyway for me to purchase apps to use in the classroom with a Purchase Order?

    I am a teacher that uses the iPad in the classroom.  I have an itunes account setup for my classroom without a credit card listed. Is there anyway for me to purchase apps to use in the classroom with a Purchase Order?

    (Being sarcastic - its because only the US is big or important enough to warrant volume licensing....)
    At this time, until Apple decides to release volume licensing structures outside of the US the only solution would be to use your purchase orders with a company that sells the iTunes Vouchers and redeem those.
    However - even then its hard to stay on the right side of the EULA when the terms are all couched in reference to "Personal Use"
    I have spoken to some developers in the past about educational discounts, or even support for proxies, and wasn't really impressed with their answers.   But hey - even Adobe has trouble with proxies and consistent approaches - we can't expect independent developers to be able to match the same capabilities...

  • Create list of materials with its purchase order texts from material master

    Dear all
    Simple question I do wanna ask.
    Just need to get out a list with my materials with its purchase order texts from the material master.
    As I do know that PO text is not stored on a table, it might be difficult to get it out from the system.
    Does anyone of you know how to retrieve it simply?
    Regards
    François

    Check this link Material Master Purchase Order Text.

  • Issue with printing production order after changes through CO02

    Hi,
    Currently I have one issue with printing production order changes through CO02. If I go for print, all the operations are captured in printout. But after the print, if I add any new operations to this production order, and then go for print, its not capturing the newly added operations. Also, there is information popup coming "Copies will be printed for order. Original list already printed". This message effectively means, even after changes, when I go for print functionality, its just going for printing copies of original printed list.
    Can anyone help me out to get the newly added operations reflected in the print through CO02 ?
    Regards,
    Shiva

    Hi Shiva,
    Refer SAP note 28887.
    Source: http://www.sapfans.com/forums/viewtopic.php?f=9&t=308577
    Please search /google before posting queries.
    Regards,
    SuryaD.

  • Oracle Purchasing - How can I link a requisition with a purchase order?

    Hi All,
    I have a problem. I don´t know how to lonk a requisition with a purchase order.
    I use the following tables:
    PO_REQUISITION_HEADERS_ALL
    PO_REQUISITION_LINES_ALL
    PO_LINES_ALL
    PO_HEADERS_ALL
    PO_DISTRIBUTIONS_ALL
    Those are the mains tables, but I can´t obtain a purchase order information based on a created requisition.
    Someone could help me?
    Thanks,
    Facundo.

    Absolutely, Emile.
    Use the Tooltip Widget. Inside the Tool Tip you can put what ever content you wish. Let me know if that works for you.
    If not can you supply a link?

  • How can I purchase FormsCentral premium for my organzation with a purchase order?

    How can I purchase FormsCentral premium for my organzation with a purchase order?

    Hi;
    A FormsCentral subscription purchase requires a credit card in one of the supported countries for purchase.  It cannot be purchased using a purchase order, only a credit card.
    Thanks,
    Josh

  • How to enable VSF cosumed with Individual purchase order(TAB)

    Hi, SAP guru.
    I want VSF consumed with individual purchase order (TAB).
    Could you give me the instrunction please?

    I explain here in detail.
    (In material master, srgategy group is '40'.)
    When you create a sales order with item category 'TAN', this sales order consume 'VSF'.
    and you change this item category to 'TAB', the consumption or allocation disappear.
    I want this TAB to be kept consumed with VSF.
    Could you give me the possibility and the instruction.
    For example;
    1. Intial
                                        Requirement
          Nov-1st    VSF      100
    2. When you create SO with TAN (10 pcs), SO consumes 10 of VSF.
                                        Requirement
          Nov-1st    VSF      90
          Nov-1st    SO        10
    3. And you change item caetgory to 'TAB',  VSF is back to 100.
                                        Requirement
          Nov-1st    VSF      100
    --- Cstock    SO (TAB)
          Nov-1st    PReq       10          
    What I did
          Requirement class '050' and 'KEB'    (OVZG)
                           VPZUO  is '1'  (I think sap standard)
        => It suppose that SO cousumes VSF, as VPZUO is same as ZUVKZ of PIR.
          Schedule line category 'CB'      (OVZ8)
                            Check 'Availability check for sales' (ATPPR) and  'Transfer of requirements' (BEDSD)
         =>  SO is displayed in MD04, but not consume VSF.
    3'. And you change item caetgory to 'TAB',  VSF is back to 100. SO doesn't consume it.
                                        Requirement
          Nov-1st    VSF      100
    --- Cstock    SO (TAB)
          Nov-1st   SO           10
          Nov-1st    PReq       10

  • 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

  • Restriction in MB1B tcode with ref Purchase ORDER

    Dear friends,
    I have one problem regarding the tcode MB1B (Transfer Posting).
    Actually when i transfering with ref to Purchase order no once with all the items.
    then one document no is generated and it is posted successfully.
    But the issue is that once the po number with all the items is posted then it should not allow the same po no to be posted again and generate the document no.
    So for this i want to write the code in some BADI or userexit.
    After searching i thought the right BADI for this is MB_DOCUMENT_BADI and i have to write code in this.
    But i m not getting how to write the code and also i m not sure whether this is the right BADI to make the restriction at MB1B tcode.
    I m transfering goods with ref to movement type 541.
    Please tell me the solution ,i willbe grateful to you and please reply immediately  or as soon as possible.
    Manish.

    Hi,
    If its a standard price in material master record...then it will pick price from material master record ...
    otherwise it will pick PO's price if no valid info record exists.
    It can also read last PO's price....depending upon the setting.
    Brgds,
    Ashok

Maybe you are looking for

  • CS4 Master Collection - Problem Applying Updates

    Hi I'm running the CS4 Master Collection on Windows Vista Ultimate 32-bit, SP2. Normally I have no problem applying updates to the various Adobe components when they become available, however for a while now I've been unable to instal an update that'

  • Is there any limit to the no.of items to be displayed in combo box

    I would like to know is there any limit to have the list of items to be displayed in a combo box. My requirement is to show the list in 2nd combo box based on the selection of an item from 1st combo box. But if I select an item from first combo box,

  • Using magnetic lasso...is there a way to change selection without re-lassoing?

    When using the lasso to maybe select a person out of a photo, its generally not THAT accurate in certain spots.  when the lasso cuts into the photo area that you are trying to cut out, I find I have to start the process all over again.  Is there a wa

  • IPod does not shut off (? firewire problem ?)

    My Ipod does not shut-off and I don't wan't any of the "have you trouble shooted" have you restarted your iPod"....yes and yes I have done all the troubleshooting and have restored my ipod. It says "FireWire connections are not supported. To transfer

  • Camera Raw shows wrong colors

    since update or pushing button " reset Camera Raw settings" Camera raw shows wrong colors and wrong brightness. (Adobe RGB, Eizo CG245W) Photo has not been converted or anything else. Bridge shows correct collors.... opening in Camera Raw the Photo i