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

Similar Messages

  • 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

  • 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.

  • How to know the error in the goods movement

    Hai gurus,
    a) while doing goods issue and goods receipt , if there is any
        error  in the goods movement how to know the same and correct it.
    Regards,
    sekar chand

    Hi,
    If You are doing GR and GI during order confirmation then you will find a tab for Display Error(Bell Ikon).At the time of any error you will find this icon highlighted.press it you will find details error description and proposed solution.
    Regards,
    Dhaval

  • Error in posting goods movement with production order

    Hi all,
        I have a custom program that post goods movement using function  'Bapi_Goodsmvt_Create'.
    The material passed into is a FERT material along with movement type 101,  goods-movement code = 02', movement indicator = 'F'.    This function gives an error :
    'E M7 022 Order quantity exceeded by 21.390 cse : item xxxxxx, plant xx prod order xxxxx'.
    The material is a take weight material.   In production order, it came up to 910lb for total weight.
    In goods receiving this material, i have changed the material from 910lb to 1016.950.
    This is where the error came in.  Note: 21.39 cases = 106.95 lb.
    We had such take weight material worked before.
    Can anyone pls suggestion what can be done about this ?
    Thanks
    Joyce

    Hi Dario,
        Because the finised material is a take weight product, it should be ok unless there is a tolerance in the takeweight.   Also the production order is generated from 2 sales orders.
       To migo a production order, would it be A01 Goods Receipt and  R08 for prod order ?
    Thank you.
    Joyce

  • Error when posting good movements

    hi friends,
    im trying to post 503 goods movement against a particular material and im getting a error message:Change the inspection stock of material 603507 in QM only.what can i di to eliminate this error..please help...thank you so much...

    in OBYC transaction
    Double click on
    Offsetting entry for inventory posting - GBB line
    Enter the char of account - GBCA
    find the following combination
    Valuation modifier = GB01
    General modifier = ZOB
    Valuation class = 1011
    For this combination you have to maintain the GL a/c. if this combination is not available then you need to create this combination of kyes and maintain GL a/C
    Please contact your Finance guy as it is MM/FI intergation aspect.

  • Idoc: post goods movement and batch classification

    Hi,
    I want to process a goods receipt to PO (mvt: 101) via Idoc for a batch managed part and also add some data into the batch classification.
    The idoc processing works (including the creation of the classification data). but as soon as I want to add data to the classification within the same function module I get a lock entry error.
    Can someone give me a hint of how to do that? what is the best option to fill additional classification data (maybe a BAPI?)
    Thanks for any help!
    Right now I added the following coding to the function module (copy of IDOC_INPUT_MBGMCR) which processes the idoc (here I get the error that the data of material XXX is blocked!):
        PERFORM dynpro USING:
                'X'  'SAPMM03S'     '0105',
                ' '  'RM03S-MATNR'   batch_data-matnr,
                ' '  'RM03S-WERKS'   batch_data-werks,
                ' '  'RM03S-CHARG'   batch_data-batch,
                ' '  'RM03S-LGORT'   '    ',
                'X'  'SAPMM03S'     '0200',
                ' '  'BDC_OKCODE'   '/7',
                'X'  'SAPLCTMS'     '0109'.
        IF batch_data-trace1 NE space.
          PERFORM dynpro USING:
                ' '  'RCTMS-MNAME(1)'  'TRACECODE1',
                ' '  'RCTMS-MWERT(1)'   batch_data-trace1.
        ENDIF.
        IF batch_data-trace2 NE space.
          PERFORM dynpro USING:
                ' '  'RCTMS-MNAME(2)'  'TRACECODE2',
                ' '  'RCTMS-MWERT(2)'   batch_data-trace2.
        ENDIF.
        IF batch_data-lotno NE space.
          PERFORM dynpro USING:
                ' '  'RCTMS-MNAME(4)'  'STM_LOT',
                ' '  'RCTMS-MWERT(4)'   batch_data-lotno.
        ENDIF.
        IF batch_data-difflot NE space.
          PERFORM dynpro USING:
                ' '  'RCTMS-MNAME(5)'  'STM_DIFFUSION_LOT',
                ' '  'RCTMS-MWERT(5)'   batch_data-difflot.
        ENDIF.
        PERFORM dynpro USING:
                ' '  'BDC_OKCODE'   '/3',
                'X'  'SAPMM03S'     '0200',
                ' '  'BDC_OKCODE'   '/11'.
      post changes
        CLEAR:  msg, msg[].
        l_mode = 'N'.
        CALL TRANSACTION 'MSC2' USING tbdc MODE l_mode UPDATE 'S'
                                MESSAGES INTO msg.

    Sorry! resolved it myself. I was jsut a commit missing.
    I called the BAPI_TRANSACTION_COMMIT before processing my routine to update the classification data and it worked.

  • Goods Movement with Batch Management

    Hi,
    During Goods Receipt or One Step transfer posting, I need to search first for a batch with characteristic values, and if a batch already exists in the system with the same characteristic values it posts to the same batch number. If a batch doesn't exist with the characteristic then it assigns a new batch number for the items to be received.
    Ex. I have batch num 1 in the system with characteristics X and Y. I receive new item, and input characteristics X and Z...since it doesnt exist it creates a new batch 2. but if I receive another item with characteristics X and Y, it uses batch 1.
    Is this possible?
    Thanks,
    Lee

    Hi PSantosh,
    How does Batch Derivation exactly work? My purpose is just to get the Batch Number unique with the Lot num and Expiration Date.
    So I cannot have an entry for example:
    Batch Num 001, Lot1234, 01/25/2008
    Batch Num 002, Lot1234, 01/25/2008
    During goods receipt, if I get a material with Lot1234, 01/25/2008 from a Vendor, it must post only to the existing Batch num with Lot1234, 01/25/2008. If it doesn;t exist thats when a new batch is created.
    Thanks,
    Lee

  • New Goods Movement Type for Inventory Manager

    Hi Guys,
    I need to change a goods movement code used on Mobile App Inventory Manager 4.0 to a custom (Z) goods movement code, the fileds are the same so I thought changing the constant will work for this as we do a GoodReceipt with no reference to Purchase nor Production order (gmCode = 501) with a custom, copied from standard, Movement type gmCode = 950 (this is a well known practice on ERP). I have changed only the global constant on my copied IM application, for testing purpose and the local GR was created with gmCode = 950 instead of gmCode = 501, but when I was transmiting in order to create goods movement document on SAP, the application throws an error like: "PostReceiptsSteplet - Goods Movement Impossible with good movement type 950 - Server error". So I would like to know first:
    If is it possible to include or change the standard gmCode for custom gmCode on mobile app Inventory Manager 4.0?
    What would it be the Best Practice to do this? The steps to include a custom movement type, now I know is not only changes on global constants
    I have checked the java doc for this method "PostReceiptsSteplet", and it did not say anything about the constructor .... or how is used... what has inside... what is the condition of execution.... nothing ...
    Please Help... Mark Pe Stephen Streeter Jason Latko Omar Candelaria Manju Venkatesha
    BR,
    Mariana
    Tags edited by: Michael Appleby

    Jason Latko
    If those java source code are so troublesome to request... why should I request them if I won't change the app's base functionality??. Instead of requesting those java source code, the documentation of the java doc should improve, well the documentation in general for this app should improve ... Is only a suggestion ... I'm trying very hard not to ask for those source code, because what Mark Pe  answer me on another post: If I ask for them, a disclamer must be signed because I could change a base functionality... and that's perfectly fine. But if I need to extend a class and add a few field: why do I need to ask for the code instead of checking the documentation and apply the customization needed?
    Now I have some trouble extending a SAPOBJECT, because I don't quite understand the design of how you manage MaterialDocument / MaterialDocumentItem on the app. But I will post this question on another thread
    BR & Always Thankful
    Mariana

  • COGI O GOODS MOVEMENTS

    Can anyone tell me the steps to use COGI ?
    I have enough stock and this is the message:
    0 goods movements were executed
    Regards

    Dear,
    Go to COGI then correct the errors.
    COGI is used for handling failed goods movement due to a variety of reasons. After correction of errors, the failed goods movement can be effected by T Code COGI.
    Detailed display of errors
    Opportunity to correct failed goods movements
    Option of posting goods movements a second time
    More info:
    http://help.sap.com//saphelp_47x200/helpdata/EN/b1/c04d1b439a11d189410000e829fbbd/frameset.htm
    Regards,
    R.Brahmankar

  • 'Goods movement not possible with mvmt type 102'

    Dear Experts,
    I have to reverse the GR and I am using BAPI -> BAPI_GOODSMVT_CREATE and passing below information but I am getting error message as 'Goods movement not possible with mvmt type 102'. Could any one please tell me what would be the possible reasons to get this error and how can I fix this.
    goodsmvt_header-PSTNG_DATE = 20110705
    goodsmvt_header-DOC_DATE = 20110705
    goodsmvt_code-GM_CODE = 06
    goodsmvt_item-PLANT = 1400
    goodsmvt_item-MOVE_TYPE = 102 <<< Reversal movement type
    goodsmvt_item-ENTRY_QNT = 02
    goodsmvt_item-ENTRY_UOM = SET
    goodsmvt_item-PO_NUMBER = W299999508
    goodsmvt_item-PO_ITEM = 0010
    goodsmvt_item-MVT_IND = B
    goodsmvt_item-XSTOB = ''. << space to use reversal types
    Thanks in Advance
    Venkat

    Hi Please provide Material Document, Document Year and Posting date as shown below
    MATDOCUMENTYEAR = DOC_YEAR.
    GOODSMVT_PSTNG_DATE = POSTING_DATE.
    MATERIALDOCUMENT = MAT_DOC
    CALL FUNCTION 'BAPI_GOODSMVT_CANCEL'
        EXPORTING
          MATERIALDOCUMENT          = MATERIALDOCUMENT
          MATDOCUMENTYEAR           = MATDOCUMENTYEAR
          GOODSMVT_PSTNG_DATE       = GOODSMVT_PSTNG_DATE
        GOODSMVT_PR_UNAME         =
       IMPORTING
         GOODSMVT_HEADRET          = WA_GOODSMVT_HEADRET
        TABLES
          RETURN                    = IT_RETURN
        GOODSMVT_MATDOCITEM       =
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          WAIT = 'X'.

  • "Goods Movement" is not allowed (ORD 100020)

    When I do goods receipt via tcode MB1C and movement type 521 without production order number.An error occurs.
    "Goods Movement" is not allowed (ORD 100020)
    Message no. BS 007
    Diagnosis
    The current status of object 'ORD 100020' prohibits business transaction 'Goods Movement'.
    Procedure
    To process business transaction 'Goods Movement', you first have to change the status of object 'ORD 100020' to allow the transaction 'Goods Movement'.
    This gives you an overview of the system and user statuses that affect the transaction. A transaction can only be executed if there is at least one status that allows it and there is no status that forbids it.
    If I input a production order number in ORDER field of account assignment block,I can complete the action sucessfully.So I want to know the reason.Can you help me?

    Hi,
    Pls check with the status profile in OPJH.
    Check whether any user status has been set in that status prifile. ( say for ex .User status which forbids the the Goods receipt unless the Confirmations are completed )
    Regards,
    Sheik

  • Cannot cancel a GR: Goods movement not possible with mvmt type 502

    Hi,
    I was trying to cancel a goods receipt for an inbound delivery. However I ran into trouble with  the following error message.
    Goods movement not possible with mvmt type 502 .
    Is there some configuration that I would be needed to make before I can cancel a goods receipt?
    Thanks,
    Arup

    To expand on the above some,
    check the mvmnt type used for the origanal GR and use the coresponding reversal mvnmt type.
    or confirm for us that the origanal receipt was in fact a 501??
    Edit: or use migo to cancel the GR doc.
    cancelation > material doc
    this will only be possible if the stock is still available (same status as well)

  • Production Order Confirmation saved but no goods movement happening

    Hi Folks,
    I have implemented an enhancement while Production Order Confirmation ( txn CO11N). The enhancment works as follow:
    I have a production order with quantiy 2. Now I am making confirmation for quantity 1. In the enhancement, i have used a BAPI called BAPI_PRODORD_CREATE_FROM_REF to create another production order with the remaining quantity 1.
    As of now everything works fine and a new prod order is created with quantity 1.
    Now, I release this newly created prod order and make GR for the same. The problem here is, now when I try to confirm this newly created prod order ( txn CO11N), the confimation is saved but the goods movement does not happen. I get a message saying " Confirmation saved (Goods movement 0, failed 1) ".
    The original order is of type PP01 and everything works fine for it. The newly created order is of type ZRWK (rework) and for this only confimation is saved but no goods movement.
    Request you to please suggest how can I remove this error and make goods movement as that of for the original order.
    Thank you.
    Regards,
    Sud.

    Hi
    Check if you have something in the tcode COGI. Perhaps you don't have enough stock of raw materials
    Regards
    Eduardo

  • Batch Determination when Goods Movement done from DBM side

    Hi SAP Experts,
    Greetings to all of you!! I wanted to ask you a question:
    We have configured DBM and Automatic Bacth Determination is active in our system from MM side.
    and when we click the "Goods Movement" button in the DBM screen (this should issue goods with mvt type 261) we get error message saying: Enter Batch".
    There is no field on DBM screen where I can enter the batch number. And the system is also unable to determine the batch (i was expecting the batch will be assigned automatically becasue the Batch Determination was configured in the system).
    Please tell me if there is any customization missing from DBM or MM side to perform the goods movement.
    Moreover the "Goods Movement" is working fine for materials which are not batch managed.
    Thanking you in advance.
    Regards,
    UK

    Hi UK,
    i am sorry i don't think DBM is currently supporting batches.
    BR
    Robert

Maybe you are looking for

  • Overhead Projector Extension for VGA?

    I have an overhead projector (connected to a Smartboard) in my classroom and I want to connect my iPad 2. I know I can connect using the VGA adapter. My question is, is there some type of extension cord so I can attach to the VGA connector up on the

  • How do I eliminate background noise from a recording?

    I loaded an audiotape from a cassette to my MacBook. There is too much background noise and I don't know how to get rid of it. Is it possible? Thanks, Miriam

  • Leaving charger in for long time?

    Is it safe to leave the battery charger plugged in even if the indicator if green. For instance if I am on AIM and I am away for the day I might keep the charger in so that I don't lose power. Perhaps I am downloading some things and want to leave it

  • VMM 2008 R2 SP1 support SQL 2008 R2 SP2?

    I plan to install service pack SP2 to SQL 2008 R2 SP1 which host OM and VMM Database. Does VMM 2008R2 SP1 support this version of the SQL server? As i know OM2007R2 supportes SQL2008R2 SP2 since CU4. 

  • Pb with "Get Variant Attribute" LabVIEW 6

    hello I want to find the value corresponding to the variable name in a Variant structure. For this purpose I use the "Get Variant Attribute" function, but I do not get any good result : no result in the get value, and also when no string name input i