How to make Inactive Item Report throught Query

HI,
I want to make report which return Inactive Items.I want to displays those Items their transations is null.
SAP B1 have report of Inactive Items Report.But it's based on Sales documents.I want Inactive Item report
which is based on Inventory documents. Can any body tell me how can i get Inactive item report through
Good Issue.
Can any body help me in this regards
Sohail Anwar Ali

This is what I use, be sure to pick a date from the pick list.
/* The Date Input (Hasn't Sold Since dd/mm/yyyy */
DECLARE @TODAY TABLE(RepDate datetime)
DECLARE @DAYLIMIT AS datetime
INSERT INTO @TODAY
SELECT DISTINCT T0.DocDate FROM OINV T0 WHERE T0.DocDate = [%0]
SET @DAYLIMIT = (SELECT MAX(RepDate) FROM @TODAY)
SELECT T0.ItemCode AS 'Item no',
               T0.ItemName AS 'Description',
               T0.CreateDate AS 'Date created',
               T1.WhsCode AS 'Warehouse',
               T1.OnHand AS 'On hand',
               T1.AvgPrice AS 'Avg. price',
                                       (T1.OnHand * T1.AvgPrice) as 'Extended',
               (SELECT MAX(TA.DocDate) FROM OINV TA INNER JOIN INV1 TB ON TA.DocEntry = TB.DocEntry
                              WHERE TA.DocDate < @DAYLIMIT AND TB.ItemCode = T0.ItemCode) AS 'Last Inv. Date',
               (SELECT MAX(TA.RlsDate) FROM OWOR TA INNER JOIN WOR1 TB ON TA.DocEntry = TB.DocEntry
                              WHERE TA.RlsDate < @DAYLIMIT AND TB.ItemCode = T0.ItemCode) AS 'Last W/O Date'
FROM OITM T0  INNER JOIN OITW T1 ON T0.ItemCode = T1.ItemCode
WHERE T1.WhsCode NOT IN ('98 Ret','DropShip','Transit')
          AND T1.OnHand > 0
          AND T1.IsCommited <= 0
          AND T0.ItemCode
                    NOT IN (SELECT TB.ItemCode FROM OINV TA INNER JOIN INV1 TB ON TA.DocEntry = TB.DocEntry
                                        WHERE TB.ItemCode = T0.ItemCode AND TA.DocDate >= @DAYLIMIT)
          AND T0.ItemCode
                    NOT IN (SELECT TB.ItemCode FROM OWOR TA INNER JOIN WOR1 TB ON TA.DocEntry = TB.DocEntry
                                        WHERE TB.ItemCode = T0.ItemCode AND TA.RlsDate >= @DAYLIMIT)
FOR BROWSE

