Goods movement Locked

Hi all,
      I wrote a program in ABAP to post 2 goods movement. First, the program post a 101 goods movement, then a Z39 goods movement.
      After the program finished the 101 goods movement, while attempting to post the Z39 goods movement, it encounter error like below:
      "The program is locked by User ****".
      The program locked the user itself while try to post Z39 Goods movement.
      I was wondering if some one can help me with this issue. Thanks
Regards,
Andy Chan

Hi Sunil Achyut,
     Thanks for your reply. Actually, I already tried out with the WAIT command. And It solved with every waiting of 5 seconds. I put the WAIT command in between the 2 movements and after the Z39 movements.
     But I am seeking for a better solution because the program eventually will load a list of records (maybe up to 1000++). If every record have to wait for at least 10 seconds, eventually the program will takes quite a long time to finish the transaction.
     So, I was wondering if there any better solution for this.
     Thanks.
Regards,
Andy Chan

Similar Messages

  • Bapi goods movement Create (User Locking Error)

    HI all ,
             Please help me in the issue . I am doing Goods movement through BAPI(BAPI_GOODSMOVEMENT_CREATE) and i am scheduling this job in background . I am gettigng an Error of Plant data of Material locked by the user(myself) and for the next iteration its not  proceeded . Please help me how to get rid of the error .
    Thanks in advance,

    Hi Eric,
    Is the value get updated in the table?  After the Goods movement BAPI Just do wait up to 5 seconds and do the bapi commit.
    Other wise if it is possible just debug .
    With Regards,
    Sumodh.P

  • Lock a certain day from posting goods movements

    Hi, is it possible to lock a certain calendar day so that no goods movement can be posted on that day? Thanks in advance for any input.
    yu

    In that case you want to use auth group that I mentioned earlier. From Jan 20 through Jan 31 when you want to lock MM transactions but leave it open for COGS or other adjustment /correction postings, then you should define which group of people should have that access and assign auth group to inventory accounts as well as these users. You should activate auth group control only for such period. But remember such group of people will be able to do any inventory transaction. If you know they will be posting only to COGS then bring COGS account as well under same auth group and let them not post to any other GL accounts. You can still automate these changes using the program and batch job. Obviously OB52 will look complicated.
    There is no way to establish date wise control if you are looking for it. You will have to work around one of these ways.
    Regards
    Subodh

  • Batch Lock during parallel goods movement for other Plant

    Salute Masters!!
    I need your valuable suggestion!
    The Scenario is:
    User1 is doing the following transaction-Create stock transport PO for a material (plant 1000 to plant 1100)
    Create outbound delivery VL10B (Goods issue is also done- and he is in the screen MIGO (goods receipt in plant 1100 against outbound delivery for which goods issue is done.
    Automatic batch determination is activated and the batch is determined by FEFO method.
    User2 is creating a sale order for the same material from plant 2000.Subsequently, delivery is created and batch is determined and also the batch determined is the same as that of the previous one.
    Now both are in the same screen. When the user2 is trying to do PGI the system is giving error message the batch of the material is locked by the user but the interesting this if it is vice-versa that is with the user2 in the delivery screen and the user1 is trying to take goods receipt in plant 1100, the system is allowing to take the goods receipt of the material.
    How can we resolved this issue, please suggest.
    I have gone through this SDN Thread also but not got the proper solution
    Batch Lock during parallel goods movement
    Grateful for Solution
    Sanjai Srivastav

    Insufficient information. Unresolved, closed.
    Edited by: Srivastav100 on Mar 11, 2011 11:19 AM
    Edited by: Srivastav100 on Mar 11, 2011 11:19 AM

  • Confirmation of process order create : goods movement

    Dear Sir/Madam ,
             I am using the Transaction Code - CORK for confirmation of process order , but promblem is that when i am saving the goods for confirmation then material pi101 has some error i.e the material pi101 is locked by another user or something , then that is not confirmed but rest of the material which are having 531 movement are confirmed ,
    so i want that if the first material i.e pi101 which has 101 movement that should be confirmed first then after that rest of the goods having 531 movent confirm,
    i have already  searched the userexit for transaction cork i.e CONFPI05 when saving the data and another one is CONFPI06 for   Actual data transfer plz tell me what will be the logic and which structure to call in this userexit because in this userexit the structure which is present is not of use .
    thanks and regards ,
    arun

    Hi,
    I believe you would need to append the below line for your code for goods movement.
    wa_timetickets-order_itno = p_itno.  " Order item nos.
    Check & revert if it resolves the issue.
    Regards,
    Vivek

  • Error message (M3024) during parallel goods movement

    For publication distribution, collected unreferenced deliveries and goods issues are done in SAP system for a customer group by a program which is triggered by a web service every day. Standart SAP functionalities are used in this program. At goods issue part of program, an error message is occuring "Valuation data for material &  is locked by the user &" with error code :M3024. The user who processes the program is locking himself. Also we have checked the other goods movement types in standart transactions (MB1B-MB11..)and same problem was occured. We have checked the notes that we applied before for to avoid material lock in paralel goods movement. There is nothing changed both in customizing and deveploment after upgrade. So we couldnt find the way to fix this problem. FIRST ANSWER FROM SAP***************************************** Can you kindly review the attached note 70865 with regards to this issue. WE APPLIED.-- We reviewed 70865 and this solution not applicable for our current system. According to note; We set material late lock exclusive time 15 seconds in OMJI. This solution solved material lock error at all plant level. After this solution, We get same batch error during goods movement(m3862), Then We applied note 157423, this note solved material batch lock error during goods movement, At last we have now m3024(Material valuation error lock) error during all goods movement. THEN********************************* As explained in the note 70865 , to ensure data integrity, it is necessary to block the material against updates by other users during good movements. This is achieved by blocking the material plant (lock object MARC) and the material valuation area (lock object MBEW) exclusively against othertransactions which update the material master. What you can do, as advised in the note, is to activate the late block via transaction OMJI. As a result of this change, several users will be able to carry out good movements to the same material and plant simultaneously. The problem is that you will experience a disadvantage of performance loss after this change. Please, notice that with this change in OMJI, several users will be ableto carry out GOODS MOVEMENTS to the same material and plant simultaneously. This change will not allow the simultaneous input of a goods movement and an invoice for the same material (in this case, the material will be locked as soon as the purchase order item is adopted in the invoice and the error message M3024 will occur). When the error message M3024 occurs, you could check with transaction SM12, there you could find some tables like MBEW are locked by user. The table is locked to prevent valuation, quantity etc. to be updated. System does not check if it is standard price or MAP, as soon as you work with one material it will be locked (its valuation data has to be locked, because otherwise there is no guarantee of the consistency of the stock values. Without this lock mechanism the possibility of serious data inconsistencies could arise). your customizing under: SPRO > IMG > Material Management > Set up Material block for goods movements Here you could choose setting 2(at positing) to have only a short locking period at posting. Please review information in attached notes. 521945 FAQ: Material block 322989 Late block: Number of blocking attempts AT LAST ** PROBLEM STILL GOING ON WHAT SHOULD WE DO TO SOLVE THIS ERROR.

    HI Fatih,
    Refer to SAP Note 1744780 - Error message M3024 during Invoice Verification process .
    In the standard system it is not possible the simultaneous entry of a GOODS MOVEMENTS and an INVOICE for the same material and the same plant.
    When you enter the invoice for the purchase order item, the valuation data for the material is updated, therefore this valuation data (table MBEW) needs to be blocked so that it is not changed at the same time by any other transaction (which might cause inconsistencies).
    Resolution
    This system behavior can not be avoided by any customizing setting or any user exit.
    This is correct system behavior to protect the other transactions update the material master.
    As advised in the note 70865 :
    It is possible to activate the late block via transaction OMJI. As a result of this change, several users will be able to carry out good movements to the same material and plant simultaneously, however there is a risk to cause the data inconsistency and performance problems.

  • Restrict all goods movements for materials untill the latest costing run ex

    Hi dudes,
    1 here i have a requirement that i need to restrict all goods movements in the month for all materials(SFG,FG) untill the latest costing run(standard cost estimate) on 1st of each month.
    2. Can we restrict the status of process order in such a way that Conformation can be done only after the goods issues against production order. The goods receipt can be done only after the conformation of the process order.
    Thanks in advance.
    Robert.

    Robert,
    Procedurally you can block, by not opening the current period, before the costing run is completed, just when you wanted to release the cost estimate, at that time you can lock all users and then open the next period and then release your cost estimate and then unlock all the users. You need to work with your Basis/MM/FICO guys to have this procedure implemented.
    On the GI Check before confirmation and Confirmation check before GR, you can use Confirmation and GR releated User exits to check. There are many posts on this topic, a simple search on this forum would take you to the thread.
    Regards,
    Prasobh

  • CORUAWFP "An application for posting goods movements is already active"

    Hi Experts,
    We have a strange message- we don't get it why this happnes so often.
    In our system, production order confirmatins are done vai BAPI (BAPI_PRODORDCONF_CREATE_TT) and we are executing CO1P (CORUAWFP) every 10 minutes in order to avoid "Intended Goods Movements (GRs are suspendded, because of Lock sutuation)" .
    The problem is when CO1P(CORUAWFP)) is kicked, sometimes a strange message is displayed  ,"An application for posting goods movements is already active" , and the job ends abnormaly. We are sure we don't run CO1P  (CORUAWFP) in parallel.
    Why this situation happnens?
    Thanks in advance.
    Best Refards,
    /Hiro Okamoto
    Edited by: Hiro Okamoto on Aug 27, 2011 5:36 PM
    Edited by: Hiro Okamoto on Aug 27, 2011 5:37 PM
    Edited by: Hiro Okamoto on Aug 27, 2011 5:37 PM

    The message simply means there are 2 or more programs being executed simultaneously accessing the same set of data & hence a locking occurs or the table lock is not getting released within time so that the next program can get a lock.
    Get in touch with your system admin & ask them to monitor & let you know which programs are locking. Once you have that info, you can then change the schedule of the programs to prevent locking.

  • Error in PARALLEL goods movements involving batch name

    Hello everybody,
    I am facing some problem in goods movement and expect some views in the following scenario.
    Having a problem in PARALLEL goods movements when multiple users perform any of these pair of transactions
    (PGI with GR),
    (GR with GR),
    (GR-PGI-PPorder confirmation)
    The system generates message M3682 'Batch & of material & is already locked by &'.
    We are facing this transaction blocks very frequently.
    The common factor in all these transactions is the batch name 'OK'.
    Till now the material lock (OMJI) was "EXCLUSIVE LOCK", i had tried to simulate with activating "LATE LOCK" also, but the same error M3682.
    Please spare some time in analysing this scenario. Please let me know if you need more details.
    Thanks & Regards,
    Joy Ghosh

    What is the quantity of one batch?
    How many plants do you have?
    in what portions do you sell this material?
    Answering those questions could actually bring some light, as I usually consider this as an unlikely event, which often happens in training sessions because of unrealistic test cases, but occurs less often in reality.
    I am working in a chemical company and a batch could be for example any quantity between 2 and 100 tons.
    Lets assume we produced 20 tons, and we pack this into 50 drums with 200 kg and 100 drums with 100 kg
    Assuming that each customer orders just 1 drum, then we would have a maximum of 150 activities until the batch is gone.
    if this is distributed through 15 plants, then each plant has just 10 activities.
    In a normal day with 8 hour working time, it is a little more than one activity per hour in average.
    Is a batch really  sold off within one day, or isn't it usual that you may need several days until everything is sold?
    If the users are well trained, which means they know that they shall not use a change transaction to display content, that they shall leave a transaction when they go for lunch (or something else) then such cases that they block each other can happen but much less than some panic stories try tell us.
    Try to search for notes, there are some, but they can certainly not make this locking go away as it is technically needed, like you cannot have 2 trains on single track without collision

  • Goods Movement After Order TECO'd

    Hello All - Question is part MM and part PM.  It involves a TECO (technically complete status) on a workorder and the ability to perform a goods issue to the workorder.
    Is there configuration to allow a goods movement (GI) to a TECO'd workorder if the material in question has been reserved/requisitioned on the workorder prior to it being TECO'd?
    I'm quite certain that goods issues to TECO'd workorders are permitted PROVIDED the material request was on the workorder prior to it being TECO'd.  There must be configuration somewhere that allows/disallows this because at this client site, NO goods movements are allowed after the order is TECO'd.
    Any help would be much appreciated!
    Thanks
    Susan Page

    hi susan
    read this... u will understand
    Technical Completion of an Order 
    Use
    You usually complete an order technically once the maintenance work planned in the order has been performed.
    Features
    You use the technical completion of an order to define the following information for the order:
    u2022     The order obtains the status Technically completed. The order is marked as complete for Plant Maintenance.
    u2022     Now you can only make the following changes:
    o     Lock and unlock the order
    o     Set the deletion flag
    o     Post goods receipts for the order
    u2022     You can still enter confirmations for a technically completed order. In order to prevent this, you must create a user status that does not permit confirmations.
    u2022     The storage location and account assignment data entered for the order are fixed and can no longer be changed. However, the order can still receive costs, for example, through incoming invoices for materials delivered and used.
    If no settlement rule has yet been maintained for the order, the system creates one automatically. If missing data makes this impossible, the system takes you to the screen for maintaining the settlement rule.
    u2022     All the existing purchase requisitions for the order are flagged for deletion.
    u2022     All the existing reservations for the order are cleared.
    u2022     All outstanding capacities which have been scheduled for the order are cleared.
    u2022     All the notifications for the order are also completed, unless prevented for one of the following reasons:
    o     The Complete notifications indicator was not set in the Complete dialog box.
    o     One or more tasks have not been completed.
    o     A user status in the notification prevents it from been completed.
    u2022     If the order was created using a maintenance plan, the date of the technical completion will be used for the further Scheduling of the Maintenance Plan.
    You can make changes to the maintenance process procedure when completing orders. You can, for example, prevent all users that are allowed to complete orders and notifications from using this data simultaneously to change the scheduling of maintenance plans. For more information, see Separate Completion of Maintenance Call Dates.
    - pithan

  • Outbound IDOC- Goods movement

    Dear Experts,
    We have requirement to trigger idoc for MB1B, MB1C, MB0A, MB01, MIGO where we have
    to create IDOC on goods movement on all these transaction.
    We have found standard IDOC "WMMBID01" for goods movement. But we are struggling
    assign with output type on transaction basis.
    Is the same IDOC will use for all "MB1B, MB1C, MB0A, MB01, MIGO" transaction?????
    How we can define output type for all these transction?
    Is standard IDOC "WMMBID01" will use for all these transaction or different IDOC will use
    for diffenet transaction?
    Looking forward your valuable guidance...
    Will be thankfull to you all...
    Regards,
    This question is in general several times repeated in your different threads, hence I am locking this one
    Edited by: Jürgen L. on Dec 20, 2011 2:15 PM

    Thanks John. Even if I use an output type to trigger IDOC, do I still need to code to populate segments?
    BTW, I tried creating an output type but did not create any IDOCS. Steps I did are:
    1> Create a new output type Z001 with proc. program as RSNASTED and form as EDI_PROCESSING.
    2> Create an OUTBOUND partner profile for LS type and use WMMBXY message type. I am using an XML port to create a IDOC file and NOT use another SAP system to txfr the IDOC, so it creates IDOC as a flat file on app server.
    3> I then do MB1C with 'print' checked and post a 501 mvt type.
    BUT NO IDOC IS created? What am I missing here?
    I suspect improper creation of output type, I did play with it trying diff. options but nothing seems to work!
    Let me know if I am doing something grossly wrong here!
    Thanks and appreciate ur help!
    Bhaven

  • Ipod nano 4g works good as locked. turns off when unlocked

    works good as locked. turns off when unlocked

    If you have the Hold switch ON and it's connected to power, the iPod is ON...  What happens when you disconnect it like that?  Does it stay on for any length of time?  Does it immediately turn OFF?
    If it immediately (or within a few seconds) turns OFF, I'm not sure what's going on with the Hold switch, but your battery is probably worn out and not holding a charge. 
    If it stays ON, you are saying it will turn OFF if you move the Hold switch to the OFF position?

  • COGI : how to display the time of  a goods movement?

    Hello,
    through COGI, I get the good movements with error per material.
    When I open the errors list for a material, I get the posting date for each good movements but not the time! 
    Could you please let me know how to do for displaying error time or posting time in this screen?
    Thank you for your help!
    François

    Deleted

  • Confirmation of Production Order without all Goods Movements

    Hello experts!
    I've tried to do a confirmation of one material that had only one level BOM with one material, but, when I try to do the Goods Movement in CO15, only the component appears. To another materials the goods movements was done for the two materials.
    I've changed routing, BOM, material record... but I didn't have success.
    Any ideas?
    Regards,
    Rodrigo.

    Dear
    You might have kept Backflashing Indicator -1 in MRP2 view  and while doing CO15-In goods movement tab -You will find BOM compoenets with movement type -261 .But your requirement is to carry out the Auto GR-101 while confirmation posting .
    Please do the following :
    1.Goto -OPJK-Define Production Scheduling Profile -Here for that scheuling profile which have been assinged in Work Scheduling view -Mark the Auto GR active .
    2.In the routing  or in the Production Order -Operation Overview screen -Goto Operation Details -Slect the last operation -Assing the Operation Control Key which has Auto GR active like SAP Stanrda PP03 .Please check in OPJ8-Slect the Operation Control key -Hit the details information -Check the Auto GR Marked .Based on this while you will do CO15 , GR-101 (MIGO-101) will happen .
    Hope it helps
    Regards
    JH

  • Goods movement with serial numbers

    Hi,
    1. Is there any report or table where I can see goods movement of material with their serial numbers?
    2. Also in MMBE i can see 'On order stock'. I know this is PO open PO quantity.
    Now this open PO qty will not be there against any storage location. I got some stock on this status in some storage location.
    How I can move to 'unrestricted stock' status?
    Please advice.

    Hi
    Check these tables,
    SER00 General Header Table for Serial Number Management
    SER01 Document Header for Serial Numbers for Delivery
    SER02 Document Header for Serial Nos for Maint.Contract (SD Order)
    SER03 Document Header for Serial Numbers for Goods Movements
    SER04 Document Header for Serial Numbers for Inspection Lot
    SER05 Document Header for Serial Numbers for PP Order
    SER06 Document Header for Serial Numbers for Handling Unit-Content
    SER07 Document Header for Serial Numbers in Physical Inventory
    And in order to move On Order stock to Unrestricted you need to close those POs by doing GR.
    Hope it helps
    Rgds
    ramesh

Maybe you are looking for

  • Report O/P in graph.(all in one vetical line).

    I want outpout  in graph ..my requirement is i have to create a report equipment wise calculating oee in graphical format. suppose i had a equipment ..in my report i have to calculate its idle time ,maintaince time and number of batches processed thr

  • Web dynpro application not available when running iview wizard

    When I run the iview wizard to create a web dynpro iview I find the folder local/<MyProjectName. But when opening myProjectName folder the Application is missing, so I cannot create the iview. When running the web dynpro Content Administrator I find

  • Installation failed on disk 2 - I/O error - now I am stuck - HELP

    Reinstalling the operating system - disk 1 works ok, then during the garageband loadup on disk 2 the log shows I/O error. The installation then says "try again", which will only accept the second disk again. The cancel keys, and all menu items are gr

  • Fans - What's Up???---A follow up

    A few weeks ago I posted the referenced topic, and got lot's of good help and advice which I thank everyone for (and a special thanks to maclover.) If you're interested in the origingal discussion, you can find it here: http://discussions.apple.com/t

  • I have recently been asked to research information for the following.

    I have recently been asked to research information for the following. Add a backend SQL server to the current Access 2010 set up we have in place as the front end, for 11 users. Upgrade to Access 2013 which I understand includes the SQL at no additio