Batch number  in MIGO

Hi All,
I want to find a user exit which will give the oldest batch number (MCHA-LWDET) of semi-finished product during the goods receipts of the finished prodocut in MIGO.
Could you please give me any hints to find out the user exit for this.
Regards,
Sekhar D

Hi ,
Thanks for your Quick reply.
Here Batch no is the mandatoy field. So I cant post without entering the batch number.
But BADI is triggering while posting the document.
Any more inputs plz...
Regards,
Sekhar D

Similar Messages

  • Batch number during MIGO

    hi,
    how to assign the batch number  while doing GR in batch tab at item level.( i want to create batch and assign during MIGO )
    regards
    venga

    Hi
    Activate batch mamagement material level set configuration below path
    SPRO >logistic general >batch management >configure batch determination for inventory management
    batch mamagement tick in material master mandetory
    Regards,
    Vivek

  • Automatic internal batch number in MIGO

    Dear All,
    I have set up internal batch numbering.
    1) If I do MIGO with 311, the system is not proposing a new batch number. The field remains blank. I know it should propose the field if we do 'Check' in MIGO. Am I missing some settings?
    2) Secondly, is it possible to have 'cREATE' button for batches in MIGO transaction?

    311 is a transfer posting, do you really want each time new batches when you move the material from one storage location to another?
    if yes, then try the following:
    Make message M7 199 an error message in OMCQ and try again.

  • Different Number Range for Batch number in MIGO

    Hi Techies,
    I have a requirement to assign the internal range number to Batch Number as K120101701 for CHARG field in MIGO. Where K1 is the Storage location, 2010 is year, 17 is current date 01 is the serial Number.  Next day the number range should be K120101801, 18 is next day's date. How can I achieve this? 
    Thanks & Regards,
    Muralikrishna P
    Edited by: muralipsharma on Nov 17, 2010 5:35 PM
    Moderator Message: Do not dump your specifications here for others to do your work. Try on your own first.
    Edited by: kishan P on Nov 18, 2010 11:31 AM

    just check with following code . it will give all badi and user exit in the transaction . in selection screen u have to pass tcode and package
    <<copy-paste from http://naveenvishal.wordpress.com/2009/07/05/user-exits-and-badi-list-for-a-t-code/ or some other location>>
    Moderator Message: DO NOT copy-paste other people's work without giving them due credit. If you continue this, you user-id will have to be deleted.
    Edited by: kishan P on Nov 18, 2010 11:36 AM

  • Vendor Batch number in MIGO

    Hi All
    The Vendor Batch ( MCHA-LICHA)  Number field is of 15 characters in MIGO transaction, where as we receive many material with batch numbers more than 15 characters.
    What is the possibility of extending the length of this field.
    Kind Regards
    Samson

    Dear Gabriel,
    Can you brief how did you resolve your issue, I am facing the same issue with my client.
    Regards
    Vivek Kumar

  • Change Batch number while goods receive for PO

    Hi All,
    I have a new requirement. The requirement is need to change the batch number in SAP while doing goods receive for the PO .
    Please tell me how i can achive this.
    Thanks
    pabi

    Where exactly is the problem? do you get an error message while changing the batch number in MIGO?
    Usually you can just overwrite the defaulted batch number.

  • Duplicate Batch number creation during MIGO wrt PO

    Dear al SAP
    We have activated batch management at material level and set external number range. During MIGO say for the first line item, I have entered external batch number as 123. If I give the same batch number for the second line item of the same material code, system should throw an error message.
    Pls explain in detail SPRO setting required for this.

    In Logistics General -> Batch Management -> Creation of New Batches -> Define Batch Creation for Goods Movements select the option "E" Manual and check against external number range

  • Automatic Batch Number Generation in tcode MIGO...

    Hi Experts,
                     There is automatic Batch Number is generated  after clicking on Pushbutton  "Check" in transaction code MIGO. Instead of that user want Batch Number Generation after clicking on Pushbutton "Post" . Can anybody tell me the procedure for the same..
                    Thanks in advance.
    Best Regards,
    Vinayak

    HI Vianayak,
    You can implement a Badi for your logic.
    You can implement Badi :MB_MIGO_BADI and write your logic in method CHECK_ITEM .
    Here you can restrict the Batch number based on Fcode for the Check and Post buttons.
    Like if the user click on Check button: based on the fcode for the check button u can restrict it and similarly if the user click on Post button you can pass the value for Batch number. This method get called in both the cases.
    Hope this solves your problem.
    Regards,
    Satyam

  • MIGO: user exit for checking batch number

    Hello,
    When using MIGO to do goods receipt (101 mvt) I need a user exit in each time a line is added to check the batch number entry. If the batch number is empty for certain materials issue a error message to the user.
    Thanks,
    Peter

    where is your problem then?
    If you create batches automatically with 101 ,then each line will get its batch from SAP, no need to check if there something entered manually.
    Why do you customize auto creation of batches, while you want the user to enter the batches manually?
    can you give a bit more background?

  • MIGO field selection - vendor batch number

    I created a new movement type by copying from the standard SAP movement type 501 (GR w/o purchase order).
    When posting a GR with this movement type and a batch-managed material, the Batch field is open for entry but the Vendor Batch field (GOITEM-LICHA) is suppressed. I suppose this is because SAP does not expect you to enter any vendor-related information if you do not have a PO. And similarly if you have vendor-related information (like a vendor's batch number) you should be using a PO.
    However the business requires a Vendor Batch number to be entered in this scenario.
    Does anyone know how to make the Vendor Batch field open for input when using a specific movement type?
    I'm thinking maybe a BADI like MB_MIGO_ITEM_BADI is my only option. I've tried the MIGO field selection (OMJX) but couldn't make this work. Any input would be appreciated.
    Thanks!

    I am afraid I must confirm that, as you have already seen, it is not possible to enter a Vendor Batch (LICHA) in a goods receipt without reference to the purchase order with the movemement types 501, 511 or 561.
    There is no standard system setting or program code available which can set this entry as required or optional. This kind of requirement can only be achieved through a software modification,
    Also, please notice that although you can enter a Vendor Batch when posting a goods movement with reference to a purchase order, you cannot display it later with transaction MIGO:
    Please, kindly check the information contained under the attached note regarding this matter:
    330585 - MIGO: Vendor batch in material document display.
    As stated in this note, under the 'System response after the note is implemented' section:
    "After the attached correction instructions are implemented, the field
      can no longer be seen in the display of the material document for the
      vendor batch using Transaction MIGO. Displaying the vendor batch does
      not make much sense since it might have changed since the posting of
      the material document. The material document itself does not have the
      information of the vendor batch that was entered at that time. In the
      system, only the information of the current vendor batch exists for
      the batch."
    Sorry not having a positive answer ! =/
    Plauto

  • Retrieve batch from serial number in MIGO transaction

    Dear all  Gurus,
    My company already implement ECC6.0 with IS-Retail function. And I have some concern that my company would like to activate batch for control the stock at DC and Store level and some articles also control serial number.
    When I would like to move the stock (ex. stock transfer between storage location MVT 311) in sap system I need to specify the batch first and specify serial number later. But in the physical stock what we know is serial number. So would it be possible to specify serial number first and let's the system to find out batch from serial number?
    And one concern it's possible that serial numbers that I select maybe have different batch number.
    Ex. Serial Number 1 belong to batch A
          Serial Number 2 belong to batch B
          Serial Number 3 belong to batch B
    When posting in MIGO transaction it's should to split in 2 line
    First line Mat xxx      Qty 1 Batch A Serial Number 1
    Second line Mat xxx Qty 2 Batch B Serial Number 2, 3
    Have anyone already have some case like this? Please help to suggest possible solution.
    Best Regards,
    Kate

    Hi Kate,
    I have some experience in Batch Management with IS Retail ECC 6. I believe their is a valid solution to it.
    coming to your query of way to aviod manually assignment of batches and spliting it for the site to site stock transfer via mvt type 301 or 311.
    we need to create Batch Search Strategy and Sort Rule for it.  The steps to do it as follows.
    1. Create a  Characteristic via CT04 for batch handling in the search strategy with class type "23"table name "MCHA" and field name "CHARG". If you are working with fixed value of batches, define it as the characteristic values or if you have batches creating internally by the system, Put a * in it.
    2. Create a class in CL02 with class type "23" and assign this newly created characteristic to it.
    3. Now create a sort rule in CU70 and assign this same characteristic to it and select the ascending or desending check box based upon your choice of "FIFO" or "LIFO".
    4. Now create a new strategy for batch determination while doing different inventory movements. Go to Logistics General  Batch Management  Batch Determination & Batch Check  Strategy Types  Define Inventory Management Strategy Type. Copy the standard one and create one for you and assign the class and sort sequence created above to it and define the number of spilts of batches, should happen, if in case one batch is insufflcient to handle the required movement of stock. maximum it could be 999.
    5. Now create batch search procedure definition. Go to Logistics General  Batch Management  Batch Determination & Batch Check  Batch Search Procedure Definition  Define Inventory Management Search Procedure. Copy the standard one and create one for you and assign the condiiton type created in the step above (strategy) and save it.
    6. Now assign the class created above to all the relevant article via CL20N.
    7. Now assign batch search procedure to the relevant movement types. Go to transaction OMCG and assign the mvt type 301, 311 and other relevant movement types.
    8. Maintain the condition record for the Batch Search Strategy via MBC1 / MBC2.
    9. Activate Batch classification for goods movements via OMCV as per choice.
    I trust it will help you a lot. If you find and believe the same, please assign the relevant points to me.
    Kind Regards,
    Kunwar

  • Creation of Batch number

    Hi Experts,
    I have a probelm with the Transaction MIGO to restrict the ignore the batchnumber entered by the user.
    If the user is not enter the batch number, then i can generated the new number by using the following 2 UE's
    EXIT_SAPLV01Z_001 (ZXVBZU01)  & EXIT_SAPLV01Z_002 (ZXVBZU02) and it is working fine.
    If the user enters , then System first check that whether it is already exist in the Database . If it won't find then automatically it is considering the same number.Which needs to be stopped.
    Any body has an idea about this requirement, to ignore the user entered value.
    Actually, there are 2 more exists, EXIT_SAPLV01Z_011& EXIT_SAPLV01Z_012 there i can't change the value of the batch number.
    Any suggestion or Any alternative way or Any idea Please......?
    Warm Regards,
    Vijay

    Hi,
    I think you can restrict by using FM EXIT_SAPLV01Z_001, this i copied the FM documentation for your reference. Just read the FM documentation you will get an idea
    You can restirict by using automatic generation using number ranges
    <<Function module Documentation>>
    Functionality
    You can use this customer function call (CFC) to replace the standard number range (object, subobject, number range, and year) with one of your own. This is used subsequently to determine a new batch number.
    Number assignment is carried out using the central number assignment.
    The communication structure X_BNCOM contains the application data known up to this time. You can extend this structure in the DDIC using structure BNCOMZ.
    Using the parameter CUST_NO_INTERNAL, you can suppress the number assignment function. Then you can either generate a batch number in function module EXIT_SAPLV01Z_002 using your own criteria or suppress the entire number assignment function.
    Using the parameter MESSAGE_WHEN_AUTO, you can decide if a dialog box is to appear before a new number is assigned. This only happens during online processing.
    Example
    You can define internal batch number assignment according to your requirements via the enhancement SAPLV01Z with the exits EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002
    SAP delivers a total of 6 examples for batch number assignment:
    1. Copying the production order number to the batch number
    2. Copying the sales order number to the batch number
    3. Material-type-dependent batch number assignment
    4. Material-number-dependent batch number assignment
    5. Including the date in the batch number
    6. Including the plant number in the batch number
    For examples 1 and 2 you have to use the exits EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002.
    For examples 3 and 4 you have to use the exit EXIT_SAPLV01Z_001.
    For examples 5 and 6 you have to use the exitEXIT_SAPLV01Z_002.
    For a detailed description of the examples, see below.
    Prerequisites
    1. Internal batch number assignment via the customer exit is activated:
    To do this, in Customizing, choose Logistics general -> Batch management -> Batch number assignment -> Activate internal batch number assignment.
    2. Maintaining the number range object
    Two number range objects are provided for batch number assignment:
    Standard number range for batch number assignment BATCH_CLT
    Number range for material-type-dependent or material-number-dependent batch number assignment BATCH_MAT
    Activities
    1. Use the SAP enhancement SAPLV01Z:
    a) In transaction CMOD, create either a new project or use an existing project.
    b) Add the SAP enhancement SAPLV01Z to the project.
    2. Copying the example code:
    a) Choose Component.
    b) Choose Change.
    c) Choose:
    EXIT_SAPLV01Z_001 for examples 1-4
    EXIT_SAPLV01Z_002 for examples 1-2 and 5-6
    d) Choose Edit -> Copy SAP source text.
    The example code is copied to the relevant table in the function module exit.
    e) To copy the example, remove the comment symbol before the include it pertains to.
    3. Activate the project.
    When you activate the project, the enhancement with the function module exits EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002 comes into effect.
    Examples
    Example 1
    Copying the production order number to the batch number
    When a batch is produced, the process order number or production order number is copied as the batch number. This type of assignment is only possible in connection with process orders or production orders.
    Outwith an order, a number range is determined for batch number assignment. In this example, it is the standard number range BATCH_CLT.
    If the order has not yet been saved (for example, when a number is assigned when the order is created), a temporary number is created. A message appears prompting you to save the order. The system then assigns an order number which is accepted as the batch number.
    The system checks whether a batch already exists with this number. If this is the case, the system aborts internal batch number assignment with a corresponding error message.
    Note:
    In this example, note that the include LXVBZB21 in EXIT_SAPLV01Z_002 has to be activated at the same time, as actual batch numbers are not assigned until this is activated.
    Example 2
    Copying the sales order number to the batch number
    If a batch number is assigned in connection with a sales order, the sales order number is accepted as the batch number.
    If there are no sales orders, a number range object is defined with a number range from which the batch number is taken. If a batch already exists with this sales order number, the batch number is assigned externally.
    Note:
    In this example, note that the include LXVBZB22 in EXIT_SAPLV01Z_002 has to be activated at the same time before actual number assignment can take place.
    Example 3
    Material-type-dependent batch number assignment
    In the number range object BATCH_MAT a separate sub-object is created for each material type. Note that the number range object is maintained accordingly or batch number assignment cannot take place.
    For example, if the material "flour" belongs to raw materials, it is maintained in the sub-object ROH, and the batch number is taken from the same number range as the material "eggs" which also belongs to the raw materials group.
    Example 4
    Material-number-dependent batch number assignment
    In material-number-dependent batch number assignment, materials that are handled in batches must be maintained in the table BNMAT, which specifies the assignment of the material to the number range.
    If there is no assignment in the table, the system aborts batch number assignment. An error message appears informing you that batch number assignment is not possible and specifying the table that has to be maintained.
    Each material number is assigned a number range object, a sub-object, and a number range in the table BNMAT. This is how each material receives its own batch number range.
    The number range object BATCH_MAT is an example of this. The material numbers are divided into groups via their material type that match the sub-object. Each material number is then assigned its own number range by table BATCH_MAT. The number ranges used must be maintained in the number range object.
    Examples 5 and 6
    Including the date or plant number in the batch number
    The number ranges for the batch numbers must be defined in a way that ensures that no characters are overwritten by the templates.
    Parameters
    X_BNCOM
    CUST_NO_INTERNAL
    NR_RANGE_NR
    OBJECT
    SUBOBJECT
    TOYEAR
    MESSAGE_WHEN_AUTO
    MESSAGE_DONE
    Exceptions
    CANCELLED
    Regardas
    Krishna

  • Validation of batch nos. in migo for finished goods (fert)

    I want to validate batch number entered by user at the time of migo for finished goods (fert) against the batchs in mcha. how can i do this? also is it possible to give f4 help to user for available bach nos. for the particular material ?

    Hi,
    Cannot you use message M7 668 for this purpose?
    Problem is "batch has been already posted in stock"
    Regards,
    Csaba

  • Revision / Batch number set in Sales Order

    I have a problem with the Rev/Batch # input in the item level in Sales Order.
    We create batch numbers in the background via MSC1N when Goods receive is done (MIGO).
    So when we create Sales Orders, in the item level we enter the Revision in the field name Batch. This is accepted only when there exists batch #.
    But now I would want the SO to accept the Revision even if the Batch # does not exists. The batch number exists only when there is inventory for the Part.
    Pls advise how I could proceed to input the Revision even if the batch doesnot exists.
    Will reward for helpful ideas !

    Hi
    B1 doesn't provide allocation feature .Check this thread for workaround .
    Restriction for items from Purchase Order based on Sale Order
    Hope this helps
    Bishal

  • Batch number issue when posting goods receipt for Subcontracting PO

    Dear expert,
    I always heard there will be issues while posting goods receipt for subcontracting PO. If the component is managered by batch.
    No batch number will be proposed during PGR in MIGO...
    I dont quite understand where is the issue??
    My understanding:
    We have batch managered components and End Product. All have batch numbers, then we PGI the stock to 'SC stock' via 541 movement type.
    Then Vendor will finish the end product and send us back the end product.
    We consumption the components use 543 O movement type? And GR the end product..
    So while goods receipt, the sytem just need pick the existing batch number for both components and finish products..
    Where are the issues???
    Thanks.

    Hoo Laa wrote:
    I have questions for people always mentioning there are issues with batch determination while post goods receipt for subcontracting orders.
    >
    > I am thinking maybe they didnt active the batch determination for 543 movement type..
    >
    > Thanks.
    Hi Hoo,
    You are right!!
    Setting of batch number determination has its importance in Mvt Type be it 541, 543....
    The issue you might have observed would be with Batch Determination in Goods Issues which folks find it bit tough to achieve n make it work for them.
    Cheers!!
    Shiva

