Inventory status report

Dear Experts
i want to add the following query
T0.[InvntryUom] as 'Pak Size', (T0.OnHand /T0.InvntryUom ) as 'In Stock (Carton or Pail)', T0.[CodeBars] as 'Minimum Inventory Level'
into below query. can somebody advice on it.
Declare @FromDate Datetime
Declare @ToDate Datetime
Declare @Whse nvarchar(10)
Set @FromDate = (Select min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]')
Set @ToDate = (Select max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]')
Set @Whse = (Select Max(s2.Warehouse) from dbo.OINM S2 Where S2.Warehouse = '[%2]')
Select
@Whse as 'Warehouse',
a.Itemcode,
max(a.Dscription) as ItemName,
sum(a.OpeningBalance) as OpeningBalance,
sum(a.INq)  as 'IN',
sum(a.OUT) as OUT,
((sum(a.OpeningBalance) + sum(a.INq)) - Sum(a.OUT)) as Closing
,(Select  i.InvntryUom from OITM i where i.ItemCode=a.Itemcode) as UOM
from(
Select
N1.Warehouse,
N1.Itemcode,
N1.Dscription,
(sum(N1.inqty)-sum(n1.outqty)) as OpeningBalance,
0 as INq,
0 as OUT
From dbo.OINM N1
Where
N1.DocDate < @FromDate
and N1.Warehouse = @Whse
Group By
N1.Warehouse,N1.ItemCode,N1.Dscription
Union All
select
N1.Warehouse,
N1.Itemcode,
N1.Dscription,
0 as OpeningBalance,
sum(N1.inqty) ,
0 as OUT
From dbo.OINM N1
Where
N1.DocDate >= @FromDate and N1.DocDate <= @ToDate and
N1.Inqty >0
and N1.Warehouse = @Whse
Group By
N1.Warehouse,N1.ItemCode,N1.Dscription
Union All
select
N1.Warehouse,
N1.Itemcode,
N1.Dscription,
0 as OpeningBalance,
0 ,
sum(N1.outqty) as OUT
From dbo.OINM N1
Where
N1.DocDate >= @FromDate and N1.DocDate <=@ToDate and
N1.OutQty > 0
and N1.Warehouse = @Whse
Group By
N1.Warehouse,N1.ItemCode,N1.Dscription) a, dbo.OITM I1
where
a.ItemCode=I1.ItemCode
Group By
a.Itemcode
Having sum(a.OpeningBalance) + sum(a.INq) + sum(a.OUT) > 0
Order By a.Itemcode
Regards,
Parikshit

am closing this thread. i have posted new thread kindly help advice on it.

