Dequeue Batch/Material

Hi,
Upon GR i need to carry out GI also. Hence I did configure output type for GR that would trigger a program as part of output determinatioin procedure. Here in this program i'm using bapi call for doing GI. Now, the problem is when i execute it and check in debug mode the bapi call is returning error message "Batch XXXX of material XXXX83 is already locked by <MY UID>".
The lock object corresponding to this as checked in SM12 is EMMCH1E. But when using the dequeue function, i couldnt still see the lock in sm12. is there a way to sort it out?

Hi,
it's not a good idea to remove that lock. There is a good reason for it. If you remove it then you may get inconsistencies in your system. I strongly advice you not to remove that lock.
You need to find a different way how to create GI automatically after GR creation. One way is to submit a background job which will wait until GR is created and then it will create GI. Another possible way is to use workflow for this.
Cheers

Similar Messages

  • Batch & Non-batch material - 1 mat. doc - 2 EI automatically

    Hi,
    I am facing an issue while capturing Excise Invoice (EI) at depot.
    If non-batch material and batch material are combined into one material document which is generated after post goods issue (PGI) to create EI, two separate Excise Invoices are getting generated automatically.
    But while capturing Excise Invoice for both materials  at depot, I am NOT able to capture in T-code J1IG by Goods receipt material documents.
    How to handle such case? Could you give us some suggestion?
    Thank you in advance.
    Best Regards
    Anbu

    Does the ext directory have the php_oci8.dll? In the original steps the PHP dir is renamed. In the given php.in the extension_dir looks like it has been updated correctly. Since PHP distributes php_oci8.dll by default I reckon there would be a very good chance that the problem was somewhere else. Since this is an old thread I don't think we'll get much value from speculation.
    -- cj

  • Cancel insp.lot for batch material with serial number?

    We have a problem with an inspection lot....
    A few months ago we made a goods receipt for batch material... it ended up in Q- stock.
    The weeks went by and the material was changed ito a serial number material... that process works fine...
    But now we want to scrap the material that is batch-handeled ... the inspection dont want to let go.. it want serial numbers... even if I create serial numbers for this the inspection lot
    dont let me register any numbers.. So I cant cancel/delete it... And after all I just want to scrap the batch...
    Can someone help me?
    // Andreas

    if stock of that material with serial numbers exist, then scrap that stock and disable the serial number for the material by deleting the serial number profile in the work scheduling view of the material master.
    then try cancelling the inspection lot. After cancelling the inspection lot, activate the serial number for that material again and bring back the scrapped stock into the unrestricted use.
    Note: please advice the users not to post any stock for that material till you complete this or else block the posting t.code for all the users.

  • Shelf Life of the Batch Material

    Hi,
    The shelf life is maintained for the batch material during GR process .IF the shelf life expired how to bring the stock under quality inspection for re-checking?
    Thanks in Advance.
    Regards,
    Renuga.A

    Hi Renuga,
    Kindly go through these threads it will surely solve your query.
    [Link - 1|Re: Inspection type 09 process]
    [Link - 2|Recurring inspection problem;
    Regards,
    Shyamal

  • QM:Setting for Recurring Inspections(every 2 hour)for Batch Material Stock.

    Hi, all =)
    I hope, you know necessary settings for my situation. Because on our russian SAP-forum I haven't got answer until now.
    Situation:
    We have  Batch Material Stock on the plant.
    And it is necessary to do for that stock Quality Control every 2 hours.
    I activete 09 type of control in Material Master.
    Create quality specification for material.
    Create in QA05 Schedule\ Schedule periodically \  Repeat period - 2 hours.
    But it doesn't work   - inspection lot does not create.
    Who knows what I shall to do?
    Thanks for answer.
    Masha.
    Edited by: Maria Soloviova on Jun 26, 2008 12:51 PM

    Hi, Craig
    Want to share with you my progress.
    I config QM in the such way:
    step\ transaction\ config
    Master Inspection Characteristic     \ QS21 \     +
    Material -> Quality management-> Inspection Type \     MM01 \     09
    QM-stock\     MM01 \     -
    Material Specification\     QS61 \     -
    Batch valuation without material specification \     spro -> Plant Customizing\     +
    Inspection Plan \     QP01 \     +
    Inspection Points \     active-no     \  +
    Inspection Points Type -> Last inspected sample is valid \     spro     \ 150: +
    Physical Samples\     active- no     \  -
    Sample-drawing procedure\     QPV2  \     -
    Sampling Procedure \     QDV1     \  +
    Inspection Method     \  QS31 \      -
    Recurring insp.: job planning     \  QA05 \   +
    Everything is ok, but when I want to record result (in qe51n) for inspection point and at the end of the process press the button "Inspection point" -> "Batch carac." -> "Continue"  -> error appear "ABAP/4 error during dynamic assign beyond program bounds".
    Is it because I haven't edit FM from config 150 Inspection point?
    I don't know how to do it. And deside to config all the process before give to edit that FM to our ABAP-consultants.
    Thanks a lot.
    Best regards
    Masha

  • Created batch material  and made po, migo,miro now change to non batch.

    Hi All.
    I have created Batch Material mm01 with  batch management check box.
    Created PO and donetransaction of  migo, miro.
    Now i want to change to non batch material.
    i like to remove batch management check box in mm02
    Regards.
    Parameshwar.
    Edited by: Csaba Szommer on Jul 7, 2011 9:23 PM

    Thanks Kunal.
    I will Click on display errors  for the list of open documents.
    Then i will clear all documents.
    Next I will change MM02 by removing Check box to normal material
    It should work for me.
    My Doubt is after this also i need to run the program to change to non batch material.
    Clarify me about program running.
    Regards.
    Parameshwar.
    Thanks MM dudes.

  • How to Unlock Batch/Material in my code?

    I would like to unlock this batch/material in the system at runtime. The problem evolves from another program that gets called and submitted from the origianl program that locks the DB in the first place. Bit, I'd need to do the update in the submitted called program. How do I unlock to get rid of the message below?
           Batch KJKJ01 of material 8232143636 is already locked by USERNAME
         Thank-You.

    I am locking the data because I am executing from a calling program. It is a material and batch that is locked and needs to be released. So what exactly is the name of the FM I am calling.
        DEQUEUE_OBJECTNAME ................What goes in objectname?
         Thank-You

  • Remove a batch material

    Hi
        An old batch material appearing with some quantity in MB52 and MMBE. Transfer posting to unrestricted is unable to done since the QM view is activated and moved to quality stock . How i can make this batch not appearing in MB52 and MMBE.

    Hi Jeyakanthan,
    I am having problem with three materials.
    For one material the expiry date is the problem and the date is  11.05.10
    The movement type is 101.
    If it is automatically moved to quality there should be movement in MB51 but it is not showing
    How i can move from quality to unrestricted?
    first to change the expiry date from MSC2n
    then...

  • Std SAP Programme , transfer the GR Batch Material to Block Stock.

    Hi All ,
    Could you please tell , which is the Std SAP Programme , transfer the GR Batch Material to Block Stock. (ECC 6.0)
    Thanks & Regards,

    such transfers will be made with movements, movement can be created with MIGO transaction or the old transaction MB1B (and several more)
    Just goto SE93, enter the transaction code, display the detail and you will find the program name.

  • Sales ret order batch material

    Hi all.
    In my sales scenario Batch management is active. In sales Invoice for single batch material two line items are generated . one with zero qty and other with actual qty . Now my pblm is that when i am creating sales return order with ref to invoice both the line items are geting copied to sales order. i dont want to copy the line item with zero qty . pl. help is there any solution to copy only req. line item .

    In copy control settings, in t.code VTAF, at item level, there is a field copying requirements. Check the routine assigned in that field. In t.code VOFM (menu copying requirements->orders), copy the routine and create a new routine with additional logic, to check for billing document line item quantity not equal to zero. This way, zero quantity field can be avoided from copying.
    Regards,

  • Archiving batch material

    I want  to archive a batch material. I've run the job created by tx SARA, but it appears an error in the log saying that this material have a reservation. I went to the reservation list and it doesn´t exist any reservation for this material ...
    any ideas?
    thanks!

    Check in RESB for that material/plant/batch
    Is FS tick is present ie. RESB-KZEAR = X or not check.

  • Batch Material _Restricted Use

    Dear Exports,
    While posting the stock (Batch Material) in the MB1C is taking as a restricted stock automatically. whats went wrong in the configuration.
    if we post the non batch materials in the MB1C transaction, it works fine and posted as as un restricted use.
    Generally materials falls in the unrestricted use.
    Please let us know what setting i missied  for this.
    Early response will be highly appriciated as this needs to resolve ASAP.
    Thanks
    Raju.

    Dear Janardhan
    I have gone through almost all your threads which were marked as "Answered" and observed that in none of your threads, you have awarded points to the contributors who have spared their time and given suggestions which is unfair on your part.
    What the worst is that you have been closing the threads with no proper feedback.  As you may be aware, while closing the threads, you need to give explanation as to how you have solved the issue.  Is it bcoz of the suggestion given by members or on your own, you found the solution.
    If your issue is solved due to the suggestion given by members, then you should respect and say thanks by way of awarding points to those members.
    Though I have not given any suggestion, I thought of making a request on behalf of members who have given suggestion to you. Hope you will take this in right spirit and keep continuing with what I have requested. 
    Kaushal

  • Batch & Material not possible in C.Record

    Hello Friends,
    We are not able to create a Condition Record with the key combination- Batch & Material. Err: "Object Batch not provided with characteristic "Batch Code". (Note other fields!)". What can be the problem?
    Regards & Thanks.
    Edited by: R S on Dec 22, 2008 1:55 PM

    Not got any solution.

  • Archiving batch- material used in inspection lot error

    Hai,
    I am trying to archive a batch, but I do receive the below message:
    u201CMaterial is used in Inspection Lotu201D. Message number W4123.
    Prior to this I archived the existing Inspection Lot using u2018QM_CONTROLu2019. The status on the inspection lot is now ARCH. There are no other open inspection lots for this material/batch.
    I ran MM_SPSTOCK to archive the associated batch number. But still I get message "Material is used in Inspection Lot".
    Note We are not using Long term Inspection.. We are in ECC 6.
    Did anyone has this same issue before?
    Thank you in advance!
    Sonali

    Sonali
    Just check the existing batch & Material combination - that particular material -recurring inspection09 is selected or anyone of the batch & Material is QI stock.
    Thanks
    Sami

  • Auto scene cutting on already batched material?

    During batching, one can check a box to get the batched video clips divided into scenes (ie. the cuts one had during recording).
    Is there a function to do this with already batched material, say with only a section of material? I do this a lot manually in order to get a full overview of my things, and I'd like to save manual cutting time.
    Chris Engelbrecht, Copenhagen

    I presume you are talking about DV as Premiere does not provide HDV scene detect. There is a reasonably priced, stand-alone program called Scenalyzer that will chop your captured video files into clips using either timecode changes or optical scene change detection.

Maybe you are looking for