Stock Aging report in SAP Business One

Greetings,
I don't think this issue has been raised successfully on the forums (i checked, there's no real resolution at the moment).
The end user requires some form of stock aging that their auditors deem important but there's no such feature within SAP B1.
Their basic requirements would be:
Stock Code | Description | Date of Purchase | Current Month (qty) | 30-90 Days (qty) | 91-120 Days (qty) | 120 days and above (qty)
I'm wondering if this is even possible with the end user using multiple warehouses to stock their inventory, and some items are marked as serial items and others are marked as batch.
Any ideas?

Thank you for pointing me in the right direction. Amended your query a little so the user input square brackets are there.
SELECT T0.ITEMCODE , T0.ONHAND as 'Total Qty', CASE WHEN Datediff(day, T1.LASTPURDAT,GETDATE())<45 THEN T0.ONHAND END '<45 Days(Qty)', CASE WHEN Datediff(day, T1.LASTPURDAT,GETDATE())<45 THEN T0.ONHAND*T0.AVGPRICE END '<45 Days(Value)', CASE WHEN DateDiff(day, T1.LASTPURDAT,GETDATE()) >= 45 AND DateDiff(day, T1.LASTPURDAT,GETDATE()) < 90 THEN T0.ONHAND END '45 to 90 Days(Qty)'  , CASE WHEN DateDiff(day, T1.LASTPURDAT,GETDATE()) >= 45 AND DateDiff(day, T1.LASTPURDAT,GETDATE()) < 90 THEN T0.ONHAND*T0.AVGPRICE END '45 to 90 Days(Value)', CASE WHEN Datediff(day, T1.LASTPURDAT,GETDATE()) >= 90 THEN T0.ONHAND END '>90 Days(Qty)', CASE WHEN Datediff(day, T1.LASTPURDAT,GETDATE()) >= 90 THEN T0.ONHAND*T0.AVGPRICE END '>90 Days(Value)'
FROM OITW T0 INNER JOIN OITM T1 ON T0.ITEMCODE = T1.ITEMCODE INNER JOIN OITB T2 ON T1.ITMSGRPCOD=T2.ITMSGRPCOD WHERE T0.ONHAND>0 AND T0.WhsCode ='[%0]'
AND T2.ITMSGRPNAM = [%2]
Will continue to review the aging issue and maybe even update the forums with the results.
I can understand why in the query you've provided above its not really feaseable to have the Date of Purchase because its showing the stock quantity in total (which would make more sense instead of each item row by row)
Edited by: Davinder Singh on Apr 18, 2008 4:38 PM

