Instock with Batch Numbers Query/Report

Hello Experts,
Can anyone help me with a query to generate Instock quantity with respective batch numbers for an Item. The item uses Moving Average costing method.
For Example: Say i have an Item A0001 with Qty 10 instock ( 5 with 4343 batch#'s, 5 with 6648). I need to generate a report as shown below:
Item         Qty     Batch
A0001     5        4343
A0001     5        6648

Dear parneeth,
As requested please try this Query to fulfill your requirement.
SELECT T0.docnum,
T2.BatchNum,T2.ItemCode,T2.Quantity,
T2.ItemName,T0.CardName as Supplier,
T2.SuppSerial,T2.IntrSerial,T2.ExpDate,T2.PrdDate,T2.InDate,T2.Located,
convert(varchar(8000),T2.Notes)
FROM OPDN T0  INNER JOIN PDN1 T1 ON T0.DocEntry=T1.DocEntry
inner join
OIBT T2 on   T1.ItemCode = t2.ItemCode and T0.objtype=T2.basetype    and T2.baseentry=T1.Docentry
inner join
oitm T5 on T1.Itemcode=T5.Itemcode
WHERE
T2.quantity>0
group by T0.docnum,T2.BatchNum,T2.ItemCode,T2.Quantity,
T2.ItemName,T0.CardName,
T2.SuppSerial,T2.IntrSerial,T2.ExpDate,T2.PrdDate,T2.InDate,T2.Located,
convert(varchar(8000),T2.Notes),T1.Linetotal,T1.Quantity
REGARDS
MANGESH PADHARE.

Similar Messages

  • Clearing/downdating stock (with batch numbers) error messages

    Hi,
    We are trying to clear down some stocks with batch numbers and have tried MB1A LT01/LT10.  However, we get the following error messages (all individual);
    Deficit of BA Unrestricted-use (Deficit of BA Unrestricted-use 56.855 KG : 4589 BP01 0088 0000199415)
    Storage unit 4000289374 is not consistent with other transfer order data
    Showing zero for stock & cannot clear transfer order
    How can we clear the stocks please?
    Thanks
    Keeley

    Deficit of BA Unrestricted-use  is a pure MM message.
    It just tells you that you have no stock of the mentioned batch 0000199415 of material 4589 in plant BP01 at storage location 0088.
    check in MMBE where or in what status your stock of this batch is, then change the fields in MB1A accordingly.

  • Reg : Serial number with batch numbering

    Hi PP Guru's ,
    I have one scenario wherein i need to use batch numbering as well as serial number too is it possible to use both in process order.
    i am producing certain product in batch say 25 tons and the material is stored in 1 ton eack jumbo with numbering against batch like jumbo1.... 2...25 with batch1000000099
    please advice if it is which serial number profile should i use and serilising procedure
    marks will be awarded after testing only on the same day.
    regards,
    jaya

    Hi Jaya,
    To the best of my knowledge, this is not possible using standard serial no profile.
    However many places this is achieved by using user exit to manipulate the serial no as expected..
    with regards,
    Mangesh A. Kulkarni

  • Delivery Form with batch numbers and Print Preview

    When I open Sales->Delivery form and select one that has items with batches, and then press Print Preview, TWO previews are automatically opened. One regular which I created using Layout designer and set as Standard, and the other called "Batches List"
    Customer doesn't want the "Batches List" to use, since batches are already covered in the regular layout. Is there any way to disable it, so that only the regular preview is opened, and then printed? I'm using SAP BO 2007 A.

    You should change the 'When Batch/Serial No. Exists, Print' setting to 'Document Only' in Print Preferences for Delivery.
    (Under menu :Administration / System Initialization / Print Preferences /Per document.)

  • Overdelivery with batch numbers

    hi,
    is there a way to handle overdeliveries in Business One when using batch numbers.
    For example:
    Order: 100 g
    select charges 100,9g
    Deliver 100,9g
    Without batch numbers its no problem. But the batch number controlling in business one has a maxinum limit (order quantity). For me its a bug !
    Has anybody a solution? Or will this feature be implemented soon?
    regards
    Markus
    Edited by: Markus Rewak on Dec 3, 2008 3:47 PM

    Hi,
    we have the same Problem. I think this is a bug, too.
    Will this issue be fixed in a further Patch?
    Kind Regards
    Andreas

  • Problem with a Bex Query Report with Web Intelligence

    Hello!
    I have a Bex query (with query Bex version 7.0) I'm connecting with Web Intelligence (4.0) but one of the attributes instead of displaying the description shows only the key, and it is strange because other cubes if given by the conversion.
    I wonder if there is a solution for this or if it is a problem of version 4.0 of Web Intelligence.
    I await your response,
    Greetings!

    Hi,
    Whereabouts in the application are you seing this problem?  (in the query panel conditions, in the prompt list of values, or in the table block? )
    also, what do you mean by "and it is strange because other cubes if given by the conversion" ?
    it's worth noting that the "key and text display properties" in the Bex Query Designer do not influence webi.  WebI consumes the global infoobject property from BW RSH1.
    Regards,
    H
    p.s. if you need to understand which features are or are not supported with BI 4.0 tools, please look here: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d056e1bc-2794-2e10-959e-8779c5623cc5

  • Stock Report with Batch Number

    Hi ,
    My Client requires stock report with Batch numbers .required report format is
    Item Code,BatchNumber,OpenQty,OpenVal,PurchaseQty,PurchaseVal,SalesQty,SalesVal,ClosQty,CloseVal
    I tried using query on wiki for stock report but that query is written in 2007 and Batch tables and OINM table is changes in 8.81.
    http://wiki.sdn.sap.com/wiki/display/B1/SAPB1SQLH-INItemInventoryOpeningandClosingStockper+warehouse
    can any one help with stock report- batches.
    Thanks,
    Preeti

    HI,
    use below query as basis and mofiy the fields required. it shows linking in batch and transaction tables:
    SELECT distinct T0.ItemCode,T0.ItemName ,T0.DocDate ,T0.DocType ,T0.DocNum,T0.LocCode ,t4.DistNumber as [BatchNumber], T1.Quantity ,T5.CalcPrice as [Price]  
    FROM  [OITL] T0 
              INNER  JOIN [ITL1] T1  ON  T1.[LogEntry] = T0.[LogEntry] 
              INNER JOIN  OBTN T4 on T1.MdAbsEntry=T4.AbsEntry
              INNER  JOIN [OITM] T2  ON  T2.[ItemCode] = T0.[ItemCode]   
              Inner JOin OINM T5 on T0.ItemCode =T5.ItemCode and T0.LocCode = T5.Warehouse  and T0.AppDocNum = T5.BASE_REF
    Thanks,
    Neetu

  • Standard report to see the Batch numbers for the materials

    Hi Gur's
    I am searching for a standard report that would give out details from the purchase order. The details that i need are as following fields 1. Purchase order batch, 2. Purchase order number 3. material
    can you any one help me on this
    regards
    AM

    Hi Teja
    You can use T-Code - MB51, here you can generate report material wise purchase order with batch numbers and here to see stock in so give movement type 101 to see all Batches received against purchase orders
    regards
    madhu

  • Sales Analysis Report for Batch Numbers

    I am currently having an issue with Batch numbers and sales analysis report item wise. If the goods are delivered it does not show the quantity in the report. is there a way to make the quantites show. Open delivery notes show the quantity in the report. Could the reason be that once the delivery note is closed the quantity does not show in the report.????

    Dear Mr Shah,
    If I understood correctly, you are saying that there is no issue in adding the document with the batch but it is not shown in the Sales Analysis report?
    The Sales Analysis report does not show information regarding the quantity because it focuses on the value of the document.
    In order to have an overview on the trasactions related to the batches please use the Batch Number Transaction Report under Inventory - Inventory report.
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • Inventory status for a date in the PAST with BATCHES with VALUE

    Hi,
    How can I get a status REPORT of all inventory as on a date in the PAST with BATCH numbers and VALUE?
    The following ready reports do not solve my problem:
    1. Inventory Status: This gives CURRENT date inventory QUANTITY only.
    2. Inventory in Warehouse Report: This gives CURRENT date only, no BATCHES.
    3. Inventory Audit Report: Doe not give BATCH numbers and ignores qty without transactions.
    4. Inventory Valuation Report: Meant for "what-if" only.
    5. Inventory Posting List: Does NOT give BATCH numbers
    6. Batch Number Transactions Report: Doe NOT give VALUE.
    I suppose an SQL will be required for this requirement?
    Thanks,
    Ajay Audich

    Hi Rozario,
    Thanks for the pointer. Could you or anyone of the gurus out there have a code for doing this which will achieve this?
    Thanks,
    Ajay
    Edited by: Rui Pereira on Dec 9, 2008 5:08 PM

  • Layout - Batch Number Transactions Report

    Hi all,
    Our customer has made a layout (IBT3, In Document Tree) in the report 'Batch Number Transactions' via "Inventory -> Inventory Reports -> Batch Number Transactions Report"
    When you have filled the selection criteria in Batch Number Transactions Report and when you click on 'Print Layout Designer'-button you can choose 3 layouts that are:
    - Without Transactions
    - Specified (Including Transactions)
    - In Document Tree
    When you click on the 'Print Preview'-button the following layouts are available:
    - Without Transactions
    - Specified (Including Transactions)
    And the layout "In Document Tree" is not available and why?
    Thanks in advance,
    Chief

    Chief,
    The 'In Document Tree' option is the layout which is used when there are batches for a transaction and the batch report is printed along the original document - you can't print it from the Batch Numbers Transaction Report.
    For example you create a GRPO with a batch managed item and when you print the GRPO there will be 2 documents printed: one for the GRPO itself and one for the batch numbers - this is the layout you set as default for the 'IBT3 - In Document Tree' option.
    Hope it helps.
    Regards,
    Nat

  • Batch numbers - eliminating batches in form

    Hi,
    I have some items with Batch Numbers. When Im creating invoice (through UI or user entry) and after click to Add button, the form with batches will be shown. In bottom left corner is there a matrix with list of disponibile batches. Is it possible to eliminate this list of batches only for batches I need (through some filter, query, ...)?
    Or - is it possible to assign batch number for line level of main matrix before I click to Add button?
    I spent on this whole day without any idea...
    thanks

    Hi Petr,
    it won't be very helpful but maybe you're interested how iam doing this.
    i trigger the "add button", the serial number form opens and i assign the serial numbers automatically.
    the user just have to watch how the "serial numbers" walk from left to right
    i don't think you can "filter" the list of avaible serials.
    lg David

  • Batch numbers

    Dear All,
    I have created delivery with batch numbers and done PGI. But the same delivered batch numbers are shown in the search help for next delivery also.
    How to control the above scenario?
    Thanks

    Hi,
    As per the information same batch numbers are allocated to two different deliveries. This is only possible if you have created both the second delivery before doing the post goods issue for the first delivery in which the batch ggot determined.
    For this you have check the awailability check rule configuration in OPJJ Transaction code for in which  your check rule(02) and combination B.
    It seems that your check rule is not configured to consider Open deliveries , then the system will respond in the way that same batch numbers will be allocated twice.
    check whether the configuration of awailability check.
    I hope this helps.
    Br,
    Tushar

  • A query report of sales invoices

    Hello everyone
    I need help with writing a query report of sales invoices with items of the item code, last buy price, sale price, customer's name ..
    But the report will not be true unless it will show credits invoices' total of sold items.
    I'd be happy for help in this report ..
    Thank you!

    Hi Meital,
    Try this,
    SELECT *
    FROM(
    SELECT T0.[DocNum], T0.CardCode AS 'Customer Code',
    T0.CardName AS 'Customer Name', T1.[ItemCode] AS 'Item Code',
    T1.[Dscription] AS 'Item Description', T1.[Quantity] AS 'Sales Qty',
    T2.[LastPurPrc] AS 'Last Buy Price', T1.[LineTotal]
    FROM OINV T0 
    INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    LEFT JOIN OITM T2 ON T1.ItemCode = T2.ItemCode
    UNION ALL
    SELECT T0.[DocNum], T0.CardCode AS 'Customer Code',
    T0.CardName AS 'Customer Name', T1.[ItemCode] AS 'Item Code',
    T1.[Dscription] AS 'Item Description', T1.[Quantity] AS 'Sales Qty',
    T2.[LastPurPrc] AS 'Last Buy Price', T1.[LineTotal]
    FROM ORIN T0 
    INNER JOIN RIN1 T1 ON T0.DocEntry = T1.DocEntry
    LEFT JOIN OITM T2 ON T1.ItemCode = T2.ItemCode)MM
    Regards,
    Madhan.

  • Report for a selection of items+batch numbers that I would have had on hand

    I would like to run a report for a selection of items and batch numbers that I would have had on hand (only) for September 30th.  I have run the batch numbers report but this gives me all transactions from August 1/09 to September 30/09.

    Hi
    If you need to know quantity onhand ,probably you need to run query against OINM tables but If you are lloking for information then I guess this batch and serial number would be handy ....
    Hope this helps
    Bishal

Maybe you are looking for

  • When I move to a new wifi my sound disappears

    Every time I go to a new wifi login, even if it's my own at home, when I get on to Skype, my sound does not work and I have to reboot.  An example is that I go to my aunt's house, whose wifi my mac recognises, I try to use Skype and get no sound so I

  • Witholding error while posting vendor invoice (f-43)

    hi friends Could not determine the year for TDS certificate number range Massage no.81017 Diagnosis The excise year could not be determined for generating the numbers for TDS Certificates. The number range is linked to the excise year and not on the

  • Slightly...OT..... Bridge v Organiser

    My preference currently is to use the Elements Organiser to do what it's good at....Organising. However, there are currently a couple of holes in Elements 3 that I don't care for. Since I do all my editing in CS, I've been looking at CS2 and the Brid

  • Resync recovery catalog with controlfile

    Oracle :10.2.0.2 os : solaris 5.10 When doing stage refresh with production using RMAN a small pitfall happen. By mistake i have connected to the stage database and production recovery catalog. This was done after changing the db name for stage datab

  • Why does my iTunes stop playing after a certain amount of time?

    When I begin a Playlist in iTunes on my 2009, 24 in. display iMac, it will suddenly stop playing after a few songs. I have looked through every setting I can locate, but am unable to correct this problem. Has anyone else encountered this problem?