Maybe you are looking for

  • How can I move the download backups and backups folder to a new location

    I am using Lightroom 4.3 on a windows 7 64 windows computer with two hard drives.  One dedicated to running programs and the larger one for storage of all my other stuff.  Well my backups and download backups folders are on the smaller drive and I ne

  • Data Mismatching in DSO

    Hi Folks, We  have data mismatch issue for one info object ( BASE UOM ) when the data goes from staging DSO to conformance DSO.I will explain the issue here. For one invoice no the Base UOM value dispayed as M2 in the staging DSO.When the data goes f

  • Interview Questions in Logistics Execution

    Dear Expert SAP Guru, Please let me know the List of  Interview Questions and Answers of LE (Logistics Execution) module. With Regard Vijay Kumar

  • Messages stuck in QRFC inbound and outbound queues by system error

    Hi Experts, We faced a big problem in our PI server which stopped all the traffic in the iDoc to File interface. Both the QRFC queues (inbound - SMQ1 as outbound - SMQ2) where stuck by a system error. In IDX5 of PI we saw two inbound iDocs on exact t

  • Understanding the upgrade policy

    I came to the forums for the first time in quite awhile to ask a question about a laptop. Have had little time the past months to work in Photoshop. Now I find there out about the new upgrade policy and find different opinions on what the new policy