Similar Messages

  • Issue running a report from SAP Business One

    I have an issue running a particular report from SAP Business One. I am using Crystal Reports Add-On, all of the reports are working fine except one. When accessing the last page of the report or any page from inside the report the followiong error appears in the dialog box:
    Error in the File CollectionDate_Branch_wise {609BA059-89AF-41E9-9AEB-28CB16D13852}.rpt:
    The request could not be submitted for background processing.
    Edited by: Iqbal Faisal on Feb 22, 2010 6:03 AM

    Hi,
    Do you mean you have a Main report that is written based on SQL Command and there are 8 subreports linked to the main report?
    If that is the case, I assume when user select 'Document Type" eg invoice, it will pass that to the subreport and retrieve information?
    This is how I will approach it.
    1. Make sure the connection is consistent, if you are using ODBC(RDO) then make sure that is the same for main and subreport. You can check that in Set database connection. Right click on the connection, look at the Properties.  Don't assume that the name is the same, eg: SBO_DemoUS, they are all ODBC(RDO) for instannce.
    In Crystal, when you are using different connection, it will just prompts you a warning message and it will still run.
    2. Delete all and only keep one subreport, example AR invoice and see it will still give a problem.
    Replace the parameter with a set value in Record selection in subreport and see what happen.

  • Error while 'Crystal Report for Sap Business One' addon started

    Hi,
    I have try to install Crystal Report for Sap Business One (Addon Versione number 2.0.0.7).
    The installatione finish succesfully, but when I started the addOn i retrieve this errore message: External Connection to the dataBase failed. Sap Crystal Addon may not function properly. Please re-run the account setup with superuser login.
    I'm logged in Sap with manager (super user), so maybe I have forgot some step in the installation?
    I have see the Demo in the Channel Partner Portal, I have note that I have to isntall the CR_Runtime_12_0, but I don't find it, I don't know where I can download this file. I have just installed SapCrystalSetup.exe and registered the Addon like a normal Sap B1 addon.
    Where is the error??
    Regards
    Marco

    You must configure in each cliente Pc the connection with the DATABASE.
    You must Know the Database Super User (In SQL Server usually sa, and its password, the standard form SAP Business One is SAPB1Admin)
    In Administration > Crystal Reports Administration > Account Setup
    The CR_Runtime_12_0 is only necesary to view reports, but isn't necesary to start de addon.

  • Crystal report for sap business one problem

    Hi experts,
    I am facing problem while dealing with crystal report 2011.
    I installed sap b1 8.8 pl 10, then upgraded to pl 20. Now again upgraded to 9.0 pl08. Then i installed SAP Crystal Report for SAP Business One 2011.
    I seems that it is not integrated to SAP Business One, because i am not able to save my crystal layouts in sap business one.
    How can i resolve this issue, please let me know if anyone faced same kind of problem and got solution for that.
    Thanks

    Hi
    1758302 - Error while connecting to Crystal
    1397692 - Error when starting Crystal Reports software
    Thanks
    Mohammad Imran

  • Error while importing external Crystal report in SAP Business One

    Hi Experts,
    while importing External crystal report in SAP Business one i was unable to import the report and it is not displaying any error message or success Message but after completion if i click on the report i am getting an Error as
    No Matching Records Found 'Queries' (OUQR) (ODBC-2028) Message[131-183]

    Hi,
    Please refer SAP note:
    1532509 - Cannot import Crystal Report template into SAP Business One
    Thanks & Regards,
    Nagarajan

  • Problem while importing a Crystal Report in SAP Business One

    Hi Experts,
                        I am facing a problem while importing a Crystal Report in SAP Business One, it displaying an error  "No matching records found  'Queries' (OUQR) (ODBC -2028)  [Message 131-183]" , and there is no use of this table OUQR  in the Query.
    Kindly let  me know the solution.
    Regards
    Rahul Singh

    Hi Rhaul,
    i don't exactly know why this is a problem, but if your not on latest (881 p10) then upgrade and try again.
    Or as a workaround,
    try saveing from CR to SAP with the CR add-on. That usualy works better then the import.
    Regards,
    D

  • Vendor evalution report in SAP BUSINESS ONE

    We require Vendor Evalution report in SAP BUSINESS ONE which has information about receipt(GRPO) perfomance against purchase order issued.  We require item code, item description, p.o.no., p.o.qty, delivery date, GRPO NO., GRPO Date, GRPO QTY, Delay no. of days. If there is any report in SAP please inform us. Otherwise any query we can make please inform us how to make query in SAP business one.

    Hi,
    The query from the thread is modified as below to include the customer/vendor name :
    SELECT T3.cardcode, T0.ItemCode, SUM(T0.Quantity) 'PO Qty',SUM(T1.Quantity) 'GRPO Qty', SUM(T2.Quantity) 'Return Qty'
    FROM dbo.POR1 T0
    LEFT JOIN dbo.PDN1 T1
    ON T0.DocEntry = T1.BaseEntry AND T0.LineNum = T1.BaseLine
    LEFT JOIN dbo.RPD1 T2
    ON T1.DocEntry = T2.BaseEntry AND T1.LineNum = T2.BaseLine
    INNER JOIN dbo.OPDN T3
    ON T1.DocEntry = T3.docentry
    WHERE T0.ItemCode is not NULL AND T0.DocDate >= [%0] AND T0.DocDate <= [%1]
    GROUP BY T3.cardcode, T0.ItemCode
    Check if this helps.
    Please make sure you have a look on the Query Generator and the related books on the SQL query writing before you start creating your own.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Convert PLD to Crystal Report for SAP Business One 9 or higher

    Hi Experts
    Please guide me how to convert PLD to Crystal Report for SAP Business One 9 or higher... I have tried to use B1 Crystal Converter for 8.8, but its not working with SBO 9... So please guid as per SBO 9.
    Thanks in advance...

    Hi,
    Check this thread:
    http://scn.sap.com/thread/3391875
    Thanks & Regards,
    Nagarajan

  • Add-Ins menu not visible in Crystal report for Sap Business One

    Hi,
    I have installed the Crystal Report Design for Sap Business One on my customer server.
    But when I open the Crystal Report I can't see the Add-Ins menu to put the rpt directly on my Sap Business One.
    I have installed it on many customer, but only with this I have this type of problem.
    There is some restriction on Sap Version/Patches or Authorization Users or some check that I have to set on Sap or on Crystal Report?
    Regards
    Marco

    Hi All,
    i have the same issue on crystal report add-ins. Have you able to solve this without upgrading our sap business one to the latest version or patch level? Please see details below.
    OS: MS Windows 7 SP1
    SAP Business One 8.82 pl7
    Crystal report 2011
    Crystal report integration package installed under B1_SHare/Client
    But still the problem persist on the workstation.
    Please help me solve this problem.
    Thank you,
    ana

  • RG23A in Crystal report for SAP Business  One

    Hi All Experts,
    Can Anyone Provide me RG23A part I And RG23A Part II in Crystal report Format  For SAP Business One Database
    Regards ,
    Gayatri Shukla

    Hi All,
    i have the same issue on crystal report add-ins. Have you able to solve this without upgrading our sap business one to the latest version or patch level? Please see details below.
    OS: MS Windows 7 SP1
    SAP Business One 8.82 pl7
    Crystal report 2011
    Crystal report integration package installed under B1_SHare/Client
    But still the problem persist on the workstation.
    Please help me solve this problem.
    Thank you,
    ana

  • Not able to install crystal reporter in SAP Business One PL 42

    Hi All,
       I had been using the evaluation version of crystal reports. Now when the free licensed version was launched I uninstalled the version and tried to instal the new one which I have downloaded from the portal. I have uninstalled the crystal reports runtime and the SAP crystal reports from the control panel. Now in the same process as mentioned I am installing the crystal reports again. In the ADD-ON istallation part when I am click on start the system shows the following error-
    "An earlier version of crystal reports is found. Please ensure that the current installation is a higher version."
    Inspite of the fact that my system showed no instance of crystal reports installed after the uninstall run by me.
    Please guide me.
    Edited by: debraj bhattacharyya on Nov 3, 2008 6:05 AM

    The following is the Instructions Extract from "SAP_CRYSTAL_InstallInstructions.pdf":
    Un-installation of previous version:
    If a previous version of the Add-on exists , it is highly recommended the previous add-on be fully uninstalled before installing the new version. To uninstall the add-on, follow the 3 simple steps below.
    1. Using SAP Business One Administration | Add-Ons | Add-On Administration: remove and un-register the add-on.
    2. Log off SAP and Log back in for the un-installers to run.
    3. Using Windows Control Panel | Add-Remove programs: uninstall the u201CSAP Business One Crystal Reportsu201D ( Do not un-install Crystal Run time )
    Installation of New Version:
    1.The Add-On runs using the compatibility licence of SAP Business One.
    2.Copy the installation files to a suitable location.
    3.The installation disk or folder will contain a file called SAPCrystalSetup.exe.
    4.Log on to the target PC as an administrator or admin type user (windows).
    5.Copy the SAPCrystalSetup.exe to a convenient location on the target PC and run SAPCrystalSetup.exe (confirm all overwrites - you may keep the CrystalDesignerPath.txt intact if the path specified is different to the defaults).
    6.SAPCrystalSetup.exe will install the add-on components on the local PC. It is recommended that you keep the path selected by the installer. The default installation path for the Add-on files are C:\Program Files\SAP\SAP Business One\AddOns\SAP_CR.
    7.Locate the folder u201CDotNetFramework_3.5u201D , make sure the PC is connected to the internet and run the u201CdotNetFx35setup.exe u201C. An automatic download will occur, to get the suitable files for .Net Framework 3.5. This will take several minutes depending on the bandwidth. The installation of the .Net Framework will happen once the download finishes.
    8.Locate the folder u201CCrystal_2008_Runtime_exeu201D and run the u201CCRRuntime_12_0_mlb.exeu201D. if a product ID is requested, leave the Text Box blank and proceed with install. This installs the Crystal Reports Runtime for Version 2008 on the local PC.
    9.Once the setup.exe has completed, log on to SAP as manager or any other superuser.
    10.Using Administration | Addons | Add-On Administration, register the Crystal Add-On, set the desired settings and restart SAP.
    11.Log on to SAP, as a super user.
    12.Run Account setup from Administration | Crystal Reports Administration | Account setup
    13.Type in the sa password for the SQL server that holds SAP databases, and click Update. ( this process needs to be performed for each new PC, Once. )
    14.Click the Create Ext tables button. Add-on will now create the additional tables (this process must be performed for each new SAP company once u2013 and can be performed from ANY PC). This creates the External SQL tables needed for the add-on.
    15.THE TASKS 5, 6, 7, 8, 9, 12, 17 WILL NEED TO BE RUN ON ALL PCS THAT NEEDS THE CRSYTAL ADD-ON.
    16.Crystal add-on is ready to use. A help file is provided and you may test the add-on with the sample reports found in u2026\ SAP_CR\SampleReports. The help file can be found in u2026\SAP_CR\Documents\UserHelpFile
    17.If the Crystal Designer has been installed on the local PC, the following file needs to be edited ( or checked to be correct). The file gives the path to the Crystal Reports Designer exe. The add-on will read this file to launch Crystal Designer.
    C:\Program Files\SAP\SAP Business One\AddOns\SAP_CR\Resources\CrystalDesignerPath.txt

  • Incorrect font when print a crystal report in SAP Business One

    I design a report in Business Object basic edition 2008 and work without problems with the business object application. But if I use the crystal report integration in SAP Business One screens the report print the information with a wrong font, do not use the utility font used in the report configuration. I need help in this !!!!!

    Hi Roberto,
    I suggest you post your question to the Business One forum.
    I can't move this one.
    Thank you
    Don

  • How to add drop down list for query manager report in sap business one

    Hi Every one,
    I need drop down list for parameter selection in sap business one Query Manager.I have two Parameters 'Sales Order','Invoice'.
    Please suggest.
    Thanks and Regards
    DEV

    Hi,
    you need to use this :
    /*select from [dbo].[OINV] T2*/
    DECLARE @Invoice varchar(100)
    /*where*/
    set @Invoice =/* T2.DocNum  */N'[%2]'
    you can change the tables and the parameter number but you have to write it exactly that way.
    when you run the query within the SBO you will get list of objects ( in this case list of invoices)
    hope it was helpful
    Shachar

  • How to configure Xl Reporter in SAP Business One

    Hi
    Can you please tell me the steps for how to configure xl reporter in sap b1
    Regards
    Sandip

    Hi Sandip,
    In Sap 8.8 u no need to configure or install XL reporter .
    While Installing SAP 8.8 XL reporter Automatically Gets Installed
    And Also check whether MS Excel 2003 installed 2003 excel supports XL reporter
    U can check under Sap Menu -
    >Under Tools----
    >u can find XL reporter .
    Hope this  helps u
    Regards
    Jenny

  • Error while opening the report from Sap Business one

    Hi Experts,
    I am facing a Problem while importing a CrystalReport in SAPBusiness One, it displaying an erroru201CNo matching records found u2018Queriesu2019 (OUQR) (ODBC -2028) Message 131-183u201D , and there is no use of this table OUQR in the query.
    Kindly let me know the solution.

    Hi,
    I am having the same issue. I am not able to import Crystal Report.
    the error is "No matching records found  'Queries' (OUQR) (ODBC -2028)  [Message 131-183]"
    I have previewed the report using Preview external crystal report option and is running perfect.
    please guide ASAP.
    Regards
    Sonil