Similar Messages

  • Inventory Status Report issue

    Hello,
    Upon running the Inventory Status report for  item group    item no. 'A' shows 5,000 Ordered.   When I drilled  down on the 5,000, SAP B1 only shows 4,500 on open POs.   Please help  
    Using SAP B1 9.0 PL11
    Thanks,
    Jagriti

    Hi,
    Please refer SAP note:
    991077 - How to check 'Committed' and 'Ordered' values
    Thanks & Regards,
    Nagarajan

  • Authorization issue on Inventory Status Report!

    Dear All,
    One particular user is already authorized to access "inventory Status Report" .Moreover, Inventory Status Report's window is opened when he clicks but after pressing OK button the following messages comes [You are not permitted to perform this action  [Message 200-30]].
    Please advise me....

    Hi,
    As suggested above, re-post it as a question thread. You need to close your old open thread too.
    Thanks,
    Gordon

  • Continuous Inventory Status Report

    hey all,
    i hope you can help me with my requirement:
    we're doing a Continuous Inventory and we need a report with all materials in one list, that shows us which material is counted, which is not counted and so on.
    is such a report available in SAP?
    best regards
    christian

    Continuous inventory is an inventory method in WM, you distribute the count of all bins over a time span of one fiscal year.
    WM inventories are usually focused on bins, not on material. So you are actually completed when you have conducted a count in all bins.
    If you want to know which materials have been in that inventories, then you may need to list them from table LINV.  You may need another download from table MLGN with all materials in that warehouse, or LQUA with all quants  from that warehouse, and then do a VLOOKUP in Excel to know which of those materials  was not included in any count.
    But you may not find a status update in material master, since the continuous inventory is updating LQUA and LAGP table but not material master tables. Material master is updated in case of inventory management physical inventory.

  • Need monthly "material-wise" report on inventory status.

    Hi, gurus!Good Morning.
    I am pankaj recently i joined in SAP-MM.I have 4 yr.of domain exp.in SCM.
    Now,i allocate to one implementation project in Textile industory.Here there two plants,out of two GoLive of one plant has been done & in April-12 there is Golive of next plant.
    Now, i am working on some standered reports.here client wants monthly material wise inventory status report & Daily material movement report materialwise.
    i generate the report in" S_P00_07000139 "but it didn't show materialwise,it shows all material separate.
    Request to help on the same.
    Regards,
    Pankaj.

    HI,
    No standard report will full fill your requirement
    you have develop Z with help of ABAp consultant
    for Material document table MKPF and MSEG
    and check following link also it will helpful to you
    [Opening Stock and Closing Stock fields and Calculation;
    Regards
    Kailas Ugale

  • Enhancement of report Inventory Status and Inventory in Warehouse Report

    Hello,
    it will be a great help if preferred vendor will be displayed in the stardardreports "Inventory Status" and "Inventory in Warehouse Report".
    Kind Regards,
    Sabine Lux

    Hi Sabine,
    Check here: /thread/2073266 [original link is broken]
    Thanks,
    Gordon

  • Sale Order Status Report

    Dear Expert.
    I want Sales Order Status report as below mentioned format required quarry base report from Date to To Date.
    Location-OrderSeries-OrderNo-CardCode-CardName-ItemCode-Item Descripotion-Inv.UOM-Order Qty-Allocated Qty-DeliverQty-Peniding Qty adn Pending Order Value.

    Hi,
    You can check this :
    select t3.location as 'Location',t0.series as 'Order Series',
    t0.docnum as 'Order No.',t0.cardcode as 'Business Partner Code',
    t0.cardname as 'Business Partner Name', t1.itemcode as 'Item',
    t1.dscription as 'Item Name', t2.invntryUom as 'Inventory UoM',t1.quantity as 'Order Qty',
    t1.QtyToship as 'Allocated Qty- Qty to Ship', t1.delivrdQty as 'Delivered Qty',
    t1.OrderedQty as 'Ordered Qty', t1.openCreQty as 'Pending Qty',
    t1.Opensum as 'Pending Order Row Value'
    from ORDR t0 inner join RDR1 t1 on t1.docentry = t0.docentry
    inner join OITM t2 on t2.itemcode = t1.itemcode
    inner join OLCT t3 on t3.code = t1.loccode
    where t0.docdate >= '2011.01.01' and t0.docdate <= '2011.12.31'
    Hope it helps.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • How to determine query used in Inventory Status (Available-to-Promise) List

    Hi,
        I'm trying to create a query that will give me  commited qty per item per day. I tried checking table used in the Inventory Status(Available-to-Promise) by enabling systmen information under view buth the SAP is giving me "form=154 Item100000054 Pane3 ......... " Can somebody explain or guide me on how i can create the query.
    Regards

    Hi,
    Welcome you post on the forum.
    Do you need a query report or a formatted search query?
    Thanks,
    Gordon

  • 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

  • Inventory aging report for vehicle parts

    Hello Guys,
    I need to prepare an inventory aging report for Vehicle parts.
    We already have new vehice ad used vehicle's inventory aging reports created by somebody else.
    I am very new to sap-bi.
    I am very confused about designing same cz i checked with the fields ad they are a ittle different from the fields which are there in above two reports.
    I have downloaded 0ic_c03 from business content but do not know how to prepare its datasource......
    Please tell me how should i go about it.
    Thanks & Regards,
    Dolly

    Hi Dolly,
    What is your question? It's almost impossible to provide an answer without any information.
    Perhaps you should try to ask in your company for some help.
    Cheers

  • Inventory audit report and Inventory GL balance - Not matching

    Team
    I taken the report from Inventory audit report , this is not matching with inventory charts of accounts balance.
    What may be the error
    How to close old topics, how to provide the points for good suggestion. My points also not increased , what I need to do increase my points.
    Thanks
    Anantha Desai

    Hi,
    1. Please check if any manual JE posted to that GL account
    2. How to close old topics
    There are two way close discussions:
    ----> If you got right answer, you can choose "correct answer" option in replies.
    ----> If you get an idea or suggestions, you can choose "Helpful answers" and need to close manually by choosing "Assumed answered:.
    how to provide the points for good suggestion
    Please choose "helpful answer" and "Like" option for good suggestions
    My points also not increased , what I need to do increase my points.
    Points will be increased, if you provide right suggestions, ideas and answers to other member discussion.
    Refer this document for further details:
    http://scn.sap.com/community/support/blog/2013/04/03/how-to-close-a-discussion-and-why
    Thanks & Regards,
    Nagarajan

  • Inventory Audit Report - Not followed FIFO and Batch management

    I have created an Item say XYZ, with Batch management and valuation methode FIFO.
    Then I have created a batch say 1 with posting of opening balance transaction with posting date as 1st April 2009.
    Now when I post an A/R Invoice with posting date as 19th May 2009 in which I have selected above batch.
    I have also posted some more purchase transaction for same item before 19th May 2009 that is the date of sales invoice.
    Now when I see Inventory Audit Report, system has not picked up the cost column as per Batch selection in A/R Invoice, and also not as per FIFO, but it has followed the system date of transaction for deriving cost as per FIFO.
    Can anybody throw light on this ?
    BR
    Samir Gandhi

    Dear Samir Gandhi,
    Irrespective of posting date you use for document posting, with FIFO Method system will arrange all the inventory posting in layers with First inventory posting will form the base for first inventory movement out and so on
    Example:
    1st Entry:(Opening Balances)
    posting date : 01/04/09    Item : XYZ    quantity : 5   Unit cost price : 100
    2nd Entry: Purchase
    posting date : 01/05/09    Item : XYZ    quantity : 5   Unit cost price : 105
    3rd Entry: Purchase
    posting date :25/04/09    Item : XYZ    quantity : 5   Unit cost price : 90
    Layers created :
    1.    Item : XYZ    quantity : 5   Unit cost price : 100
    2.     Item : XYZ    quantity : 5   Unit cost price : 105
    3.     Item : XYZ    quantity : 5   Unit cost price : 90
    4th Entry : Sales
    Item : XYZ    quantity : 8  
    So here cost of goods sold will be : ( 5x100)+ ( 3x105) = 815
    and it wont be  ( 5x100)+ ( 3x90) =770 if that's what you are expecting
    Regards,
    Mukesh

  • Sales Order Status Report

    Hi,
    Can you please guide me for Sales Order status report extractors?whether some standard extractors would be used or customized or standard is available which can further be enhanced.
    Scenario is- I have to populate report columns like
    0-25000     25001-50000     50001-100000     100001-200000     200001-500000     500000>
    And analysis has to be shown in the report rows : Sales District. In Columns only number of sales order in each district would be entered as a number. Example- of for district ZMJT there are 3 order are in pending stage having quantities 35000 then entry 3 will come in first column and so on. Following are other columns for drill down purpose.
    Input Fields:
    Date Range
    Company Code
    Currency Type
    Sales District
    Sales Group
    Analytical Fields-
    Sales Org.
    Distribution Ch.
    Division
    Sales Order No.
    Sales Order Dt.
    Sales District
    Tube Dia
    Tube Length
    Laminate Structure
    Application Category
    Customer
    Customer Group
    Sales office
    Sales region
    Sales Order Qty
    Sales order Value
    Regards,
    Ritika

    Hi,
      We have standard extractor 2LIS_11_VASTI (Sales Document Item Status) for getting the status.
    Regards,
    Vamsi Krishna

  • What is table field name for order status report  of rate per unit and  bal

    hi  i want to make FS for order status report i almost get all table and field but i don't get only two field  rate per unit and balance value  table field didn't get please help me searching in field and table
      i want to develop my status report

    Hi,
    Check tables VBAK and VBAP wherein you will get all header and item details.
    VBUK and VBUP for header and line item statuses.
    KONV would give you rates/pricing details for each condition type determines in the sales order.
    VBAK-KNUMV = KONV-KNUMV is how you relate both of them.
    Hope that helps.
    Regards,
    Amit

  • Material Order status report - Closed PO's

    Hi,
    In my "Material Order status report" I got closed PO's. I dont want any closed PO's to be displayed in my report. How to set this?
    Regards
    P.Ramprakash

    Hi,
    This is your own doveloped report or you are talking about any standared report.
    Regards,
    Manish

Maybe you are looking for

  • What on Earth??? iTunes won't start

    I have installed iTunes on my computer (running XP service pack 2) and get the following error iTunes has encountered a problem and needs to close. We are sorry for the inconvenience Then it doesn't do anything else - just the 'do you want to send a

  • ABAP Proxies to send the data to PI

    I have a scenario to send some data from ECC to Legacy system in flatfile format. I would like to use ABAP client proxies on the ECC side and File receiver adapter to tranmit the data to Legacy system. I tried various sample scenarios and know how to

  • Presario not working

    i have a "Compaq Presario CQ56-115SO Notebook PC", that fails to start normally, when starting it it fails to show anything on screen and "capsLock" blinking, ive tried a another monitor, but nothing shows up on that either, it started when i had the

  • How to include a forward slash(/) in my regular expression

    Hai All, I am having a regular expression which should accept only A-Z, 0-9, (underscore) and .(period) . <property name="patterns" value="[A-Z0-9\\._]*" /> Now i need to add /(Forward slash) to this expression. <property name="patterns" value="[A-Z0

  • Addition of new fields in VA01

    Hi Gurus We have diff types of sale orders. I want to certain fields of one type to copies into another type of SO. Pl advise urgently how to go about. The fields to be copies are Payment terms, INCO terms etc. Many thanks in advance.