INVENTORY STATUS

Dear Experts
Please advice me how to make crystal report from the below query.
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 = 'HOFG'
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
Looking for support
Parikshit

Hi Parikshit.....
Please check this link.
http://www.google.co.in/#q=howtomakecommandbasedcrystalreportinsap+b1&hl=en&prmd=imvnsfd&source=univ&tbm=vid&tbo=u&sa=X&ei=4lWATqyZH4_JrQfeytHMDw&ved=0CE4QqwQ&bav=on.2,or.r_gc.r_pw.&fp=6f0ca06d4623f336&biw=1280&bih=707
Here you get the detailed info how to make a CR.....
Regards,
Rahul

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

  • 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

  • SDK-DI - Inventory status via DI-API

    It is possible to via the DI-API to add data to the Inventory Status (StockTaking) but it is not possible to execute the status.

    This is indeed, a problem area, I too need reconciliation via the DI-API. The only solution (work-around) I have at the moment is to put the reconciliation entries on to a payment with an on account amount of £0.01 then write another journal for £-0.01,
    This still leaves the two 0.01 transactions to be reconciled, but we are hoping that as these are the same value and can be created with the same references that automatic reconciliation can then be run against the BP and sort these out.
    This is quite messy but the only solution I can think of.. Anyone else have any ideas???
    Matthew Brown (B1 Systems)

  • Physical Inventory Status Flag Not Reset after Year End Inventory Procedure

    Hi,
    We are just done with the Year End Inventory Procedures, and to my surprise, a lot of Storage Bins are having their Physical Inventory status flag as ACTIVE, which they should not have.
    An example bin has incorrect status-u201Ccountedu201D in the associated inventory record number . LINV status is L-cleared. LINK status is Z-counted, LINP status is Z-counted and physical inventory flag is ON in table LAGP, but status must be L-cleared and physical inventory flag should be OFF (or blank) in table LAGP.
    Our users did not use LI20 to clear the empty bins or bins had no difference to post (meaning book qty & count qty are the same).
    I already tried the Program RLREOLPQ and OSS Note 824904, but no its of no use in our Case.
    Any guess/hint for the problem?

    I solved this with thehelp of a Zprogram writeen wrt the OSS note mentioned above in the question.

  • Table for Inventory Status for Serialized materials

    Hello,
    Can anyone please provide the table name for finding out inventory status (i.e. unrestricted, Quality Inspection, Blocked) for serial numbers. I am trying to find out, in which inventory status does a particular serial# belonging to a particular material# is in?

    Hello Azz:
    Regarding the serial number status, you have to check the combination of three different tables:                                                                               
    EQUI - Equipment master data. In this table make note of the field 'Object number' (OBJNR), which is the primary key for:                                                                               
    JEST - Individual Object Status. This table contains the technical expression of the status in field 'Object status' (STAT), which is the primary key for:                                                                               
    TJ02 - System status. In this table you can find the texts for the system status in the fields TXT04 and TXT30.
    Then, here you have some other tables which you might also need:
    EQBS - Serial Number Stock Segment.
    SER01 - Document Header for Serial Numbers for Delivery.                                                                               
    SER02 - Document Header for Serial Nos for Maint.Contract (SD Order). 
    SER03 - Document Header for Serial Numbers for Goods Movements.                                                                               
    SER04 - Document Header for Serial Numbers for Inspection Lot.                                                                               
    SER05 - Document Header for Serial Numbers for PP Order.                                                                               
    SER06 - Document Header for Serial Numbers for Handling Unit-Content. 
    SER07 - Document Header for Serial Numbers in Physical Inventory.                                                                               
    SER08 - Document Header for Purchase Order Item Serial Numbers. 
    I hope this helps!
    Esther.

  • AR reserve invoice vs. inventory status

    To Experts,
    Can anyone tell me how to fix this inventory status?
    AR reserve invoice was created and paid, however a delivery document was created separately which leaves the inventory shows committed 10, and available -10. At the moment the item physical item is "0" in the warehouse. what can i do to correct this and make the SAP show both committed and available "0"? Thank you very much.

    You're supposed to link the AR Reserve Invoice to the AR Goods Receipt (via the 'Copy To' /  'Copy From' function).
    As you've received the goods from a separate / unrelated AR Goods Receipt, you could maybe do a Goods Return to close the AR Goods Receipt, and then draw the AR Reserve Invoice into an AR Goods Receipt document again to 'fix' the inventory status.
    Of course, you will need to pay attention to the costing (FIFO / Avg Cost) and the fact that the inventory items could have already been sold.
    Review the scenario first before applying the above 'fix'.

  • 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

  • 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

  • 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

  • UCS Central Inventory Status is stuck at "in-progress"

    One of the UCS Domains connected to UCS Central is not updating it's inventory in UCS Central. In UCS Central it shows the Inventory Status is "in-progress" and the last refresh was several days ago.
    I've have restarted the UCS Central VM and attempted the "refresh-inventory" command in the CLI, but the "Inventory Status" remains as "in-progress."
    Another UCS Domain connected to UCS Central is updating properly:
    We have three blades that UCS Central is not detecting which is preventing a Service Profile from associating.

    The FSM Status in UCSM says "Success."  As I stated above it was registered fine and working fine for several weeks.
    Now however the inventory in UCS Cental and in UCSM are out of sync.  Since it isn't seeing some new blades that were installed we can't add them to a sever pool or associate Global Service Profiles.
    UCS Central shows the Last Refresh as several days ago (the screen grab in the orginal post.)  I believe it should be updating inventory every 10 minutes.  I have tried to manually refresh the UCS domain in UCS Central CLI with the "refresh-inventory" command with no luck.  I have also Suspended and Acknoledeged the UCS domain with no change.

  • Bin physical inventory status

    Gurua,
    I need see the history of physical inventory status for all bins.Is it possible?

    Hi,
    You can use table LINK to check. Enter SE16 an populate your LINK table.
    Thanks
    Silas
    Edited by: Silas Ngcobo on Mar 3, 2011 12:28 PM

  • Inventory Status of Bin not correct = Planned after counts (LAGP-IVIVO)

    Dear Warehousers,
    We are in an IS-Retail environment, release 470,
    We create our inventory count documents with LX16
    When completing our counting process with clearing the documents with
    LI20 and LI21 the following status issue has occurred.
    All the bins of one cleared document display the following status in
    LS03n and LS03: L (cleared) but at the same time the yellow triangle
    signals that the status is Inventory Planned (LAGP-IVIVO). This status
    also shows at LX25
    We have not encountered this issue before. New putaway is possible, but new are counts not, even though there is no document active or planned.
    Has anyone had this issue?

    Hi
    It sounds like ypou are using continous inventory and this process expects you to count all bins before you count any bins again.
    However in LX16 on the front screen there is a that says 'only bins not yet counted' Take this tick off as you are creating the count document and it wil let you count whatever you want when you want.
    I hope that thus helps
    Frenchy

  • 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.

  • WM - Inventory Status

    Hi everyone,
    I customized the inventory during putaway for one of my Storage Type.
    The process is working fine, but I cannot see the inventory document, and the status of the inventory is "Cleared".
    Can someone explain me how is working this Inventory Type ?
    Why can't I see the inventory document ? What means "Cleared" status ?
    Thank very much.
    Regards,
    Remi

    HI,
    Yes this is about physical inventory in WM.
    I using the procedure "Inventory on the first putaway", which execute the physical inventory when an empty bin is used for the first time in the financial year.
    As I said, the process is working fine, it generates an inventory document but I cannot see this document. When I go to LI03N, the system tells me that this number does not exist.
    Also, in the storage bin master, next to the inventory document number, appears the status "cleared". I would like to know what this status means.
    Thank you for your help.
    Regards,
    Remi

