Batch Number range

Dear Experts,
I need to know the best practice to set the number range .. Note that the industry that I'm working in it is railways Not chemical .. for example some one told me to create it like this :
091101vert
09 : Year
11 : Month
01 : Day
vert : the first four letters from the vendor
By this way when the stock keeper looks at the batch number -which should be printed on a label and stick to the material -  so he knows when did he receive this material and from whom
But I think that we may face problems if i use this way for example there are obsolete stock from year 1909 so "09" will make confusion between 2009 and 1909 ..
Problem number two is the organization have more than 5000 vendor so maybe there is some one called Vertix and another called Vertany  and both share the first four letters Vert
Note1: Is there is any way to create the batch number in this way "091101vert" automatic with out user interaction
Note2 : I'm Not In using normal numbering
Please Advice
Thanks in Advanced

Dear  Appie Dee  .. thanks a lot for your quick response .. But lets consider this scenario :
Material  : X01
Vendor 1 : Vertix
Vendor 2 : Vertiany
Batch1 : 090211Vert
Batch2 : 090415Vert
Note : Onthe syste it is very easy to know Batch number 1or 2  is from which vendor .. but i wanted the stock keeper to know by the look to the label if he is away from the system "which vendor delivered this batch"
Problem number 3 I didn't mention it in the first is : What if I'm going to receive the same material from the same vendor in the same GR date but in two batches because the production date differs from batch one to batch two .. and the batch is in the material level
Please Advice