Maybe you are looking for

  • Error while creating the delivery for STO

    Hi, While creating the delivery, an error is produced when i saw the log . It was as follows "An Item with no delivery quantity is not permitted. Item will be deleted" Its related to STO,. if STO contains around  100 items and error is for any single

  • Screen going light gray with thin lines...

    throughout the entire screen...vertical lines...first time this has happened... I've got a late 2008 mbp...last one before the move to unibody i think...mbp 4.1 it says for model identifier... this didn't affect the large screen i have attached to th

  • Reporting: Adobe Air - Black Screen Bug Spotted

    Basically, my latest android app got rejected during a certification process due to a black screen popping up after triggering the alarm. This is my error report that I received from the store: Black screen appears after alarm <Procedure> 1. Launch a

  • Bootcamp Utility Error When Trying to Delete Partition

    My hard drive is almost full and I need to delete my 50 GB Windows partitions.  When I try to do it using Bootcamp Utility I get an error message.  Not sure how relevant this is, but I upgraded to Yosemite a few months ago.  Any suggestions?

  • Creating Audiobooks with Chapter Divisions from MP3 files.

    I can create a plain old audiobook file from mp3's using this program... http://www.freeipodsoftware.com/ I have several unabridged books that have one 15-20 min mp3 file per chapter. I have heard that i want to keep audiobook file sizes below 320MB