Maybe you are looking for

  • Java Applet Background Color Problem on Internet Explorer

    Hi, Please check out the following URL: http://www.utopiainteractive.com/clients/AkonFinal/glossary.htm The menu bar is writting in Java Applet. If you scroll down the page, and scroll back up, I see white background as I scroll back up. It happens o

  • Help in Document Management System (DMS)

    Dear Experts, I am new to DMS and I am looking for some documentation on DMS which can give me an insight view about DMS as well as tells its functionality. if the information is usefull, then "Max points are guaranteed." Thanks Chaitanya,

  • Adding a new mailbox in MAC Mail not working

    Please assist me on how to troubleshoot this issue I'm having on my mac mail. I added a mailbox by clicking the primary email inbox then after that I checked the newly added mailbox but no emails are coming in. I tested to send an email to that mailb

  • Clean install of Mt. Lion and i cant recover any files from time machine

    I did a clean install erasing my hard drive.  I have been running time machine to a time capsule for the last 3 years.  I tried migration, it wont bring anything over.  I tried opening mail then opening time machine and finding a back up point, it wo

  • Import Word to RH8 - can't select Style sheet to apply

    When importing a Word file to RH8 the new dialogue box series needs me to apply my style sheet on the 2nd screen...but even though Help says that a list will be provided, it is greyed out and I can't chose/add one: This causes all the numbers and bul