ME21N: Batch number to be populated automatically

Hello Gurus,
I have a requirement whereby, in ME21N after that the user has entered the material number, the batch number gets autmatically populated. I am looking for
1. A BADI or user exit that is triggered after entering the material number
2. A function module that will provide me with the next available batch number to be used which is derived from the first 5 characters of the material number followed by a 5 digit sequence number.
THanks in advance,
Parvez

Hello Pervez,
To accomplish this task you have to perform couple of steps.
First De-Activate Automatic Batch Number Assignment. You can find it under spro->Logistic-General->Batch Management->Batch Management Number Assignment.
Also under this node maintain external number range.
After this activity use this user exit.
SAPLV1ZE
this exit has 2 function module exits
1-  In this function module exit EXIT_SAPLV01Z_003, an external number range XY is determined, against which the batch numbers are checked.
2- In this function module exit EXIT_SAPLV01Z_004, the batch number entered is checked against your own rules.
Regards
Ahsan

Similar Messages

  • Batch Number field in IDoc for Process Orders (message type LOIPRO01)

    Hello PP experts,
    Just wanted to ask if anyone of you have worked with message type LOIPRO01 (IDoc for process orders)
    There is a segment-field in this IDoc  E1RESBL-CHARG which has description of "Batch Number"
    We tried to assign a Bath Number for an Order (using t-code COR2 --> "Goods Recpt" tab under "Receipt" section), generated an IDoc for this order, but upon checking the E1RESBL-CHARG field of the IDoc it is not populated with the Batch Number.
    The material in the process order is FERT, so technically we're trying to assign a Batch Number in one of the process orders for a Finished Goods material type,  so not on the component level.
    Can anyone here verify:
    1. is the E1RESBL-CHARG field of IDoc LOIPRO01 intended for the Product Batch Number?  If Yes, how do we populate that for in the IDoc?  --> Do I need to have a Reservation/Dependent Requirement for the Product for the Batch Number to be populated in the IDoc?
    2. If E1RESBL-CHARG can not be populated for a Product that has no Reservation/Dependent Requirements, Do I have any option of populating this field with just the Batch Number assigned to the Process Order of that product?

    Solved - LOIPRO01 IDoc does not pick up the Batch Number from AFPO table, instead from table RESB.    We need batch from AFPO and just created a lookup using the Process Order Number as import param

  • Automatic external batch number assignment

    Hi gurus,
    I'm facing to an huge issue.
    I've created an subcontracting PO. Into this PO, I have inserted a external batch number to a component.
    When I make a good receipt with MB0A transaction. movement type 101 for the finished product and movement type 543/O for component. the external batch number is populated in the material document. But I don't want the MB0A transaction populates this bactch number. I want to input it manually in this transaction.
    Is it possible to disengage the automatic external batch number assignment by the MB0A transaction and insert a external batch number manually?
    Thanks for your help.
    L. YDIR

    Try this exit, its for external bacth number assignment EXIT_SAPLV01Z_003 .
    EXIT_SAPLV01Z_003. Using this exit, you can replace the proposed number range object BATCH_CLT and/or external interval 02 with a number range object and/or external interval you have defined yourself.
    You also have the option of suppressing the batch number check, for example, based on the material or plant.
    Further : EXIT_SAPLV01Z_003. Using this exit, you can replace the proposed number range object BATCH_CLT and/or external interval 02 with a number range object and/or external interval you have defined yourself.
    You also have the option of suppressing the batch number check, for example, based on the material or plant.
    Just wanted to ask : which version of SAP are u working on?  is it some old version?  coz I see u using MB* Transactions, while SA now recommends most goods movements by MIGO TCODE, aslo most new enhancements are for MIGO .

  • Batch number coming automatically at the time of Process order release

    Hi All,
    I want the system generated batch number for header material to come automatically at the time of process order release.
    At present ,the batch number is entered manualy dering process order creation.
    Can anyone pls guide abt the settings required for the same

    Dear,
    Define the  production scheduling profile CORY then
    Auto Batch Creation = 2 On release.
    Then assign this to your FG or SFG materials in work scheduling view in material msater MM02. Then create new order and check.
    Now for automatic generation i have to set internal number asignment for batches.
    Batch will create for movement type say 101 SPROLogistics - GeneralBatch mangment--Creation of New Batches --Define Batch Creation for Goods Movements. so it will have same logic in MM for 101 GR against PO will be internal number range but no effect in SD.
    Regards,
    R.Brahmankar
    Edited by: R Brahmankar on Mar 12, 2010 12:40 PM

  • Assign production order number to batch number automatically

    Hi All,
    I have been trying to assign production order number to batch number when clicked on create icon in t-code CO02, and successfully assigned Production order number to batch number through EXIT_SAPLV01Z_001
    Question:
    Now i want to assign same production order number to batch number automatically... is it possible"
    If yes, provide me the exit or badi.
    Best Regards,
    Krishna K

    Hi,
    Try to use any enhancement point in below mentioned  FORM.
    In Program : SAPLCOKO1
    Include : LCOKO1F3J
    Inside below FORM.
    FORM header_update.
      DATA: flg_q_upd.
      DATA: quan_old LIKE caufvd-gamng.
    ENHANCEMENT-POINT header_update_01 SPOTS es_saplcoko1 STATIC.
    ENHANCEMENT-POINT HEADER_UPDATE_05 SPOTS ES_SAPLCOKO1 .
    BR,
    Vijay

  • How  to modified automatic batch number with plant and current year details

    hi all,
            i want tomodify automatic batch number with plant and current year details. if any one understand plz explain.
    thanks,
    radhakrishna.

    Hi,
    I am not clear what is u r requirement exactly?
    I  mean you don't want automatic batch no or modify the batch no.  with plant means and Current year details means.  Can give details more
    Regards
    Ganesh

  • 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

  • Assign batch number from sale order to production order automatic

    Dear all, I have a question for all. Please help me in this case
    My scenario is make to order
    I have a sale order, when i create sale order, i have assigned batch number at each line item.
    When i run MRP for sale order (MD50), the system generate a planned order for it and I've converted to production order.
    So when I view production order, I think that batch number what I've assigned to sale order will be assign to production order but that is not happen.
    So, can you help me solve this problem. I think that sap can assign batch number from sale order to production order automatic but i don't know how to configure that
    Thanks all

    Hi,
    To the best of my knowledge, when system is generating planned order / production order from sales order system doesnt copy batch number from sales order.
    In fact , you are following wrong practice for generating batch no.
    Follow procedure like this :
    Create sales order without any batch assigning there. Run MRP with MD50 and then convert planned order to Production Order.
    While creation / releasing of Production order, you have option to generate batch automatically by following way :
    Go to OPKP (Production Scheduling Profile) -> Take your plant & give suitable name to Production scheduling profile-> Batch Management tab -
    > Automatic Batch creation in the order maintain this field as
    1     Automatic batch creation at order creation
    or
    2     Autom. batch creation at order release
    This will generate batch number automatically at the time of creation or release of order.
    Then follow same process i.e. Goods Issue, Confirmation & GR for production order.
    So you will get sales order stock in the form of batch managed.
    Check & revert if any issue in above flow.
    Regards,
    Tejas

  • Enter batch number - No Automatic Batch Number assignment allowed for plant

    Hi SAP Gurus,
    Upon checking the created new Goods receipt for Purchasing Order in tcode migo_gr, checking with the Batch tab, we can't see a batch number, then clicking the classification tab showing the message Enter batch number - No Automatic Batch Number assignment allowed for plant - XXXX
    the question is there any missing configuration based for this kind of error? ive checked the availability check for the plant and it already setup. Hope for your kind responses.
    Thanks

    HI,
    Kindy check the below configuratoin
    Logistics - General>Batch Management>Creation of New Batches>Define Batch Creation for Goods Movements
    for your movement type check what is the Strategy for the new batches.
    here you should assigne only automatic.
    Also let me know what is the level of batch mgt> is it at client level, Plant level, Material level.?
    reg
    Dsk

  • Automatic Batch Number to Be Picked Up

    Hi Gurus,
        Need a urgent help from u guys. While doing Finished Goods Posting (MIGO),I want to automatically pick up the Batch Number from the Mother Coil Number. The batch number should be the same as the one as entered (Batch Classification) during RM Posting.
         Could u please help me on the configuring the same.
    Regrds,
    Binayak

    Hi
    You need the following settings
    a) condition tables (you can use available in SAP)
    b) Acess sequeences (you can use available in SAP)
    c) Strategy types (you can use available in SAP) Here assign your class for batches and sort sequence.
    d) Batch search procedure (you can use available in SAP)
    Path: Logistic General > Batch management>Batch determination and batch check --> Batch search procedure Definition --> Define Inventory Management Search Procedure
    e) In tcode OMCG, assign your batch search procedure to your relevant movement type and if required then assign to a movement type and special stock indicatior too.
    f) Maintain condition records. tcode MBC1
    This will resolve your problem. If useful then please dont forget to reward points.

  • Automatic Batch number for rETURN Delivery

    When creating a return delivery, without reference, we need to manually input the batch number (assign dummy?).
    Is it possible to have the system automatically generate the batch number for returns? If yes, how?

    Hi,
    No you can' not
    even if you try to create Return delivery without refrance to any order then it will determine item category,but gives error that,
    YOU CAN NOT ADD THIS ITEM IN DELIVERY
    because it is controlled by delivery document category
    the delivery document category is - T (Returns delivery for order)
    Kapil

  • Auto Populating of Batch number (AUPOD-CHARG)

    Dears,
    I am trying to populate the batch (field AUPOD-CHARG ) in the Process order under Tab "Goods Receipt", this needs to be picked default from the batch (field RESBD - CHARG ) which is under the BOM Item level in process order.
    Here the scenario is we have already created the BOM with line item having Batch information. The same now needs to be picked default in the Process order under Goods Receipt TAB.
    Please let me know if there is any way we can populate the AUPOD-CHARG filed default as mentioned above.
    Thanks & Regards,
    Viswanath

    Viswanath,
    I would suggest to create a custom program with a BDC to update the batch, the logic of the program should be to first select orders which are not populated with Batch Number in the Order table(selection can be restricted based on specific status), and then for every order pickup the respective component batch number from reservation table, once this data is available, within the program peform a call transaction CO02(BDC), to create and populate the batch number to the order.
    This Job can be run in background to the required frequency.
    Regards,
    Prasobh

  • Automatic Batch Number Creation

    Dear All,
      is it possible to create automatic batch number creation through DI API..? tell the me the solution to create Automatic batch number..
    Thanks in Advance

    Shankar,
    If you have SDK samples, you will be able to find the 04.SerialAndBatch sample that explains what you want.(usually located at \Program Files\SAP\SAP Business One SDK\Samples\COM DI\VB.NET\)
    still have doubts, post back.
    Binita

  • Component is automatically taking one of the batch number at theconfirmatio

    Hello,
    While confirmation of the production order one of the component is automatically picking up one of the batch number in the goods movement screen, even though there are many batches for this component , it is only picking up one specific batch at the time of goods issue while confirming the production order.
    This automatically appearing batch when changed to other batch manually and tried to save it gives remarks.I had checked there is no batch given in the routing where this component is attached
    what could be the reason and how its is picking only one specific batch at the time of confirmation
    Thanks
    Himakar

    please check automatic batch search strategy mentioned in above thread. it may be the reason behind auto selection of batch in confirmation screen.
    normally if batch is provided in [roduction order , the same is seen in confirmation. but if it not the case then must be match selection strategy...
    please confirm the solution...
    Rahul

  • Automatic batch determination with fixed batch number for production order

    Hello all,
    I want to create a production order where the batc number can be assigned for one component as Batch fixed value once the order is released.
    1.- I have created the characteristic (CT04) assigned to the table MCHA and field CHARG (Batch number) and one value: LINER.
    2.- I have created the class (CL02) and assign to this the characteristic.
    3.- I have created the sort ZSORT and the batch (MSC1N).
    4.- I have checked the classification in the material and it has assigned correctly the class and characteristic and the MRP2 view has the backflush = 1, batch entry = 3 and the prod. stor. location = COIL.
    5.- I have created the strategy (COB1, strategy type CO02) and assigned the selection criteria and sort.
    6.- I have created the order (CO01).
    7.- I was releasing the order and the batch number was assigned but, with numbers!! and I need assign this with fixed value = LINER.
    Could you help me please? How can I do it?
    Kind regards,
    SP
    Edited by: SANDRA PALOMO on Mar 15, 2011 11:28 AM

    Hi Vishwas.K
    Thank you for your respone, but, doing more researching, let me explain you with more detail:
    1.- I am going to the transaction CO02 in order to release the order, but, before it, I am checking the component by Go to > Overviews > Components.
    2.- Then, I am selecting my component and making a click in "Batch determ. " button.
    3.- The system is showing me many batch numbers and I select the "Selection criteria" button and the system said: "Selection class "LINERBATCH" does not contain any selection criteria". But, it has a characteristic that I have created before.
    4.- Then, I select in the new screen "Selection criteria: Origin..." the"create" button.
    5.- The system selection my class from the material classification and when I go back to the last screen, finally the system is showing me my batch: LINER.
    Do you know why my selection criteria with my selection class is not working in automatic?
    Thank you for your time and support.
    Kind regards,
    Sandra Palomo

Maybe you are looking for

  • Problems with Dashboard Demo App in Flash Builder 4

    I imported the Adobe Flex Dashboard app into Flash Builder 4 using SD 4.1 and selected "Use Flex 3 compatibility mode", but there are still some issues after import. I'm not talking about having to create the "libs" folder and re-generate the HTML te

  • Can 2008 reporting services read data from 2012 sql server

    Will 2008 SSRS be able to retrieve data / speak to 2012 SQL Server database?

  • Help with Elements 2.0

    Sorry I'm still stuck using 2.0 until I can afford to build a 64bit machine for my CS5 master.  In the past I've used other programs to create a DVD and burn discs however I have recently been working on a project and wanted to try  Adobe's system; u

  • Create game with Flex?

    Hi all this might be a stupid question, but me really not well understand what Flex was, and what the Flex purpose. me have download the trial version of flex, and found it seem more focus on coding and exclude the drawing things which similar to Fla

  • Ipad 2 ios 6 airport networks not working

    I have around 19 ipad2 that i supervise with apple configurator.  Today i programmed approx 16 of the using configurator, it automatically upgraded then to ios6 even though i told it to use ios 5.1.1 Now when i connect them to any of our airport expr