Similar Messages

  • Increasing the number of digits in batch number range

    Dear Experts,
      The number of digits I have in ''Maintain Number Range  Interval'' screen of tcode omad is ten. Please How can I increase it to accomodate an additional digit so it will be eleven, as the digits of my new external batch number  range is 11?. The NR object is 'Client Batch Number'

    Dear,
    The filed length for CHARG in standard SAP is only 10 Characters. If you need changes then you need to make changes to Domain CHARG, i would not recommend this.
    I would suggest you to create an OSS message and see their feedback,
    Regards,
    Prasobh

  • Query of batch number range

    Hi experts
    I found that I can assign a external  batch number  to  a material manually,but in background I have not assigned an external number range for batch, who can tell me that's why?
    thank you!

    Hi,
    It is not relevant with No. Range of Batch
    Go to SPRO > Logistics - General > Batch Management > Creation of New Batches > Define Initial Creation of Data for Batch Master Transactions > Here for Material Type select option as "C" (Automatic / No Manual)
    Also check in SPRO > Logistics - General > Batch Management > Creation of New Batches > Define Batch Creation for Goods Movements > Here for Movement Type select option as "C" (Automatic / No Manual)

  • Batch Numbers Skipping in Internal Number range Assignment

    Dear Gurus,
    We have Batch Management at Material Level. For a Material, we are facing an issue in Internal Batch Number Assignment. Systems Skipping 15-20 numbers buffer in Internal Number Assignment, we want it to be in a sequence. In OMAD for BATCH_CLT, No of Numbers in Buffer is 0.
    Kindly guide me why the system is doing this.
    Regards,
    Johi Kapoor

    No its not working. I want to set my batch number range from client level to material level. Kindly tel me how can i do that....?

  • NUMBER RANGE for batches

    Hello friends,
    My client requirement is he wants to give his own batch number range  alphanumeric for materials like AF86811.
    Where do I customize for this.?
    What are steps I have to do?
    Please clarify my doubt.
    regards,
    Sekhar_functional consultant.

    Discuss with your ABAP consultant and check whether you could use user exits to meet your requirement: userexit_number_range in the program MV45AFZZ

  • 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

  • Re: Batch Number Rabge

    Dear All,
    I am facing an issue.
    I am using internal number range for batches for process order. The number range nomenclature has need designed as per clients requests.
    Now my issue is that if I release the order the system creates a batch for the order,Now but due to some reasons if the user doesnot save the order at that time,this batch is lost.So when the user tries to release the same order again this time the system creates a new batch instead of the one it is supposed to create.
    BAsically my issue is the batch number range is jumping.
    Please advice.
    Regards,
    Vivek

    Hi Vivek,
    Please check with your ABAP guy and ask him to specify the condition in enhancement SAPLV01Z like when Order is released assign batch number but when it is not saved batch number should not be saved in system and it should be re-used.
    Just to add: Once you click on the Release button, system creates the new batch and even if you don't save next time it assigns the next number in the range. I feel it's the standard fucntionality and you can get rid off this using SAPLV01Z (if you are using numerical number range) and SAPLV02Z (if you are using alphanumeric number range).
    Drop-in if you've solve the issue or please close the thread.
    Thanks,
    Shoyeb
    Edited by: Shoyeb A on Jan 5, 2010 2:09 PM

  • Production Order Number and Batch Number same during order creation

    Hi All,
    I wanted to keep the Production Order number and Batch Number same during creation.
    How I can do that during creation of order only. So during creation same number to be get assigned automatically in the background.
    One thing I can maintain ; the same number range for both.
    But how to activate other functionality.
    Regards,
    Amit

    Hi SAP2511,
    For Production order-
    1.You can define a Order type  and  Mantain the number range same as batch number range (in  OPJH transction)
    For Batch
    1.Activate Automatic internal batch assignment - (OMCZ)
    2.Number range for batch - for object - BATCH_CLT - (OMAD)
    For batch creation at time of Order creation -
    You can create Automatic batch at the time of order creation or order release
    1 Create Production scheduler Profile(OPKP) and assign in Work scheduling view of material master for which you want to create batch at the time of order creation or release.(Select automatic batch creation at the time of release or creation in OPKP)
    Things to be taken care -
    1 . What if you set deleation flag for order?
    Regards
    Girish
    Edited by: girish khobare on Aug 20, 2010 9:31 AM

  • Batch management number ranges

    Hi guru's
        My client is using internal number ranges for my raw material
    but now they want to enter external number at the time of Goods reciept
    and also I want to make it mandatory for external number ranges.
    that mean system is proposing me internal number ranges now
    and user is updating external number ranges.
    My issue is system should not propose me any internal number ranges
    I want to update my external number ranges only
    could any body help me to solve this issue?
    which user exit i have to try or is there any other  option?
    Nilesh

    Dear,
    Set Up Customer Exits for External Batch Number AssignmentAs part of the external batch number assignment, the following two function module exits are available in the SAP enhancement SAPLV1ZE for checking a new batch number that has been entered.
    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.
    EXIT_SAPLV01Z_004. Using this exit, you can define your own checking rule.
    In this you write a code, if the plnat is so and so , then take this external number range, if youn want internal number range then use the following
    You can use SAP enhancement SAPLV01Z for internal batch number assignment. This enhancement contains two function module exits that you can use to define number ranges or templates for batch numbers:
    Goto OMCZ, Inactive internal no assignment for the batches.
    Now in OMAD- Maintain no ranges for object- BATCH_CLT
    Maintain external no range for that.
    Please rfer this also,
    http://help.sap.com/saphelp_40b/helpdata/ru/dc/1d4b6e5733d1118b3f0060b03ca329/content.htm
    Regards,
    R.Brahmankar

  • Batch management number range issue

    Hello Experts,
    We have one requirement like this we are following Batch unique at material level. Client requirement is like this; they require separate number range for plant and order type combination. Is it possible?
    If it is possible please specify the steps.
    Thanks and regards,
    Ganesh

    HI,
    In our case we had to differentiate the batches for different plants and we have used the first digit as alphabetic character with reference to the plant. Here we had a single number range for batch creation but the first digit of the generated batch number will be an alphabet representing the plant. This was done with the help of the enhancement SAPLV01Z and EXIT_SAPLV01Z_001.
    Hope this helps you to satisfy your requirement.
    Regards,
    Ravi Kumar C.

  • Number range for Batch - urgent help

    Dear Champs,
    We need to have internal number range for batches for one plant and external number range for other plant. How & Where to assign number range for plants ?
    Kindly suggest
    Thanks
    Rajesh

    Mr Rajesh
    You can maintain num range internal and external independently with out any customization or development if you run batch management PLANT level.
    Where plant level batch mgmt., the batch number is only known in the plant in which it was created if the stock is transferred to another plant, the batch is unknown in the recipient plant and the system does not adopt any data
    And you can define independent number range for each plant.
    If planned at client level need to customize using the userexits avaliable.
    Message was edited by:
            Pavan Kodali

  • 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

  • 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

  • Internal Batch number not getting generated

    Dear Experts,
    We want to generate internal batch numbers during production order creation. To achieve the same ,
    the following Customization settings were done:
    1. Acitvate Internal Batch number assignment (T-code OMCZ)
    2. Maintain Internal Batch number Assignment Range  (No exits will be used for batch number generation)
    3. Creation of New Batches  -->  Define Batch creation for prdn. order --> Automatic batch creation during order creation
    4. Creation of New Batches  --> Define Initial Creation of Data for Batch Master Transactions --> Automatic creation
        only allowed for a material type.
    All the relevant materials are markes as Batch Managed.
    But when we are creating a Production order system generates a error shown below.
    No batch numbers could be determined
    Please guide.
    Regards,
    Namratha

  • MANUAL CREATION OF BATCH NUMBER(EXTERNALLY)    -   NOT TO BE ALLOWED

    MANUAL CREATION OF BATCH NUMBER(EXTERNALLY)   -  NOT TO BE ALLOWED while creation of Process Orders.

    Hi,
    Check t code OMCZ whether internal Batch no assignment is active or not.
    From F1 help
    In this step:
    you activate internal batch number assignment
    you define whether internal batch number assignment is allowed for goods receipts that have an account assignment
    Standard settings
    The standard version of the SAP system contains a predefined number range.
    Further notes
    Batch number assignment uses two function model exits with which you can define templates for batch numbers. You make the necessary settings in work step function module exits for internal batch number assignment.
    The system checks whether the assigned batch number already exists in the system. Should the number already exist, the function is terminated.
    When creating a client by copying another client, please note that internal number assignment is not active in the target client. You must activate it manually.
    Regards
    Anupam Sharma

Maybe you are looking for

  • Report Engine not intiated.

    Hi all, I am getting below errro when i am trying to refresh the report oftenly means once per day "the reprot engine not intiated ". please suggest me any way to avoid it..

  • Sales order not getting created in background.

    I am using user exit to write my code to create sales order of basic type ORDERS05 with function module idoc_input_orders, and process code ORDE with my own message type. If I run the program in foreground message KUWEV-KUNNR is not an input field co

  • VPD date issue between 10.1 and 10.2 databases

    I have uncovered an issue today with VPD against date fields. The issue came up at a client site on a 10.2 database. When I got back to the hotel and tried this on my own database, which is 10.1, I got no issue and everything worked ok. Therefore, I

  • Firefox is ignoring the Applications Options

    In Tools > Options > Applications i have set Firefox to open Adobe Acrobat Document application/pdf files in "Adobe Acrobat (in Firefox)". However, when i open a pdf it opens it in the browser in Foxit Reader. If i then disable the Foxit Reader plugi

  • Socket read time out

    Hi, A java class I use is connecting to another system via socket. This always works fine when using Java 1.3. However my database installation forces me to use Java 1.2.1 where the same code fails. Does anybody know of a workaround to this problem?