GR date as batch number

Hi Experts,
I have a situation where I should configure the system, so system should automatically create batches at the time of GR and the batch number should be GR date (27102001)
Please suggest.
R.S

I dont know for what reason you use batch managment. We are doing it for quality reasons.
if we get 2 batches of the same material from our vendor, we usually have slightly different quality data, hence we create as well 2 batches in our system.
I kow it is possible that each material can have the same batch number. but if you just use the date as batch number, then you can only have one batch per material and day. so you could never manage above mentioned case.
Maybe it is not a problem with your materials, and you just want 1 batch despite of having serval receipts of the same material on the same day.......but if you have to distiguish, then you need more than just the date, maybe an additional character like A or B or -001 and -002

Similar Messages

  • Unable to find data of Batch Number Transaction Report

    Hi,
    From Batch Transaction window with View --> System Information I found that the related table is RITL and RITN. But I could not find it in the table list of my database. My Database is SOL Server 2008 R2 and my application is SAP B1.
    Can any one provide me information regarding the above table?
    Thanks & with regards.
    -- Pranjali Sawant

    Hi Pranjali....
    Try This
    case when T0.[Direction]=0 then 'In' when T0.[Direction]=1 then 'Out' end Direction, Case when T1.[Status]=0 then 'Released' end Status, T2.[U_Height], T2.[U_Width], T2.[U_Length] FROM IBT1 T0 INNER JOIN OIBT T1 ON T0.BatchNum = T1.Batchnum and T0.Itemcode=T1.ItemCode INNER JOIN IGN1 T2 ON T1.ItemCode = T2.ItemCode and T0.Quantity = T2.Quantity WHERE T1.[ItemCode] =[%0] and T1.[BatchNum] =[%1]
    Regards
    Kennedy

  • Process Order Details like batch number, mfg date flow to a new process ord

    Hi Experts,
    I have a doubt in Process Order.
    I have two stage production.
    1. Blending
    2. Packing
    I create a process order for blending and assign a batch number and manufacturing date for Blending operation.
    Release the process order.
    Final Confirmation of the process order.
    I complete all the process, Goods Reciept is done.
    Technically completed the Process Order.
    Now my 1st stage Process order is completed and ready for the 2nd stage production i.e., Packing.
    Now I create a new process order,
    here I am having the problem that I need to enter all the details like batch number, manufacturing date etc..
    I want to avoid this in the 2nd process order.
    How to do this i.e., carry forwarding the details of the 1st process order into the 2nd process order.
    Is there any setting required at the back end?
    I was told about Push operation to rectify the above problem. But I am not clear about that.
    Can any one clearly explain about that step- by - step.
    Thanks in advance,
    Regards,
    B. Praveen
    Praveen

    closing thread

  • Sales report with Batch number & expiry dates

    Hello friends,
    would any one please help me to frame this query to achieve the above ..
    my query is as bellow, but I want to add the batch number & expiry dates along with the other information.....
    SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[ItemCode], T1.[Dscription], T1.[Quantity] FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[ItemCode] >=[%0] AND  T1.[ItemCode] <=[%1] AND  T0.[DocDate] >=[%2] AND  T0.[DocDate] <=[%3]
    So which table to join to get the batch & expiry...
    Rgds
    Suman

    HI
    Batch table is OIBT, IBT1,OBTN
    SELECT distinct T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[ItemCode], T1.[Dscription], T1.[Quantity], T4.[ExpDate] FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry inner join
    IBT1 T2 on T1.ItemCode = t2.ItemCode and T0.objtype=T2.basetype and T2.baseentry=T1.Docentry inner join
    oitm T3 on T1.Itemcode=T3.Itemcode inner join OIBT T4 on T1.Itemcode=T4.Itemcode  WHERE T1.[ItemCode] >=[%0] AND  T1.[ItemCode] <=[%1] AND  T0.[DocDate] >=[%2] AND  T0.[DocDate] <=[%3]
    group by T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[ItemCode], T1.[Dscription], T1.[Quantity],T4.[ExpDate]
    Thanks
    Mohammad Imran

  • In the packing list, batch number and expiry date is not appearing for a ma

    Dear Friends,
    I have an issue in the packinglist.
    In the packing list, batch number and expiry date is not appearing for a material.
    But in the delivery the batch number and expiry date is appearing.
    Why this has triggered and how to solve this?
    With regards

    Hi Vamsi,
              Please go through the output type Smart form or script programe of the packing list and check with the abaper If is there any Bug.
    Regard's
    Murali.

  • 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

  • Listing Batch Number with transaction detail

    We use the Sales Order Usage Indicator to designate a Site location for order materials we supply to customers' building sites and I've written a report that lists component material details used in the Production orders created per sales order for each of those sites. What the user department would like is for the batch managed items detail to include the batch number associated with the material.
    However, I'm finding it difficult to find which file this batch number data is actually in. I've found some batch numbers in RESB (which I use to get the component material number and configured data) but out of the millions of records in there only about 66 have the batch number included in the record. The other files I've checked that include the batch number field do not have any data in it. It is at component level that the batch field should have a batch number included.
    Can anyone please advise as to where I can find the relevant data to complete my report.
    FYI, I start with getting Sales Orders with selected Usage Ind in from VBAK, then pick up relevant sales order item data from VBAP with joins to MARA and MAKT for basic material data.
    I get the Production order number from AUFK using the Sales order number and then I chain to RESB for the component material data using the Productioon order number. I pick up the batch field from RESB at this time but so far it has always been empty.
    Thanks very much
    Jim Jackson

    Thanks, Jurgen
    I was hoping to get away without using the MSEG file because of the size implications and resultant search time - as per BSEG on the financial side of things. 
    Anyway thanks for the confirmation of what I need. Much appreciated.
    Best regards
    Jim

  • Batch Number Transaction Report

    Dear Experts,
    Is it possible to modify the form settings of Batches table in Batch Number Transaction Report as I need to add in some user-defined fields into it?
    Below is the layout of my Batches table in the report:
    Batches
    #   Item No   Item Description   Batch   WhsCode   Qty   Status   Manufacturing Date
    and I would like to add in Width, Length & Height columns in the table.
    I can't preset the value of length, width & height of the item in Item Master Data because different batches of same item will have different length, width & height. So I created these fields (Width, Length, Height) in Goods Issue & Goods Receipt and assigned different values there. After that, I need to do some references at Batch Number Transaction Report to find out which batches got the specified measurement of that item.
    Thanks in advance.

    Hi Sachin. I think you have misunderstood what I mentioned before.
    I want the report to show like this
    Item No.   Item Description              Batch   WhsCode   Qty   Direction   Status        T     W        L
    A893S     Pine 14 x 125 x 1030mm          A123    WH01       100   In        Released   14   125    1030
    A893S     Pine 14 x 125 x 1030mm          A123    WH01       -10  Out       Released     14   125    1030
    A126B     Ash 14 x 125 x 1090mm          J123     WH01        50   In         Released   14   125    1090
    In fact, below is the result table that I get
    Item No.   Item Description                Batch   WhsCode   Qty   Direction   Status        T     W        L
    A893S     Pine 14 x 125 x 1030mm            A123    WH01       100   In           Released   14   125    1030
    A126B     Ash 14 x 125 x 1090mm            J123     WH01        50   In            Released   14   125    1090
    using this query
    SELECT T0.[ItemCode], T0.[ItemName], T0.[BatchNum], T0.[WhsCode], T0.[Quantity],
    case when T0.[Direction]=0 then 'In' when T0.[Direction]=1 then 'Out' end Direction,
    Case when T1.[Status]=0 then 'Released' end Status, T2.[U_Height], T2.[U_Width], T2.[U_Length]
    FROM IBT1 T0 
    INNER JOIN OIBT T1 ON T0.BatchNum = T1.Batchnum and T0.Itemcode=T1.ItemCode
    INNER JOIN IGN1 T2 ON T1.ItemCode = T2.ItemCode and T0.Quantity = T2.Quantity
    WHERE T1.[ItemCode] =[%0]
    Thanks,
    Xavier

  • Link between storage location and batch number to retrive the salk3 field

    HI,
    In my report i need to give the output as follows
    For each lgort with related batch number we need to get the salk3.So i need to get a link between lgort , batch number to retrive the salk3.can any one give the tables from which i can get the link and retrive the data.
    note: My report output should look like the fields lgort batch  and unrestriced value of stock in tcode mb52.
    subhashini.
    Edited by: subhashinikb on Apr 1, 2011 9:38 PM

    Hi,
    In 2 steps, u can get the unrestricted stock value.
    step1: Get material no (MATNR), plant (WERKS), batch (CHARG) and unrestricted stock (CLABS) from table MCHB by sending Storage location and batch number.
    Step2: Get standard price STPRS from table MBEW based on condition where MATNR = MCHB-MATNR, BWKEY = MCHB-WERKS and BWTAR = MCHB-CHARG.
             unrestricted value in MB52 will be (MCHB-STPRS) * (MCHB-CLABS).

  • Stock transfer of QM stock thereby creating a new batch number

    Dear Experts,
    I have searched for this content but didn't get content which match my requirement.
    My client has placed a requirement.When they receive a material against a purchase order through movement type 101 they receive it to quality inspection stock.After quality inspection this material is taken to unrestricted area through movement type 321.
    Now after this material comes to unrestricted area,this material is again subject to quality inspection.Quality testing is done after a particular period.
    Next quality testing date is calculated based on this formula:-321 movement type posting date + quality inspection interval days maintained in material master.
    i.e:-If for a material 321 movement type is 16th July 2014 & if quality inspection interval days for that material is maintained as 365 days then next quality inspection of that material will be after a year.
    Now client has placed a requirement when this material comes to quality testing,15 days prior to quality testing this material should move to quality inspection area from the present unrestricted area thereby generating new batch number for that material.
    This changes the client will view in MMBE.
    Gurus Please help as I'm new to QM.
    Kind regards,
    Pradeesh.P

    Hi,
    This is not possible,you cannot generate a new batch number through recurring inspection.
    If you require a new batch number then during stock posting in UD you post it to new material,in your
    case this will be the same materiaal and you give new batch number.
    In this way a batch material has come for inspection and after inspecting it you are changing the
    batch number of the material.
    CSN

  • Batch number is not generating by the system at the time of Goods receipt

    Dear All,
    This is regarding Batch number that the system generates internaly at the time of Goods receipt,but the same is not generating the batch number.
    I checked all the configs but i could not trace it out.Can any one help me to solve the issue.
    Thanks in advance,
    With Regards
    Vinod

    Hi,
    Follow the steps:
    1.Field---VFDAT adn table-MCHA should be created as a charecter in CT04signed to a class in CL02N.
    2.create MM01 and add the class to it in classification view.
    3.In mm01 plt storage1 view give data for remainning shelf life and total shelf life and in purchasing view activate batch management.
    4.OMJ5- activate SLED for your plant and mvt type 201.
    5.opj2- set BD for your plant.
    6.create sort sequence in cu70 and assign your charecteristic value to it.
    7.create batch serch strategy in MBC1 for access sequence(plt/matrl/mvt typ) create a condition record.
    8.Do a GR using 501 and enter SLED related details.(production date and exp date values)
    Repeat the above step and enter diffrent values for SLED details.
    So now two batches are created with SLED as the charecteristic.
    9.Do a GI using 201 mvt tye in MB1A and enter * in batch field(system will determine the batch using the SLED value basedon the criteria(ascending or descending which was set in the sort rule.)
    Reg,
    Deepak.

  • Cost of batch number in the past

    hello
    is there a way to see what the cost of a batch number was at a specific date(in the past) as well as the quantity on hand in the past?
    The client wants the following information :
    Batch Number
    WHS
    Item Code
    Description
          Quantity
    Weight
             Tonnage
    Cost
    CJ77974
    A01
    CC 0.70X1300 04
    CC 0.70X1300 EN10268 HC 260
    23 260.00
    1
    23260
    CJ78006
    A01
    CC 0.70X1300 04
    CC 0.70X1300 EN10268 HC 260
    20 530.00
    1
    20530
    CJ77925
    A01
    CC 0.70X1300 04
    CC 0.70X1300 EN10268 HC 260
    6 790.00
    1
    6790
    CZ80386
    A01
    CC 1.00x1400 F65
    CC 1.00X1400 G3135 SPFC 440
    23 170.00
    1
    23170
    They this want to see the cost and quantity on hand for e.g. 30/05/2014(a date in the past).
    Any advise will really help.
    thanks
    Janice

    Worked for me too. options->options->privacy->remember download history

  • 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

  • Batch Number with quantity

    Dear All,
    With regards to clients requirement, at the time of Goods issue form either one storage location to other Sloc or one plant to other plant in the batch field when i put F4 and after providing receptive material and plant the list of available batch showing.
    but here i need, it shows the available batch along with the quantities.
    So kindly reply is their any standard setting is available for that or if any suitable enhancements to meet this requirement ????
    Waiting for your reply....
    Thanks and Regards
    AKS

    Dear Jurgen,
    Thanks for your help and according to the instruction I created the Search field but the issue is when I put all those data in the receptive field It shows the Batch number only it won't shows me the batch and the receptive available quantity .
    So kindly suggest me in this regards.
    Thanks
    AKS

  • Can you please help me resolve this issue on Batch Management Completion. "Cannot Add row without complete selection of batch number." Message 29-77

    'Another user or another operation modified data, to continue open the window again ' Inventory Transaction Log' (OITL)(ODBC-2039) (Message 131-183). If I click again on add I get the following message : 'Cannot add row without complete selection of Batch / Serial Nos. [Message-29-77]
    Path:
    Inventory -> Item Management -> Batches -> Batch Management - Complete form.
    Before this I use Return Components on Receipts from Production as I am mistakenly issued it more than what was needed.
    Were anyone be able to explain why it worked for certain items  and not for others? I have successfully done  “return components with some batches"

    Hi Nagarajan,
    I'm one of colleague of caterine, we only accessing the batch management-complete window, no other window is open, still the error occurs; see image below
    Before that error occurs(in image); first error we encounter was batch number is already exist, then upon click add another person modified the window; but we tried to restore the db then try to add the batch number in different transaction like SI 1658(Goods Issue), and it is okay.. but on the SI 50003 which is Receipt from production we can't add it.
    Hope you can help us.
    Regards,
    Lean

Maybe you are looking for