BAPI_GOODSMVT_CREATE giving error  purchase order is locked by user

I am calling multiple times BAPI_GOODSMVT_CREATE for same Purchase order to post goods receipt.
first goods receipt created successfully but second one has given the error the Purchase order is lockecd by USER 'XXXX' .
i am calling 'BAPI_TRANSACTION_COMMIT after each BAPI BAPI_GOODSMVT_CREATE.
i tried with passing parameter WAIT = 'X' in 'BAPI_TRANSACTION_COMMIT. then also getting same error message.
please any one tell me the solution

Hi
1. Check all the call is handled the release function(JCO.releaseClient(client)) for each call.
2. And check in finally
finally {
     try {
     if (client != null) {
       JCO.removeClientPool(SID);
       JCO.releaseClient(client);
     if(client.isAlive()){
          client.disconnect();
       JCO.releaseClient(client);                    }
     } catch (JCO.Exception ex) { }
Kind Regards
Mukesh

Similar Messages

  • MIGO error 'Purchase Order does not contain a confirmation control key'

    Hi,
    while posting GR to a PO i am getting an error ' Purchase order XXXXXXXXX does not contain a confirmation control key'
    it is true that i have not defined any confirmation control key in PO, Aknowled rerd checkbox is also not ticked
    Still why this message coming, what setting would be bringing this message
    Please clarity

    Hi,
    Until the installation of Note 589422 (with SP SAPKH46C43) you could  due to a program error - create a delivery even though the purchase order did not contain any confirmation control key.                                                                               
    This is now prevented through error message M7394. The transfer of this check (Confirmation control key existing in the purchase order, see Note 589422) was necessary as otherwise you could post a purchase order as desired. (Refer to also Note 616944 -> SAPKH46C44)
    589422 Several inbound deliveries can be created with MIGO :                                                                               
    "Implement the program correction.                                       
    With Transaction SE91 create message M7394 with the message text:        
    Purchase order & & does not contain a confirmation control key".         
    After you implemented this correction, when you want to create an        
    inbound delivery with Transaction MB01 or MIGO or with                   
    BAPI_GOODSMVT_CREATE and if the purchase order does not contain a        
    confirmation control key the system displays error message M7394         
    "Purchase order & & does not contain a confirmation control key".                                                                               
    Hope this can explain the error you met.
    Regards,
    Mauro

  • Error  :  Purchase Order  Response for Service items Different

    Hi ,
    We are getting Error  :  Purchase Order  Response for Service items Different  , when creating the PO in SRM 5.0.  what must be the reason ?
    Thanks & Regards,

    Problem solved

  • Error: Purchase order 4500000830 has no items in mb1b 541

    Hi All,
    I have created a Sub contracting Purchase Order with ITem Category L and Account Assignment E.
    Now iam getting problem while issuing Stock to Subcontractor thru MB1B 541 Mov type. It is throwing error like Purchase order 4500000830 has no items.
    Scenario is My client creates pos based on Sales order only. Now he want to Issue stock to Subcontractors based on sales order.
    for this, I created Semifinished material, two raw components, Sales order for Semifinished material and maintained bom for semifinished.
    Please go thru this and suggest.
    Reg,
    Ashok

    Hi,
    Did u checked the link provided by me. As per SAP, it is not possible to post 541 stock of material provided to vendor in subcontracting with account assignment sales orde or project stock.
    If you want to differentiate, use a separate storage location and transfer the stocks there. When you do the GR, the components issue happens directly from your storage location from sales order stock.
    Since the components are not transferred to the "stock of material provided to vendor", we recommend that you use a transfer posting to transfer the provided components to a new storage location (for example, 9999). This enables you to obtain an overview of those stocks that are physically located at the subcontractor. This information is particularly important when you carry out a physical inventory of the sales order stocks and project stocks.
    If you want to provide material from your stock,
    For components that are managed in sales order stock or project stock, you can define whether the components are to be withdrawn directly from each sales order/project stock or from the stock of material provided to vendor. You manage this via the dependent requirements indicator for individual customer requirements and collective requirements (MARC-SBDKZ).
    You can maintain this indicator in the following places:
    in the MRP view of the material master record (MRP 4)
    in the explosion types for the BOM item (in Customizing for Production in the step Basic Data -> Bill of Material -> Item Data -> Define explosion types)
    Configuring the explosion types has priority over the configuration in Inventory Management.
    If the indicator is set at Collective requirements only (2), the materials are withdrawn from the stock of material provided to vendor. If this indicator is set any other way, the system withdraws materials from sales order stock or project stock.
    Regards,
    Ramakrishna

  • Workflow Error Purchase Order

    Hi Experts,
    my issue is the following: We try to create a purchase order in SRM with a local mapped category (mapped to the local srm system) and depending on the user the target system should be overwritten in BADI bbp_determine_logsys to get the purchase order in the respective backend.
    The idea is to use all categories centrally and map them depending on the purchasers origin country.
    The question is that ...
    If we map the category to the backend system of the purchaser and try to transfer the purchase order, there will be no error (not in RZ20 or anything) - of course also the direct way with the FU bbp_procdoc_tansfer will work.
    If we map the category as it should be to the local srm system - the workflow transfer won't work anymore and we got an error message in RZ20 with the following text: Error reading the export data for EXEC transfer of purchase order <PO No.>.
    The very strange thing is, that even in this case with the FU bbp_procdoc_transfer the purchase order can be transferred to the backend of the respective user and it will switch the locally mapped backend to the purchaser / users one.
    Could anyone imagine what might be a problem - is there any check in the workflow itself what raises the exception and aborts the workflow.
    Thanks for your help.
    Cheers,
    Timo

    I am not sure if this is gonna help you..
    Note 1154122 - BBP_POC : Backend Data validation from SRM
    Regards,
    PR.

  • ERROR PURCHASE ORDER

    We are not able to add our approved Purchase order.in 2005 B . It gives an error u201C series period does not match current periodu201D
    Thanks

    Hi,
    Kindly check the document numbering for the Document to be added and if the same is being added into the correct period.
    Kind Regards,
    Jitin
    SAP Business One Product Support

  • Error: purchase order creation

    anyone can answer this error while create purchase order assignment category is order
    error is:   G/L account  E not created (please check the input)

    Hi,
    Please check the G/L account is available in T-code FS00 r not i think it is not created, which you are entering while creation of PO with account assginment as order .
    Please ask the FI to create the same.
    BR,
    Patil

  • In ME21N error-Purchase order item still contains faulty account assignment

    Hi
    While creating the PO in ME21N the following error occurs.
    "Purchase order item 00010 still contains faulty account assignments"

    Hi,
    Details you have provided for account assignment in item detail is not faulty or not sufficient.
    If you are charging PO to a cost center, check for cost center and GL account.
    If you are charging PO to network....check for GL account, network and activity.
    sk.

  • Error  Purchase order item 00010 still contains faulty schedule lines

    Hi All,
    when reprocessing an inbound IDOC for PO i am getting these errors
    1) Purchase order item 00010 still contains faulty schedule lines  and
    2) No instance of object type PurchaseOrder has been created. External refer.
    This error is getting during inbound processing and the status sets to 51.
    please help me in solving this
    Thanks,
    Hari kishore

    That ID in Return table is the Message Class of the message you get in return line (check in transaction SE91).
    You can build the text as this:
      CALL FUNCTION 'MESSAGE_TEXT_BUILD'
           EXPORTING
                msgid               = return-id
                msgnr               = return-number
                msgv1               = return-message_v1
                msgv2               = return-message_v2
                msgv3               = return-message_v3
                msgv4               = return-message_v4
           IMPORTING
                message_text_output = built_msg_text
           EXCEPTIONS
                OTHERS              = 1.
    As for the message itself, i don't know what it may be.
    Read Schedule lines parameter documentation in SE37, maybe there you have a clue.
    Regards
    Please reward points if helpful

  • In BAPI_PO_CREATE - Error- Purchase Order No. is not importing

    Hi,
    I have a Report for PO creation - Where records get entered from Excel.
    FM - ALSM_EXCEL_TO_INTERNAL_TABLE, BAPI_PO_CREATE
    Problem -
    Excel has app. 100 similar records out of them 7 to 8 records are giving Error.                                  
    In RETURN - Itab -  Error msg -  " Document No. 45... not within defined interval ".
    But same record get entered using ME21N.
    Number Range is same for all excel records. even doc. type & plant is same.
    When debugg - In BAPI_PO_CREATE -  IMPORTING - It's giving Purchaseorder 'Blank'.

    If you're using external numbering (number supplied in incoming data), fix the contents of the Excel file....it appears to contain blanks....file error in data content or in importing the file?

  • APP giving error "Internal order is in CRTD Active"

    Hi All,
    We are facing a strange issue.
    We have a PO for which a Down Payment request was raised. An internal order is assigned to PO which was in Created status. When we tried to pay the down payment using APP, the proposal ended up with error "Internal Order 12345 is in CRTD Act".
    I am confused as to why the APP is looking for Internal order status when it has nothing to do with it.
    COuld you please share your thoughts, is I am missing some logiv to understand this.
    Regards,
    MG

    Hello Trinath and Rajneesh,
    Thanks for sharing your views. But my question was, why is the system lookinf doe internal order at the timw when i am trying to pay the advance. Internal order has nothing to do with the advance payment to the vendor.
    Advance payment is more  of a Balance sheet transaction and not a P&L account transaction.
    I know i am missing somehitng here, but I would like to Understand that missing link.
    Regards,
    mg

  • Order is locked by user while filling setup table

    Hi Experts,
    Yesterday while i am filling setup table for 2LIS_DM_VAITM (DBM Sales) data source it got cancelled.
    It showed that " Order xxxxxx is locked by user".
    Because we have DSO concept in our CUBE, we didn't lock users.
    But then the basis checked the users and removed from the system.
    But still after removing the users, when we do the setup filling it still gets cancelled showing the same error.
    Please help on this. Now i am stuck in filling setup section.
    Thanks,
    Thilini

    Hi,
    Thanks. I followed your instructions and removed * , last two check boxes and selected sales org.
    Now i am filling setup and its still running. I used a background job.
    In sm37 it shows as "active"
    But when I check in NPRT, It shows no logs were found.
    I want to know that, is everything fine?
    Setup table is filling right?
    expects a reply please...
    Thanks,
    Thilini

  • Purchase order output determination thru User exit

    Hi,
    We are trying to find a way to determine the output for PO while creation (me21n) or modification (me22n).
    We do not want to maintain output condition records for each fax/print/email etc..cases.
    Can we do below thru a user exit or any other method ?
    While creating PO, an OA partner will be chosen, so instead of maintaining the output condition records,
    - user exit can access to OA's vendor master record and read Standard Comm.Method in Address section.
    - according to comm.method, the PO message should be determined..
    i.e: if comm.method is Fax, then message should be sent to OA thru Fax.
    can this be done thru an exit ?
    Thanks and Regards,
    Ocal

    Hi Stefan,
    The steps are as follows:
    Output of Purchase Order
    1. Condition Table
    SPRO > Material Management> Purchasing -> Message -> Output Control->Condition Tables->Define Condition Table for Purchase Order
    Select: 
    Purchasing Doc. Type,
    Purch. Organization,
    Vendor
    2. Access Sequences
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Access Sequences->Define Condition Table for Purchase Order
    3. Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Types->Define Message Type for Purchase Order
    *4. Message Determination Schemas*
    4.1. Message Determination Schemas
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Maintain Message Determination Schema
    4.2. Assign Schema to Purchase Order
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Assign Schema to Purchase Order
    5. Partner Roles per Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control-> Partner Roles per Message Type ->Define Partner Role for Purchase Order
    6. Condition Record
    Navigation Path: SAP Menu-> Logistics -> Material Management -> Purchasing-> Master data->Messages-> Purchase Order-> MN04-> Create
    Now you create PO (ME21N) and save it. Go to ME22N and print the PO by giving output type.
    Reward me if it helpful
    ASHOK

  • Purchase Order Document limit to user

    Hi All,
                My requirement is to limit a user such that user should not raise any purchase orders whose document total exceeding Rs. 5000.
                 I need a functionality without using Approval procedures.
    Thankyou.

    To prevent entering PO for more the 5000 for specific users (in the code with id=2,3) you can use this code in SBO_SP_TransactionNotification stored procedure:
    IF @transaction_type IN ('A','U') AND @object_type = '22' 
    BEGIN
    if exists (Select DocTotal from [dbo].[OPOR] T0 where T0.DocTotal > 5000
    AND T0.Usersign in (2,3)
    AND T0.DocEntry=@list_of_cols_val_tab_del)
    begin
         SELECT @error = 1, @error_message = 'You should not make more then 5000 !'
    end
    END

  • Getting error - Node is not locked by user weblogic.

    Hi i am getting the following error when i am editing the node which is present in weblogic portal.
    I am getting this error when i am checking in the node.
    com.bea.content.RepositoryException: Node is not locked by user weblogic.
         at com.bea.content.virtual.internal.server.bean.InternalWorkspaceOpsBean.validateCheckedOut(InternalWorkspaceOpsBean.java:2144)
         at com.bea.content.virtual.internal.server.bean.InternalWorkspaceOpsBean.handleWorkflowActions(InternalWorkspaceOpsBean.java:429)
         at com.bea.content.virtual.internal.server.bean.InternalWorkspaceOpsBean.internalCheckIn(InternalWorkspaceOpsBean.java:417)
         at com.bea.content.virtual.internal.server.bean.InternalWorkspaceOpsBean.checkIn(InternalWorkspaceOpsBean.java:340)
         at com.bea.content.virtual.internal.server.bean.WorkspaceOps_xe5vix_ELOImpl.checkIn(WorkspaceOps_xe5vix_ELOImpl.java:1760)
         Truncated. see log file for complete stacktrace
    I am using IVersionManager.checkin(context, nodeId, content) method.
    Portal version - 10.2
    Thanks
    Ankur

    Ankur,
    In order to check-in a piece of a content, it must be checked out by the user trying to check in. Have you checked it out first? Check-out is similar to marking a file for edit in a source code control system.
    -Ryan

Maybe you are looking for

  • IPod classic as e-book reader?

    I just heard that ipod classic can read ebooks in text format. I wonder how can you convert pdf files to txt and put them in ipod so you can read them through notes. I don't know how to do it though so that's a question to everyone who done did it. T

  • Update has stopped

    Hi all, the quality of the updates from apple make a lot of problems. INow apple tv stopped during installation. Does aAple work on improvement of the quality? You spend a lot of money for the products and what you get are sw prodcuts with poor quali

  • Accessible PDF problem

    I need to create accessible PDFs as part of my workflow. I use Indesign 5.5 and have applied "bevel and emboss" to an image. However, the resulting PDF fails the accessibility checker and reports that the offending image is "inaccessible content" and

  • Linking transaction in workitem

    Hi Gurus, I would like to know if it's possible and how I can link a transaction in a Business Workflow. The requirement is to have a workitem in which the user has 4 link to 4 transaction and based on his choice the system has to open the choosen tr

  • Capturing refurbishment cost in breakdown order

    Dear Gurus, If the material is being sent outside for refurbishment through a refurbishment order and that material is part of an equipment which has broken down(a breakdown order has already been raised for that equipment), the client wants the refu