Query issue---Aging report with Net due

Hello Gurus,
I am just stuck very badly with a report requirement. The reports has billing doc and item with amount aggregated under different age buckets.
Ex:
Bill doc-0000000001;item-10; aged bucket 10-20days-- -100
Bill doc-0000000001;item-20; aged bucket 30-40days-- 1000
remember that these are two different rows and columns. The user wants to see the net amount due for 30-40 days i.e 1000-100=900 not 1000.
How do I achieve this?
Thanks
Simmi

Technically the report is correct, the amount of due 10-20 days is -100 while the amount due for 30-40 days is 1000 where the sum is 900. The only problem is the aging dates and line item number if you get ride of them then you will get 900 which is correct but if you drill down by date the report is correct. There is no way to achieve what they want if you have to display the line item number. Tell them this is correct.
thanks.
Wond

Similar Messages

  • [2007A] - [8.81] Aging report with passed due date invoices in 120+ column

    Hello,
    My database contains invoices due in october 2010.
    When I run the aging report, the amount of the invoice is not in column 0-30 but in column 120+
    When I run the dunning wizard, these invoice are not included.
    i tried to look all the parameter without success. Any idea why I have these invoice in this column ? Please let me know if you need more information to understand my issue.
    I also tried to run the report in 8.81, and teh problem remain the same
    Thank you for you help
    Sébastien

    Gordon,
    OK you're right, I didn't read well this report, and I was confused with the fact that these invoices were not in the dunning wizard result.
    So yes, the aging report is correct, but my issue was the dunning wizard, and I realize these invoices have a dunning level in the installment higher than the max dunning level of my dunning terms.
    So thank you for your answer, it lead me to look at the real problem!
    Sébastien

  • R3 AR aging report with partial payment need FBL5N

    Hi, does anyone have AR aging report list NET BALANCE for each invoice for AR Aging report?  I tried FBL5N which did not apply partial payment to each invoice, customer would not want to see this kind of report and we did in Excel for all open invoices which just waste time only.  
    We do not have BW or Crystal report but need to know which canned report can be used for us to send statement.  Tks.
    SAP R3 ECC 6.0 user.

    Hi,
    I am actually running the SAP Delivered Report in BW.
    So I didn't changed any thing in report.
    I m running the report in ECC using s_alr_87016128 tcode.
    Still I m getting the amount difference.
    I have checked at customer level with company code and Key date.
    Can i get inputs on these.
    ECC Report s_alr_87012168
    BW Report:0FIAR_C03_Q0005
    Thanks,
    Geetha

  • Sample query for Aging Report

    Hi! Anybody who has a sample sql query for aging report? basically this is the table structure and sample data
    bill_no B1-01 B1-02 B1-03
    bill_date 01-JAN 01-FEB 01-MAR
    previous_balance 100 600 800
    current_charges 500 200 400
    total_due 600 800 1200
    As of march 1, total due is 1200. how can i get the breakdown of 1200 as to the number of days it has been due. ex. 500 (60 days old 01-JAN to 01-MAR), 200 (30 days old), 400 (current)
    please help. thanks!
    null

    SELECT CEIL((SELECT MAX(Bill_Date) FROM Bill)- Bill_Date) Days , Previous_Balance, Current_Charges FROM Bill ORDER BY Days ASC
    Then create a matrix reprot.

  • Need SAP BW AR Aging Report with R/3 Aging Report Should Match

    Hello All,
    Could you please let me know SAP Delivered AR Aging Report on BW Side should match with SAP R/3 AR Aging Report for a given Customer.
    When I ran the report on BW Side I am able to match the report values with InfoProvider Values and also with RSA3 Extractor (0FI_AR_4).
    But when i tried to compare BW report with ECC Report values are not Matching at a given Customer Number.
    Please explain the best practice to match the values of BW Standard Aging report with ECC standard AR aging report.
    Thanks,
    Geetha

    Hi,
    I am actually running the SAP Delivered Report in BW.
    So I didn't changed any thing in report.
    I m running the report in ECC using s_alr_87016128 tcode.
    Still I m getting the amount difference.
    I have checked at customer level with company code and Key date.
    Can i get inputs on these.
    ECC Report s_alr_87012168
    BW Report:0FIAR_C03_Q0005
    Thanks,
    Geetha

  • Stock Aging report with current date

    Dear Experts
    Can we able to take stock aging report with current date?
    Thanks&Regards,
    Vinoth Raj K

    You're posting in the Portuguese B1 space.
    You might want to post in the English one: SAP Business One Application

  • Shelf ageing report with qty and value

    hi
    i want shelf ageing report with stock value and stock quantity together.
    or any other way to club together the reports which will having stock qty and stock value

    Hi,
        How about TRC:MB5M( Expiration Date List).   But the function is qty only.
       Maybe you have to make add on program.
    Regards,
       Gaito

  • Can using query create aging report for GL Account

    Hi all expert,
    I have a challenge scenario which customer request print out aging report for the following GL Account.
    This is not a business partner account. However, customer want display like aging report.
    30 days aging report for the following GL accounts by projects:-
         i)     WIP (Work In Progress) account
         ii)     Accrued Revenue account
         iii)     Accrued Cost account
    Examples:
                            Current Balance       30 day   60 day  90 day   120 day
    Account  WIP         10000               2000        3000      5000     0
    Any idea or example given? If yes, can you provide a query here?
    Regards,
    Eric Tan

    Hi Eric
    In standard SAP Business One this is difficult as the reports are 2 dimensional. To achieve this you will need to write multiple select statements into a temporary table and then select the final result from the temp table. Here is a sample for you to test:
    USE [*DATABASE_NAME*]
    GO
    /****** Object:  StoredProcedure [dbo].[REPORT_NAME]    Script Date: 04/24/2009 13:17:21 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE proc [dbo].[*REPORT_NAME*]
    as
    set nocount on
    begin
    DECLARE @Day_no varchar(2)
    DECLARE @Month_no varchar(2)
    DECLARE @Year_no varchar(4)
    DECLARE @Start_Date Datetime
    SET @Day_no = DAY(GetDate())
    SET @Month_no = MONTH(GetDate())
    SET @Year_no = YEAR(GetDate())
    SET @Start_Date = @Year_No + '/' + @Month_no + '/' + @Day_no --  + '/' + @Year_No
    IF OBJECT_ID(N'tempdb..#CRDAGEING', N'U') IS NOT NULL
    drop table #CRDAGEING
    SELECT T0.[CardCode] AS [CardCode], T0.[CardName] AS [CardName], -T0.[Balance] AS [Balance], CAST(0 AS MONEY) AS [Current], CAST(0 AS MONEY) AS [1Week], CAST(0 AS MONEY) AS [2Weeks], CAST(0 AS MONEY) AS [3Weeks], CAST(0 AS MONEY) AS [4Weeks], CAST(0 AS MONEY) AS [5Weeks], CAST(0 AS MONEY) AS [6Weeks], CAST(0 AS MONEY) AS [Over6Weeks], CAST(0 AS MONEY) AS [Avg3Months], CAST (0 AS MONEY) AS [Onhand] INTO #CRDAGEING FROM OCRD T0 WHERE T0.[CardType] = 'S' -- and T0.[CardCode] <> '' --and T0.[DocDate] >= @FromDate AND T0.[DocDate] <= @ToDate
    INSERT dbo.#CRDAGEING SELECT T1.[ShortName], NULL, 0, -SUM(T1.[BalDueDeb] - T1.[BalDueCred]), 0, 0, 0, 0, 0, 0, 0, 0, 0 FROM JDT1 T1, OCRD T2 WHERE T2.[CardType] = 'S' and T2.[CardCode] = T1.[ShortName] and T1.[DueDate] <= @Start_Date GROUP BY T1.[ShortName]
    INSERT dbo.#CRDAGEING SELECT T1.[ShortName], NULL, 0, 0, -SUM(T1.[BalDueDeb] - T1.[BalDueCred]), 0, 0, 0, 0, 0, 0, 0, 0 FROM JDT1 T1, OCRD T2 WHERE T2.[CardType] = 'S' and T2.[CardCode] = T1.[ShortName] and T1.[DueDate] >= DATEADD(DAY,1,@Start_Date) and T1.[DueDate] <= DATEADD(DAY,8,@Start_Date) GROUP BY T1.[ShortName]
    INSERT dbo.#CRDAGEING SELECT T1.[ShortName], NULL, 0, 0, 0, -SUM(T1.[BalDueDeb] - T1.[BalDueCred]), 0, 0, 0, 0, 0, 0, 0 FROM JDT1 T1, OCRD T2 WHERE T2.[CardType] = 'S' and T2.[CardCode] = T1.[ShortName] and T1.[DueDate] > DATEADD(DAY,8,@Start_Date) and T1.[DueDate] <= DATEADD(DAY,15,@Start_Date) GROUP BY T1.[ShortName]
    INSERT dbo.#CRDAGEING SELECT T1.[ShortName], NULL, 0, 0, 0, 0, -SUM(T1.[BalDueDeb] - T1.[BalDueCred]), 0, 0, 0, 0, 0, 0 FROM JDT1 T1, OCRD T2 WHERE T2.[CardType] = 'S' and T2.[CardCode] = T1.[ShortName] and T1.[DueDate] > DATEADD(DAY,15,@Start_Date) and T1.[DueDate] <= DATEADD(DAY,22,@Start_Date) GROUP BY T1.[ShortName]
    INSERT dbo.#CRDAGEING SELECT T1.[ShortName], NULL, 0, 0, 0, 0, 0, -SUM(T1.[BalDueDeb] - T1.[BalDueCred]), 0, 0, 0, 0, 0 FROM JDT1 T1, OCRD T2 WHERE T2.[CardType] = 'S' and T2.[CardCode] = T1.[ShortName] and T1.[DueDate] > DATEADD(DAY,22,@Start_Date) and T1.[DueDate] <= DATEADD(DAY,29,@Start_Date) GROUP BY T1.[ShortName]
    INSERT dbo.#CRDAGEING SELECT T1.[ShortName], NULL, 0, 0, 0, 0, 0, 0, -SUM(T1.[BalDueDeb] - T1.[BalDueCred]), 0, 0, 0, 0 FROM JDT1 T1, OCRD T2 WHERE T2.[CardType] = 'S' and T2.[CardCode] = T1.[ShortName] and T1.[DueDate] > DATEADD(DAY,29,@Start_Date) and T1.[DueDate] <= DATEADD(DAY,36,@Start_Date) GROUP BY T1.[ShortName]
    INSERT dbo.#CRDAGEING SELECT T1.[ShortName], NULL, 0, 0, 0, 0, 0, 0, 0, -SUM(T1.[BalDueDeb] - T1.[BalDueCred]), 0, 0, 0 FROM JDT1 T1, OCRD T2 WHERE T2.[CardType] = 'S' and T2.[CardCode] = T1.[ShortName] and T1.[DueDate] > DATEADD(DAY,36,@Start_Date) and T1.[DueDate] <= DATEADD(DAY,43,@Start_Date) GROUP BY T1.[ShortName]
    INSERT dbo.#CRDAGEING SELECT T1.[ShortName], NULL, 0, 0, 0, 0, 0, 0, 0, 0, -SUM(T1.[BalDueDeb] - T1.[BalDueCred]), 0, 0 FROM JDT1 T1, OCRD T2 WHERE T2.[CardType] = 'S' and T2.[CardCode] = T1.[ShortName] and T1.[DueDate] > DATEADD(DAY,43,@Start_Date)  GROUP BY T1.[ShortName]
    SELECT SR.[CardCode], MAX(SR.[CardName]), SUM(SR.[Balance]) AS [BalanceOwing], SUM(SR.[Current]) AS [Current], SUM(SR.[1Week]) AS [1Week], SUM(SR.[2Weeks]) AS [2Weeks], SUM(SR.[3Weeks]) AS [3Weeks], SUM(SR.[4Weeks]) AS [4Weeks], SUM(SR.[5Weeks]) AS [5Weeks], SUM(SR.[6Weeks]) AS [6Weeks], SUM(SR.[Over6Weeks]) AS [Over6Weeks] FROM dbo.#CRDAGEING SR GROUP BY SR.[CardCode] ORDER BY SR.[CardCode]
    END
    Go to Microsoft SQL Studio manager and select your company database. Then expand the list and select Programmability > Stored Procedures. Right click on Stored Procedures and select New Stored Procedure. Copy the above code over the code in the edit window and change the database name as well as report name. Then select Execute to create the stored procedure. If you make changes, remember to change the word CREATE to ALTER (with other words CREATE for the first execute, and ALTER thereafter). Then in SAP Business One create a new query and leave everything blank. Click on execute and select the pencil to change to edit mode. Remove the words SELECT and type in EXEC REPORT_NAME (change the REPORT_NAME to the name you used in SQL). Then execute again and the results will be displayed in SAP Business One.
    Let me know if you get stuck. Remember the above is an example and will need to be changed to use your tables and fields as required. The basic idea is to move across by one column with each select statement. So for example the first select statement does the CURRENT column, the second one the 30DAYS column, and so on.
    Kind regards
    Peter Juby

  • Aging report with intervals

    Hi,
    i want to create an aging report by business partner balance with the folowing intervals of aging periode.
    4 columns with 0-120 days 120-180 days 180-360 days and older then 360 days
    Is there somebody who can help me set this up.
    I,am not using SBO 8.8 and don't want to upgrade yet
    Thanks
    Mark

    hi M. Hageman     
    the query is very long but i can tell you steps:
    example : aging  to 31/08/2010
    - AP Invoice before 31/08/2010 that are still open
    -AP Invoice reconciled after >31/08/2010 for AP Invoice created <= 31/08/2010
    -AP Credit Memo before 31/08/2010 that are still open (It should be credit memo without base doc)
    -Reconciliation for Credit memo without base doc created before 31/08/2010 but reconciled after 31/08/2010
    -outgoing payment created before 31/08/2010 but have Open Balance <> 0
    -Outgoing payment da reconcile trong thoi gian >  31/08/2010 ma duoc tao ra < = 31/08/2010
    -Incoming payment of vendor created before 31/08/2010 and still open
    -incoming payment created before <= 31/08/2010 but reconciled >31/08/2010
    -journal entry befor 31/07/2010 that are still open
    - journal entry befor 31/07/2010 But reconciled >31/07/2010
    thanks,
    H2

  • Aging report with different intervals

    Hi,
    i want to create an aging report by business partner balance with the folowing intervals of aging periode.
    4 columns with 0-120 days  120-180 days 180-360 days and older then 360 days
    Is there somebody who can help me set this up.
    Thanks
    Mark

    Not yet possible because of some not tested processes.
    First we do an upgrade to latest PL of 2007A
    The reason to do a upgrade to SBO 8.8 is indeed the improved aging criterias
    So if you have a nice query which fullfills our need would be great
    Thanks
    Mark

  • Aggregation issue for report with bw structure

    Hi,
    I am facing aggregation issue while grouping reports in webi.
    We have a BW query with 16 values, which we bring to bw as structure. Out of 16, 8 are percentage values (agg. type should be average).
    If we bring the data at site level, data is comming properly. But if we use same query and try sum/grouping( on region level), then percentage is getting added.
    Since it's a dashboard report with lots of filters, we cannot go for seperate query at each level(site, region, zone).
    How we can resolve this.. please give me suggestion.
    Regards
    Baby

    Hi,
    Since we were using structure, it was not possible to produce the required result in BO.
    We change structure to keyfigures and bring all of them in to BO. All the column formulas are now in BO side.
    Now it is working fine.
    Regards
    Baby
    Edited by: Baby on May 10, 2010 11:39 AM

  • Aging Report with Customer/Vendor Ref. No. should allow backdate

    Aging Reports for Suppliers and Customers.
    The current printing of the aging reports using Sales Document tab or the Purchase Document tab does not tie with the GL balances when the dates are backdated. It is important that the detail aging report to show the customer/ vendor ref. no.
    There are times when urgent outgoing/ incoming payment are entered into the system for the current period when the vendor detail aging reports or the customer statement with the customer/ vendor ref. no is not ready to be printed for the previous period.
    By allow backdating, it gives the users much needed flexibility in creating the transactions into SAP Business One without having to wait till all the previous month financial reporting is finalized. This is especially important during the financial year end.
    Current Workaround: None.

    Hello,
    Thank you for your input. The limitation is solved in 2007 A / 2007 B version as a part of new Internal Reconciliation concept.
    Regards,
    Peter Dominik
    Solution Manager
    B1 Product Definition Team

  • Stock ageing report with batch Management active

    Hi Experts,
    My client wants a Stock ageing report and batch management is active
    According to my client, Inventory ageing report should show stock quantities and stock value as follows,
    1. Below one year
    2. Between one and two years
    3. Above two years
    What are the table and fields to be considered for this report.
    Thanks
    NDS

    What steps do you mean? taking an ABAP course and doing it yourself, or stepping to an ABAPer and let him know what he shall do?
    you asked for a stock report, not for a movement report.
    If I go into my warehouse and looking at all the stuff sitting there and want a report that should tell me how old this stuff is, then i am not intrested if there was a goods receipt movement.
    However I would like to know the last movement date. In this case you have to look into table S032 or into the movements MSEG (with MKPF as header table)

  • AP aging Report with Aging Period as parameter

    HI all ,
    It's required from me to make AP aging period report with parameters including Aging periods as parameter so that the user will have list of value with the aging periods avaialable & he should choose from them .
    Based on that
    the columns with the period starting & ending periods will be varied (dynamic) up on the period chosen .
    The required is to get the invoice amount under each related column ............ is that possible & if yes please just guide me with the idea as the many ideas that i got is calculating the amounts with the period as statically behavior ...
    Thanks alot

    is there something missing in my requirments

  • Issue migrating reports with Graphical features.

    Hi guys,
    I am working on migrating reports from 10g to 11g and I have an issue with the reports which contains a Graph. They are giving the following error when I run them against the 11g report server(they are running fine against the 10g server with out any issues)
    The report terminated with error:
    REP-56048: Engine rwEng-1 crashed., job Id: 24.
    I have searched on Google, for a solution to fix them, the closest I found was Installing Oracle Graphics 6i engine in a separate Oracle Home, but this was said for 9i and 10g, you can find that in the below oracle document:
    http://www.oracle.com/technetwork/middleware/reports/graph-faq-with-style-094084.html#q101
    Does anyone know, if I can Install Oracle Graphics 6i engine in a separate Oracle Home for 11g too?, to make them work at least, if not modifying the existing ones?
    Thanks,
    Sona.

    Hi Sona,
    unfortunately installing Graphics 6i in a separate OH for 11g wont work. This option was only possible until Reports 10g as a temporary option while migrating to the new BI beans graphing functionality included in 10gR2 and 11g.
    Reference
    http://www.oracle.com/technetwork/middleware/reports/graph-faq-with-style-094084.html
    Migrating Oracle Graphics 6i charts
    How do I migrate my charts from Oracle Graphics to the new graph format in Oracle9i Reports or Oracle Reports 10g?
    Oracle9i Reports Release 1 onwards, Oracle Graphics has been desupported. Oracle9i Reports and Oracle Reports 10g use BI Beans to generate graphs. Because of the underlying technology, there is no direct migration path from Oracle Graphics to the BI Bean graphing functionality. As such, the user will need to rewrite all of their graphs using the new Graph Wizard within the Reports Builder.
    Top of Page
    Can I still run my existing Oracle Reports Developer 6i reports containing Oracle Graphics charts in Oracle Reports?
    As noted in the Oracle Reports Statement of Direction, Oracle Graphics is no longer shipped with Oracle Reports. However, as part of the migration path, you can still run Oracle Graphics charts in Oracle Reports if you install the Oracle Graphics 6i engine in a separate Oracle Home. You should only maintain Oracle Graphics 6i as a temporary measure while you redesign your charts using the new Graph Wizard. For further details on how to configure Oracle to use Oracle Graphics 6i, please see the Graphics Migration section in the Oracle9i Application Server Migration from Oracle9iAS Release 1 (1.0.2.2.x) to Release 2 (9.0.2) manual.
    Top of Page
    Can I modify or add Oracle Graphics 6i charts to my reports with Oracle9i Reports or Oracle Reports 10g?
    No. You must have a separate installation of Oracle Graphics 6i Builder in order to modify your existing Oracle Graphics 6i charts since Oracle Graphics is not shipped with Oracle Reports. We strongly recommend that you migrate your charts to the new standard in Oracle Reports.
    Thanks, RZ

Maybe you are looking for

  • Error while creating pivot table in recording macro

    im getting error " Run time error 1004: unable to get the pivottables property of the worksheet class below is the code Sub Macro16() ' Macro16 Macro ' Keyboard Shortcut: Ctrl+t     ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData

  • Sequence Update not working?

    Hi I've recently set up Sequence replication. This is what I did (I already had GG installed and everything configured) On source and target: SQL> @sequence.sql Please enter the name of a schema for the GoldenGate database objects: GGS_OWNER Setting

  • HT1212 What if your computer will not go in recovery mode?

    I cant remember my passcode to access my iphone 4.  I followed the directions but my computer says i dont have recovery mode downloaded.  What can I do?

  • Hyperion Shared Services (WebHal) user retrieval - slow

    Hi, I applied the Hyperion Shared service patch 9.3.1 After that i am noticing a significant decrease in the user retrieval response time. Will deleting the users help me in any way ? Could you anyone point me as to how could i increase the response

  • Photos sync not working

    How do I sync photos on my pc to my iPad? I tried to select a folder to sync but iTunes but when I press apply iTunes what's do delete all my apps on the iPad ? What's going on...?