Similar Messages

  • Inactive Items Report

    I would like help writing a query similiar to the inactive items report except i need to show components that have not had any transactions in the past 24 months.
    i figured i can query the oinm table but not sure how to write this query.
    thanks,
    Rich

    Rich,
    Try this:
    SELECT t0.ItemCode, t0.itemname, t0.Onhand, t0.CardCode, t0.InvntryUom
    from dbo.oitm t0
    where t0.onhand > 0 and t0.itemcode not in
    (SELECT distinct t1.itemcode from dbo.oinm t1
    WHERE DateDiff(DD,t1.docdate,GetDate())< 731)
    order by t0.itemcode
    Thanks,
    Gordon

  • Inactive Items Report mising cost information

    The Inactive Items Report which is found under Inventory / Inventory Reports / Inactive Items does not provide the option to display average cost and total cost on the report. This is very useful information for financial managers trying to determine the value of slow moving or obsolete items.
    It would be extremely useful to have the option to add cost information...perhaps by selected price lists...to make this a more valuable information tool for financial managers.
    Is there a report option which would display this information?
    Note that price lists (average cost) may be different by location. Therefore, the report also needs to show inactive items by location, not only in total.
    Edited by: Dennis Milosky on Jan 26, 2011 1:13 AM

    Gordon
    I am not sure why on one hand you indicate that it is not that difficult to write the report for ourselves, yet say that there are too many variables. These seem to be contradictory statements.
    It seems that since this would be of common benefit to nearly all SAP B1 customers, SAP would want to add it as a future release level report.
    I understand that there are cost variables, but why couldn't there be a pull down menu to select the price table such as with the Inventory In Warehouse Report? In that report, the user is given the option to assign the desired price source.
    Again, it seems as if this would be of common benefit and is worthy of SAP resources.
    Best regards,
    Dennis Milosky

  • How to make new item show in ASCP Plan workbench.

    Item ATT.BVL3AHY is a new item without any demand. At item master, it is set as Planned so it is collected by ASCP. The item can be found in msc.msc_system_items with Plan_id -1. Plan id -1 corresponds to Collection. Planner needs to manuallty add planned order for this item at ASCP workbench of plan WIRELINE (PLAN_ID 3002) as attached but as the item cannot be found in WIRELINE plan, planner cannot add it. Please let me know how to make this item show in WIRELINE Plan workbench.

    Run this query:
    select mrp_planning_code from msc_system_items where item_name like '<Item_Name>' and organization_id = <Org id> and plan_id = -1
    If this returns 7 you dont need to run any collections.
    If this returns other than 7 then,
    create a simulation set under Item Attributes Mass Maintenance and then update the attribute MRP Planning method for this item to MRP/MPP Planning. Assign Simulation set to plan name and then rerun the plan. It should work.
    If you are still facing an issue, then raise an SR with Oracle.

  • Inactive Items Report - SAP 9

    Hello experts,
    I am having an issue with the Inactive Items report in SAP 9 and I'm wondering if anyone else is. This is a system report and as such I do not expect it to have any bugs. What happens is the following:
    I enter a range of item codes and a date of 03/01/2009 for all the documents and I get many items that are indeed in these marketing documents (therefore ACTIVE). I read the help for what this report is supposed to do and its supposed to return items that have had no activity in documents from the date specified (not whether they are marked 'Active' or 'Inactive' in their respective item master records.)
    Does anyone else have this issue? Is there a setting I have to modify in order for the report to behave as expected? Please advise! Thank you very much!

    Hi Cynthia Besada,
    the report is meant to identify items that have not been entered on these documents:
    Sales Quotations
    Sales Orders
    Deliveries
    AR Invoices
    AR Downpayment Invoices
    from the date you specify. Even items with zero quanity in the document rows are considered as 'used' in a document & should not appear. If your report output shows items that are found on documents since the date, then there is something wrong & you ought to record a support incident.
    All the best,
    Kerstin

  • How to make outer join in Sub Query?

    Hi!
    I'm facing one problem. Can anyone tell me - how to make outer join in sub query?
    I'm pasting one sample code -
    select e.empno, e.ename,e.job,e.sal,d.deptno,d.dname
    from d_emp e, d_dept d
    where e.deptno(+) = (
                          case
                            when d_dept.deptno = 10
                              then
                                  select deptno
                                  from d_dept
                                  where dname = 'SALES'
                          else
                            d_dept.deptno
                          end
    SQL>
    ERROR at line 15:
    ORA-01799: a column may not be outer-joined to a subqueryHow to resolve this issue?
    Regards.

    And any luck with this?
    SQL> with emp as
      2  (select 100 empno, 'Abcd' ename, 1000 sal, 10 deptno from dual
      3  union all
      4  select 101 empno, 'RRR' ename, 2000 sal, 20 deptno from dual
      5  union all
      6  select 102 empno, 'KKK' ename, 3000 sal, 30 deptno from dual
      7  union all
      8  select 103 empno, 'PPP' ename, 4000 sal, 10 deptno from dual
      9  )
    10  ,dept as
    11  (select 10 deptno, 'FINANCE' dname from dual
    12  union all
    13  select 20 deptno, 'SALES' dname from dual
    14  union all
    15  select 30 deptno, 'IT' dname from dual
    16  union all
    17  select 40 deptno, 'HR' dname from dual
    18  )
    19  select e.empno, e.ename, e.sal, d.deptno, d.dname
    20  from emp e,
    21       (select decode(a.deptno, 10, b.deptno, a.deptno) deptno, decode(a.deptno, 10, b.dname, a.dname) dname
    22      from dept a, (select deptno, dname
    23                    from dept
    24                      where dname = 'SALES'
    25                     ) b
    26       ) d
    27  where e.deptno(+) = d.deptno
    28  /
         EMPNO ENAM        SAL     DEPTNO DNAME
           101 RRR        2000         20 SALES
           101 RRR        2000         20 SALES
           102 KKK        3000         30 IT
                                       40 HR
    SQL> Cheers
    Sarma.

  • How to make the item in different color in a choice?

    if I have a choice and different items, how to make the item in different color?
    like:
    Choice ColorChooser = new Choice();
    ColorChooser.add("100");
    ColorChooser.add("200");
    ColorChooser.add("300");
    I want to show green, red and blue color for item 100, 200 and 300.
    I do not know how to do that, anyone can help?
    Thanks

    Please don't double (and now your up to triple) post. I realize that to you, your problem is the most important thing in the world and it would be nice if you could get several people working on it at the same time. However, the people answering your question do not get paid for it. They are doing it because they want to help someone. Posting several times only shows that you have no respect for them and are only concerned with your problem.

  • Inactive Item report to show Item bought within a specific period and not sold within a specific period by whse and have stock

    Hi
    I'm trying to come up with query report to show Inactive Item bought within a specific period and not sold within a specific period by whse and have stock
    The report should show  Item Number, Item Name ,Item cost,Retail Price [Based on a price list], Qty in Whse, Last Purchase Date, Last sale Date etc.
    e.g item bought between 2011-2013 and have not been sold with the same date range or the last 12 months.
    Regards
    Brian Ndunda.

    Hi,
    Try this query:
    SELECT T0.[ItemCode], T0.[ItemName], T0.[OnHand], T0.[AvgPrice], T0.[LastPurPrc], T0.[LstSalDate] FROM OITM T0  left JOIN INV1 T1 ON T0.ItemCode = T1.ItemCode left JOIN OINV T2 ON T1.DocEntry = T2.DocEntry WHERE T1.[Quantity] is null and  T0.[OnHand] >0 GROUP BY T0.[ItemCode], T0.[ItemName], T0.[OnHand], T0.[AvgPrice], T0.[LastPurPrc], T0.[LstSalDate]
    Thanks & Regards,
    Nagarajan

  • How to make custom PLD from a query

    How would I make a PLD from a query?

    HI Jonathan,
    Did you mean this?
    Choose query that you want to create PLD then select create report
    Regards,
    JP

  • How to make Multiple parameters to sql query string seperated by ,(comma) ..

    Hi,
    I would like to konw how I can make multiple parameters to sql query string seperated by ,(comma)  ..
    For example, this parameters can be printed like 'abc,dde,ggf,eeg' ,once I use  "join(Parameters!rpCode.Value,",")" with report builder , 
    By the way, when I test this multiple parameters by Query Designer of report builder there was no problem,.(using Define query parameters, I put abc,dde,ggf,eeg)
    however, when I run this report , it won't be executing ,  with (rsErrorExecutingCommand)
    Plz, help me....

    If its sql query then it should like this
    Select t.*
    from table t
    inner join dbo.ParseValues(@Parameters,',')f
    on f.val = t.ID
    ParseValues can be found him
    http://visakhm.blogspot.in/2010/02/parsing-delimited-string.html
    or easier way is
    Select t.*
    from table t
    where ',' + @Parameters + ',' LIKE '%,' + CAST(t.ID AS varchar(10)) + ',%'
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to make a copy of a query?

    We can't find contex menu item to make a copy of a query when right clicking a query and can't find any picture icon/button to make it.  If someone can tell us on how to do it?
    Thanks

    Hi Kevin,
    To make a copy of the query use the "save as" option in the query designer and assign the new technical name and description.
    If you want to copy the query between 2 data targets then use the transaction RSZC.
    Bye
    Dinesh

  • How to make a downloadable report of application log file.

    Hi Every One,
    i am new to this ABAP environment, I have application logs in my system, i need to generate the reports based on my filter condition and i need to download them as file/report, For example;
    I need a Application Log report for:
    only Particular User
    only particular time
    only importent logs
    only errors
    like that....so on..
    Can any one give me step by step, how to make a report of application logs, i know only i can see logs use transaction CodeSLG1. I want to make report them.
    Thank you
    Regards
    Ravi

    Found answer in log itself

  • How to autogenrate multiple items report of the SharePoint list and sent to the client id on daily basis

    Dear Support,
    As per customer requirement he want to send SharePoint list multiple items reports on daily basis by email autognrated workflow in SharePoint.
    I tried for that and created workflow for SharePoint list  on new item creation using SharePoint designer 2013 it’s working fine. But I am unable to send list multiple items report by work flow.
    Please let me know the process for SharePoint list multiple items report generation and how to sent mail to the client id on daily basis.
    Would request your support.

    Hi
    another approach
    use a powershell scheduled script which will get needed lists items, adn will sned the infos by email
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • How to make cross Tab report for SAP B1

    Hello and Hi
    i trying to make cross tab report for SAP B1 but test column not appera in
    File >>New >>Cross Tab Report  start cross tab report creation wizard select database name and table
    but only numeric columns appear in available column fields , how will appearall fields including test fields..

    i got solution
    thanks google
    memo type field will not apper in list .use bellow  statment to convert in interger or char type
    convert(int,U_Dist_Sr_No) AS Dist_Sr,            CAST(U_Dist_Name AS varchar(250)) AS Dist_Name,

  • How to make an item be remembered once the page is changed?

    Hi,
    For my school project I am trying to create a drag and drop product on Adobe Flash CS4 using Action Script 3.0.
    I have three keyframes:
    - The first one has tops to be dragged and dropped onto the model
    -The second one has skirts/trousers to be dragged and dropped onto the model
    -The third has shoes to be dragged and dropped onto the model
    But once the top has been dragged and droped and the next button is selected displaying the skirts/trousers, the top which has been dragged and dropped onto the model is no longer displayed.
    Does anyone know what coding I need to add to get each item of clothing to be remembered once it has been dragged and dropped onto the model, so it is visible on the following pages?
    Many Thanks

    Thank you very much for your response.
    I'm so sorry, this is probably a really silly question but how can I make the items of clothing hidden on the layers where I don't want them seen?
    I am also having real problems with my 'next' button in the second key frame.
    I am recieving two errors for this button and have tried everything that I can think of, so was wondering if you were able to have a look at my coding for this button and tell me if it is correct bearing in mind that the button is on the second keyframe but should take you to the third.
    The first error I am recieving is:
    'TypeError: Error #1010: A term is undefined and has no properties'
    for the line
    'femaleDragAndDropPage.femaleMenu.nextButtonBottoms.addEventListener(MouseEvent.CLICK, onNextButtonBottomsClick);'
    -The nextButtonBottoms is the button leading from the second to the third key frame-
    The second error I have is:
    'TypeError: Error #1034: Type Coercion failed: cannot convert NextButton@246159c1 to PinkNextButton.
    at flash.display::MovieClip/gotoAndStop()
    at Main/onNextButton3Click()'
    for the line
    'femaleDragAndDropPage.femaleMenu.gotoAndStop(2);'
    -This line is for my next button on the first keyframe which leads to the second one and only appears when it is selected-
    On the first keyframe, there is also a next button (with a different instance name) which leads to the second keyframe which works fine so I used the same coding for the next button leading from the second to third keyframe but changed the instance name. This is where I then recieved the errors so cannot view the rest of my pages which come after this one.
    Thank ypu so much for your help!

Maybe you are looking for

  • Windows Vista firewall fails to start. Error 1068 The dependancy service or group failed to start

    I have looked at the previous blog relating to this but the remedy hasn't worked When trying to start the firewall all I get is security center can't turn on windows fire wall I have gone into services and tried to switch on the firewall and get erro

  • What is the best media to use for backup

    I want to back up my computer including for data, photos and videos (from my camera). I recently read that its a good idea to backup photos because apparently they can become corrupted and I want to do a backup of the HD anyway. What is the best type

  • AE will not accept new settings

    I have done a hard reset and I receive this message: The settings for this AirPort wireless device have been successfully updated, but there was a problem re-joining the wireless network or finding the AirPort wireless device. You may need to select

  • Regarding BACK button

    Hi All, Iam in the BP_HEAD overview screen there i have a navigation link which takes me to BP_HEAD of the particular BP selected. Now when i try to come back to BP_HEAD overview screen the data in some of the assignement blocks(Z) is not refreshed.

  • Left fan in my MBP makes some weired noise when shutting down

    Hi, my model is 2.4 Late 2008, few days ago the left side of my mbp dropped on the table because I forgot to take out the headphone when I stood up.. Now every times I turn off the computer, the left fan makes noises that sound like the fan is touchi