Debtors ageing report.

Hi experts,
kindly let me know while doing Debtors ageing in SAP which date system considers for ageing the customer line item? is it document date or posting date?
Regards
JS

Hi
Just to elaborate more. It hapens according to  baseline date+payment terms.
Genarally in SAP baseline date = document date
So ageing is done exactly as dunning
Thanx
alok

Similar Messages

  • How to Summarize a Detailed Debtors Aging Report

    Dear All,
    I have written a Query for a Detailed Debtors Aging Report - i.e a report which lists ALL unpaid invoices. It works smoothly.
    I use SAP B1 8.8.
    Now, I want to create a Summarized Debtors Aging Report  which groups all the unpaid invoices for a particular debtor and displays only 1 row for each debtor.
    I use the following commands: SUM(), GROUP BY to modify the original query.
    A very simplified version of my Detailed report is in Screen 1.
    The modifications I made to it to convert it to a Summarized report are in Screen 2. It does not work!
    I have traced the error to the following:
    SUM ((SELECT T0.BalDueDeb - T0.BalDueCred WHERE DateDiff(mm, T0.TaxDate,@taxdt) = 1))
    AS '1 Mth Ago'
    This is the code I use to put the amount due in the appropriate Age Bracket.
    The SQL Error Message is:
    Cannot perform an aggregate function on an expression containing an aggregate or a sub query
    Could you please help me rewrite this so that it works?
    Thanks
    Leon Lai
    Screen 1 : The Original DETAILED report
    declare @taxdt datetime
    set @taxdt
    /*select 1 from jdt1 t0 where t0.TaxDate*/ = [%1]
    SELECT
    CASE
                 WHEN T0.Account = 1220101 THEN 'Prim Cust'
                 WHEN T0.Account = 1220102 THEN 'Fgn Cust'
                 WHEN T0.Account = 1220103 THEN 'Local Cust'
                 WHEN T0.Account = 1220104 THEN 'Staff Loan' 
                 WHEN T0.Account = 1220105 THEN 'Dep with TP'
                 WHEN T0.Account = 1220106 THEN 'Adv to Cust'
                 WHEN T0.Account = 1220108 THEN 'Sund Drs'
                 ELSE 'Error ! ! !'
    END AS 'Control A/c',
    T1.CardCode AS 'BP Code',
    T2.Notes2 AS 'BP Name',
    (T0.Debit - T0.Credit) AS 'Orig. Rs',
    (T0.BalDueDeb - T0.BalDueCred) AS 'Bal. Rs',
    (SELECT T0.BalDueDeb - T0.BalDueCred WHERE DateDiff(mm, T0.TaxDate, @taxdt) = 1)
    AS '1 Mth Ago'
    FROM JDT1 T0
    INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    LEFT OUTER JOIN OCPR T2 ON T1.CardCode = T2.Cardcode
    LEFT OUTER JOIN OJDT T3 ON T0.TransID = T3.TransID
    LEFT OUTER JOIN OINV  T4 ON T3.TransID = T4.TransID
    LEFT OUTER JOIN ORIN  T5 ON T3.TransID = T5.TransID
    WHERE
    T1.CardType = 'C'
    and (Balance) != 0
    and (T0.BalDueDeb - T0.BalDueCred) != 0
    Screen 2 : The Modified SUMMARY report
    declare @taxdt datetime
    set @taxdt
    /*select 1 from jdt1 t0 where t0.TaxDate*/ = [%1]
    SELECT
    CASE
                 WHEN T0.Account = 1220101 THEN 'Prim Cust'
                 WHEN T0.Account = 1220102 THEN 'Fgn Cust'
                 WHEN T0.Account = 1220103 THEN 'Local Cust'
                 WHEN T0.Account = 1220104 THEN 'Staff Loan' 
                 WHEN T0.Account = 1220105 THEN 'Dep with TP'
                 WHEN T0.Account = 1220106 THEN 'Adv to Cust'
                 WHEN T0.Account = 1220108 THEN 'Sund Drs'
                 ELSE 'Error ! ! !'
    END AS 'Control A/c',
    T1.CardCode AS 'BP Code',
    T2.Notes2 AS 'BP Name',
    SUM ((T0.Debit - T0.Credit)) AS 'Orig. Rs',                 /* Added SUM()*/
    SUM ((T0.BalDueDeb - T0.BalDueCred)) AS 'Bal. Rs',         /*Added SUM()*/
    SUM ((SELECT T0.BalDueDeb - T0.BalDueCred
        WHERE DateDiff(mm, T0.TaxDate, @taxdt) = 1))    
        AS '1 Mth Ago'               /*Added SUM() PROBLEM IS HERE! */
    FROM JDT1 T0
    INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    LEFT OUTER JOIN OCPR T2 ON T1.CardCode = T2.Cardcode
    LEFT OUTER JOIN OJDT T3 ON T0.TransID = T3.TransID
    LEFT OUTER JOIN OINV  T4 ON T3.TransID = T4.TransID
    LEFT OUTER JOIN ORIN  T5 ON T3.TransID = T5.TransID
    WHERE
    T1.CardType = 'C'
    and (Balance) != 0
    and (T0.BalDueDeb - T0.BalDueCred) != 0
    GROUP BY T0.Account, T1.CardCode, T2.Notes2                   /*Added GROUP BY*/

    Hi,
    Try:
    declare @taxdt datetime
    set @taxdt
    /*select 1 from jdt1 t0 where t0.TaxDate*/ = [%1]
    SELECT
    CASE     T0.Account
            WHEN 1220101 THEN 'Prim Cust'
            WHEN 1220102 THEN 'Fgn Cust'
            WHEN 1220103 THEN 'Local Cust'
            WHEN 1220104 THEN 'Staff Loan' 
            WHEN 1220105 THEN 'Dep with TP'
            WHEN 1220106 THEN 'Adv to Cust'
            WHEN 1220108 THEN 'Sund Drs'
            ELSE 'Error ! ! !'
    END AS 'Control A/c',
    T1.CardCode AS 'BP Code',
    T2.Notes2 AS 'BP Name',
    SUM (T0.Debit - T0.Credit) AS 'Orig. Rs',                 /* Added SUM()*/
    SUM (T0.BalDueDeb - T0.BalDueCred) AS 'Bal. Rs',         /*Added SUM()*/
    (SELECT SUM (T6.BalDueDeb - T6.BalDueCred) FROM JDT1 T6
        WHERE DateDiff(mm, T6.TaxDate, @taxdt) = 1 AND T6.TransID=T1.TransID)   
        AS '1 Mth Ago'               /*Added SUM() PROBLEM IS HERE! */
    FROM JDT1 T0
    INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    LEFT JOIN OCPR T2 ON T1.CardCode = T2.Cardcode
    LEFT JOIN OJDT T3 ON T0.TransID = T3.TransID
    LEFT JOIN OINV  T4 ON T3.TransID = T4.TransID
    LEFT JOIN ORIN  T5 ON T3.TransID = T5.TransID
    WHERE
    T1.CardType = 'C'
    and (Balance) != 0
    and (T0.BalDueDeb - T0.BalDueCred) != 0
    GROUP BY T0.Account, T1.CardCode, T2.Notes2                   /*Added GROUP BY*/
    Thanks,
    Gordon

  • REPOST -Summarizing a Detailed Debtors Aging Report

    Dear All,
    I use a Query (SAP B1 8.8) for Detailed Debtors Aging Report - i.e a report which lists all unpaid invoices and sends each amount to a column representing the age bracket.
    Now, I want to create a Summary Debtors Aging Report which groups all the unpaid invoices for a particular debtor and displays only 1 row for each debtor. The total due by the debtor is analysed in 1 or more Age Brackets.
    I use the SUM() and GROUP BY claused to modify the original query.
    A very simplified version of my Detailed report is in Screen 1.
    The modifications I made to it to convert it to a Summarized report are in Screen 2. It does not work!
    I have traced the error to the following:
    SUM ((SELECT T0.BalDueDeb - T0.BalDueCred
    WHERE DateDiff(mm, T0.TaxDate,@taxdt) = 1))
    AS '1 Mth Ago'
    Error is:
    Cannot perform an aggregate function on an expression containing an aggregate or a sub query
    I also tried this code:
    (SELECT
    SUM (T6.BalDueDeb - T0.BalDueCred)
    FROM JDT1 T6
    WHERE DateDiff(mm, T0.TaxDate, @taxdt) = 1
    AND T6.TransID = T0.TransID)
    AS '1 Mth Ago'
    Error is:
    'JDT1.TransID' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
    Could you help me write the code correctly?
    Thanks
    Leon Lai
    ADDITIONAL INFO
    Screen 1 : The Original DETAILED report
    declare @taxdt datetime
    set @taxdt
    /*select 1 from jdt1 t0 where t0.TaxDate*/ = [%1]
    SELECT
    CASE
                 WHEN T0.Account = 1220101 THEN 'Prim Cust'
                 WHEN T0.Account = 1220102 THEN 'Fgn Cust'
                 WHEN T0.Account = 1220103 THEN 'Local Cust'
                 WHEN T0.Account = 1220104 THEN 'Staff Loan' 
                 WHEN T0.Account = 1220105 THEN 'Dep with TP'
                 WHEN T0.Account = 1220106 THEN 'Adv to Cust'
                 WHEN T0.Account = 1220108 THEN 'Sund Drs'
                 ELSE 'Error ! ! !'
    END AS 'Control A/c',
    T1.CardCode AS 'BP Code',
    T2.Notes2 AS 'BP Name',
    (T0.Debit - T0.Credit) AS 'Orig. Rs',
    (T0.BalDueDeb - T0.BalDueCred) AS 'Bal. Rs',
    (SELECT T0.BalDueDeb - T0.BalDueCred WHERE DateDiff(mm, T0.TaxDate, @taxdt) = 1)
    AS '1 Mth Ago'
    FROM JDT1 T0
    INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    LEFT OUTER JOIN OCPR T2 ON T1.CardCode = T2.Cardcode
    LEFT OUTER JOIN OJDT T3 ON T0.TransID = T3.TransID
    LEFT OUTER JOIN OINV  T4 ON T3.TransID = T4.TransID
    LEFT OUTER JOIN ORIN  T5 ON T3.TransID = T5.TransID
    WHERE
    T1.CardType = 'C'
    and (Balance) != 0
    and (T0.BalDueDeb - T0.BalDueCred) != 0
    Screen 2 : The Modified SUMMARY report
    declare @taxdt datetime
    set @taxdt
    /*select 1 from jdt1 t0 where t0.TaxDate*/ = [%1]
    SELECT
    CASE
                 WHEN T0.Account = 1220101 THEN 'Prim Cust'
                 WHEN T0.Account = 1220102 THEN 'Fgn Cust'
                 WHEN T0.Account = 1220103 THEN 'Local Cust'
                 WHEN T0.Account = 1220104 THEN 'Staff Loan' 
                 WHEN T0.Account = 1220105 THEN 'Dep with TP'
                 WHEN T0.Account = 1220106 THEN 'Adv to Cust'
                 WHEN T0.Account = 1220108 THEN 'Sund Drs'
                 ELSE 'Error ! ! !'
    END AS 'Control A/c',
    T1.CardCode AS 'BP Code',
    T2.Notes2 AS 'BP Name',
    SUM ((T0.Debit - T0.Credit)) AS 'Orig. Rs',                 /* Added SUM()*/
    SUM ((T0.BalDueDeb - T0.BalDueCred)) AS 'Bal. Rs',         /*Added SUM()*/
    SUM ((SELECT T0.BalDueDeb - T0.BalDueCred
        WHERE DateDiff(mm, T0.TaxDate, @taxdt) = 1))    
        AS '1 Mth Ago'               /*Added SUM() PROBLEM IS HERE! */
    FROM JDT1 T0
    INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    LEFT OUTER JOIN OCPR T2 ON T1.CardCode = T2.Cardcode
    LEFT OUTER JOIN OJDT T3 ON T0.TransID = T3.TransID
    LEFT OUTER JOIN OINV  T4 ON T3.TransID = T4.TransID
    LEFT OUTER JOIN ORIN  T5 ON T3.TransID = T5.TransID
    WHERE
    T1.CardType = 'C'
    and (Balance) != 0
    and (T0.BalDueDeb - T0.BalDueCred) != 0
    GROUP BY T0.Account, T1.CardCode, T2.Notes2                   /*Added GROUP BY*/

    Hi ,
    Try this:
    declare @taxdt datetime
    set @taxdt
    /*select 1 from jdt1 t0 where t0.TaxDate*/ = [%1]
    SELECT
    CASE
                 WHEN T0.Account = 1220101 THEN 'Prim Cust'
                 WHEN T0.Account = 1220102 THEN 'Fgn Cust'
                 WHEN T0.Account = 1220103 THEN 'Local Cust'
                 WHEN T0.Account = 1220104 THEN 'Staff Loan' 
                 WHEN T0.Account = 1220105 THEN 'Dep with TP'
                 WHEN T0.Account = 1220106 THEN 'Adv to Cust'
                 WHEN T0.Account = 1220108 THEN 'Sund Drs'
                 ELSE 'Error ! ! !'
    END AS 'Control A/c',
    T1.CardCode AS 'BP Code',
    T2.Notes2 AS 'BP Name',
    SUM ((T0.Debit - T0.Credit)) AS 'Orig. Rs',                 /* Added SUM()*/
    SUM ((T0.BalDueDeb - T0.BalDueCred)) AS 'Bal. Rs',         /*Added SUM()*/
    ((SELECT SUM(T0.BalDueDeb) - Sum(T0.BalDueCred)
        WHERE DateDiff(mm, T0.TaxDate, @taxdt) = 1))    
        AS '1 Mth Ago'               /*Added SUM() PROBLEM IS HERE! */
    FROM JDT1 T0
    INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    LEFT OUTER JOIN OCPR T2 ON T1.CardCode = T2.Cardcode
    LEFT OUTER JOIN OJDT T3 ON T0.TransID = T3.TransID
    LEFT OUTER JOIN OINV  T4 ON T3.TransID = T4.TransID
    LEFT OUTER JOIN ORIN  T5 ON T3.TransID = T5.TransID
    WHERE
    T1.CardType = 'C'
    and (Balance) != 0
    and (T0.BalDueDeb - T0.BalDueCred) != 0
    GROUP BY T0.Account, T1.CardCode, T2.Notes2         ,T0.TaxDate          
    Thanks,
    Neetu

  • Data mismatch with ECC FBL5N report and debtor ageing report(BI side)

    Hi,
    I am facing a data mismatch problem with FBl5N(t-code for customer line item report) report in ECC side and Debtor ageing report in BI side.
    The problem is
    1) there are mismatch of data with some customer amounts in both ECC and Bi side.
    2) and also there are customer Nos with amounts in BI Debtor ageing report which are not there in the ECC FBL5N(t-code for customer line item report)
    for the second problem, I checked in the Tables BSID,BSAD in ECC side ,there also these customer Nos are not available.
    One more strange thing is that with the same selectionin report on both ECC and BI reports the data mismatch and The extra customers in Bi reports are changing everyday, i.e. we are getting new set of data mismatch and extra customers Nos in BI Side.
    If anyone  have worked on this type of issue.....kindly help...
    Thanks in advance

    Hi,
    on the one hand it may be delta mechanism of FI_*_4 extractors with the timestamps issue, that your comparision between BI and ECC is at no time up to date.
    FI Extraction
    on the other hand, it may be the delta problem between data targets in your BI-System, in case you load the FI-Data from a DSO to a cube and make a report on the cube. I have this problem at the moment and will watch this thread for more suggestions.

  • What is and how to write a Report Debtors Aging Report (FI)?

    Hi all,
    I am anticipating to write some Abap-FI reports..Here is one of them..Anyone can help me with writing a Report , how to do 'Debtors Aging Report (FI)' ..
    But since I am new to Abap , if you wish to reply, please use a little more detail and simple explanation, step by step so I can understand what is the idea, how it can be acheived...what kind of report should be used , abap techniques, tables, the structure of the program etc. things that probably look natural to expert-abaper...:)
    Appreciate your help!
    Regards,
    Boby

    hi,
    tables : bsid all data
                bsad  augdt >  rundate
    CALL FUNCTION 'HR_SGPBS_YRS_MTHS_DAYS' for to calcudate due date
    pass bldat & rundate as parameter.
    on basis of days put CASE condition.
    raj

  • Debtors aging in two currencies.

    Hi
    In debtors aging reports S_ALR_87012175 & S_ALR_87012168, We can currently get the report in one currency Local currency . There’s a request to change this to get the report in two currencies that is Local currency  as well as USD (us$ values). Could you please guide me how to do the require changers to the report, to get the aging report in two currencies.
    Thanx.

    You can have two currencies in your release strategy.
    You need to maintain both the currency characteristics in your class. For e.g. you have Indian Rupee and Dollars. Ruppee being for a company in India and Dollars for the one in US.
    1. You will need to add both Dollars and Ruppee as characteristics in your class.
    2. When you need the release startegy to be applicable for USD only, put the value in the Rupee Characteristic as >0 (this will not pick up Ruppee as the currency).
    3. For release startegy with Ruppee put the value for USD characteristic as >0.
    This will surely work.
    Osayed Rehman

  • Debtors Aging - Journal Entries

    Hi Experts,
    I need some advice regarding omitting Journal Entries from a Debtors Aging report, particularly fluctuation journals that don't reflect a value on the debtor statement.
    Any comments will be highly appreciated.
    Regards,
    Lebo

    Hi,
    Test the following workaround on the Copy of the database and see if it works :
    Customise the template as below:
    + Create a new formula field in the repetitive area.
    + Put the formula as F_1>0, where F_1 is the amount field.
    + Make formula field as visible false.
    + Link all the repetitive area field to this formula field.
    Save the template and make it default.
    Regards,
    Jitin
    SAP Business One Forum Team

  • Ageing Report

    Dear Experts
    can anybody please help me in getting ageing report project wise . We already have the ageing report Debtors or Creditors wise
    in the system but i want the ageing report project wise
    warm regards
    anand

    Hi Rajshree
    Try this One for customers, hopefully you should then be able to amend it to the Supplier Version
    select T0.shortname,T2.cardcode 'Customer Code',T2.cardname 'Name', sysdeb 'Debit Amount',syscred 'Credit Amount',
    case T0.transtype
    when '13' then 'INV'
    when '14' then 'AR CN'
    when '24' then 'INCOMING'
    else 'Other'
    end 'Type',
    T1.BaseRef'Trans #',
    case T0.transtype
    when '13' then
    (Select Comments from OINV where OINV.Transid=T1.Transid)
    else '-'
    end 'Inv.Rem.',
    (Select SeriesName From NNM1 Where Series=T1.DocSeries and ObjectCode=T0.TransType)'Series',
    T0.Ref1,
    fccurrency 'BP Currency',
    CONVERT(VARCHAR(10), T0.refdate, 103)'Posting Date' ,
    CONVERT(VARCHAR(10), T0.duedate, 103) 'Due Date',
    CONVERT(VARCHAR(10), T0.taxdate, 103) 'Doc Date' ,
    CASE
    when (DATEDIFF(dd,T0.refdate,current_timestamp))+1 < 31
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "0-30 days",
    case when ((datediff(dd,T0.refdate,current_timestamp))+1 > 30
    and (datediff(dd,T0.refdate,current_timestamp))+1< 61)
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "31 to 60 days",
    case when ((datediff(dd,T0.refdate,current_timestamp))+1 > 60
    and (datediff(dd,T0.refdate,current_timestamp))+1< 91)
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "60 to 90 days",
    case when ((datediff(dd,T0.refdate,current_timestamp))+1 > 90
    and (datediff(dd,T0.refdate,current_timestamp))+1< 121)
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "91 to 120 days",
    case when ((datediff(dd,T0.refdate,current_timestamp))+1 > 120
    and (datediff(dd,T0.refdate,current_timestamp))+1< 151)
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "121 to 150 days",
    case when ((datediff(dd,T0.refdate,current_timestamp))+1 > 150
    and (datediff(dd,T0.refdate,current_timestamp))+1< 181)
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "151 to 180 days",
    case when ((datediff(dd,T0.refdate,current_timestamp))+1 > 180
    and (datediff(dd,T0.refdate,current_timestamp))+1< 221)
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "181 to 220 days",
    CASE
    when (DATEDIFF(dd,T0.refdate,current_timestamp))+1 > 220
    then
    case
    when syscred= 0 then sysdeb
    when sysdeb= 0 then syscred * - 1
    end
    end "220 + days"
    from JDT1 T0
    Inner Join OJDT T1 On T1.TransId=T0.TransId
    left outer join
    OCRD T2 ON T2.cardcode =T0.shortname where
    T2.cardtype = 'c' and T0.intrnmatch = '0'
    and (T0.BalDueCred  + T0.BalDueDeb) > 0
    ORDER BY T2.CARDCODE, T0.taxdate
    Kind regards
    Sean

  • AR AGING REPORT. Why 'BalDueDeb' minus 'BalDueCred' not same as Balance?

    Dear All,
    I am trying to build SQL which mimics the AR Aging Report in SAP B1 8.8. Reason is to add additional fields needed by Management. I get the SAME TOTAL as Ageing, but when I run my query, I can't get the same no. of rows as Aging.
    Aging has 700 rows (NOT display reconciled transactions), and my aim is to get the same no. of rows.
    Case I: When I use: WHERE (T0.BalDueDeb - T0.BalDueCred) != 0
    I get 816 rows. All zero balances are eliminated, but it seems that some transactions which have been reconciled appear in my report as outstanding debits and also credits. This is why it has more rows than Aging, although total is correct.
    Case II: When I use: WHERE Balance !=0
    I get 5026 rows. Many rows show zero balances. I don't understand why they are not eliminated. I thought the 2 commands were equivalent.
    But the good news is that when I export to Excel and delete all those zero rows, I get exactly 700 rows, same as Aging!
    Same total, same no. of rows!
    If anybody could help me complete my query, I can continue. How can I eliminate these rows having zero balances? Where have I gone wrong?
    Thanks a lot.
    Leon Lai
    =========================================================================================
    SELECT distinct
    T1.CardCode,
    T1.CardName,
    T0.RefDate,
    CASE 
               WHEN T0.TransType=13 THEN 'IN'
               WHEN T0.TransType=14 THEN 'CN'
               WHEN T0.TransType=30 THEN 'JE'
               WHEN T0.TransType=24 THEN 'RC'
               WHEN T0.TransType=46 THEN 'PS'
               ELSE 'Error ! ! ! !'
    END AS 'Document Type',
    T0.Ref1 'Document Number',
    CASE 
               WHEN T0.TransType=13 THEN 'IN' + T0.Ref1
               WHEN T0.TransType=14 THEN 'CN' + T0.Ref1
               WHEN T0.TransType=30 THEN 'JE' + T0.Ref1
               WHEN T0.TransType=24 THEN 'RC' + T0.Ref1
               WHEN T0.TransType=46 THEN 'PS' + T0.Ref1
               ELSE 'Error ! ! ! !'
    END AS 'Concat',
    T0.Account,
    T0.Line_ID AS 'Row',
    T0.BalDueDeb,
    T0.BalDueCred,
    T0.TransId AS 'Id JDT1',
    (T0.BalDueDeb- T0.BalDueCred) AS 'Balance'
    FROM JDT1 T0 inner join ocrd t1 on t0.Shortname = t1.CardCode
    WHERE T1.CardType = 'C'
    PROBLEM IS HERE--??????????????--
    --and (T0.BalDueDeb - T0.BalDueCred) != 0       
    and Balance != 0
    -- The query gives different results depending on which of the above lines is run. Why?
    PROBLEM IS HERE--??????????????--
    ORDER BY T1.CardCode, T0.RefDate, T0.Ref1

    Dear Gordon,
    Thanks for your reply, and sorry for the incomplete reply which went beyond my control.
    Here are my results using WHERE (T0.BalDueDeb - T0.BalDueCred) !=0
    I have compared Aging Report with SQL Query.
    Doc Type  Aging Rows         Aging Total     SQL Rows    SQL Total*
    CN            57        -214,315.34     57        -214,315.34
    IN           452       4,741,436.41     452       4,741,436.41
    JE           134         202,209.56     267         201,584.56
    PS            12         107,652.40     18         121,352.40
    RC             4        -107,168.04     10        -120,243.04
               659       4,729,815.00     804        4,729,815.00
    The results are messy, time consuming to generate and investigate. Too much for newbee!
    The main differences lie in JE; about x2 rows in SQL Query.
    This may be due to rows that have reconciled in Aging, but appear in SQL Query.
    I have also prepared a list of Doc. Nos where there are differences, but too lengthy.
    TO Help you understand what's happening the foll. remarks may help:
    (1) The T0.Ref1 'Document Number' is empty for all JE. However, for other Doc types, these exist and agree with Aging.
    (2) Although 'Document Number' is empty for JE, there is a column Ref1 which does give a reference which agrees with Aging
    (3) A specific document always has 1 row in Aging, but may have several rows in my query
    (4) I do not know why using:  WHERE Balance !=0 works, but it does give a near perfect result. Why not use this as starting point? After deleting all the zero rows which it cannot delete, I GET EXACTLY the same result as SAP B1 8.8 Report 'Aged Analysis of Debtors'. Same no. of rows, Same total. How to delete these zeros in SQL?
    (5) In SAP B1 forum, it seems many persons still cannot arrive at the official Aging. I maybe near the correct solution, but no idea why it works.
    (6) I am continuing the struggle - maybe I need to put a sub query to eliminate the zeros first?
    Thanks
    Leon Lai

  • Customer ageing report

    Dear All,
    I checked in SCN and did not find answer for my query so posting here.
    This is with reference to customer ageing report,
    we are developing z report for customer ageing since we could not get customer specific report either through standard transaction or FDI4/FDI0 level.
    So, we are developing Z report for customer ageing.
    My doubt is, case where Customer is also a vendor
    in BSID table we can get customer open item balances. which means  due and not due balances. This is clear.
    but how to bring Net off  balances (customer open items - vendor open items)  into ageing report like (0-30, 31-60, 61-90, 91-120 & >120).
    Kindly share the ideas to get net off balances into ageing.
    also let me know how would I confirm that my zreport showing the correct values.
    Thanks in advance.
    Regards,
    Ganesh

    In simple terminology ageing analysis is
    Listing of amounts due to the business (by debtors) by splitting them into different categories based on how old the debts are.
    In SAP you could view the Ageing reports of Debtors in the easy access. The path being
    Financial Accounting-aAccounts Receivable-Information System-Reports for Accounts ReceivableAccounting-Customer Balances
    Thanks & Regards
    phaneendra

  • Business Content for "payment history and ageing report"

    Hi,
    We have AP and AR modules implemented in R/3. And recently the client is implementing Collections Management module in R/3. There is a requirement which has come in which we need to provide the a report by customer the past payments made for the last 6 months and the recievables ageing for 1-30 days, more than 30 days and 90 days. A  sample is:
    Division                 Past-due payment history                                            Receivables Ageing
    Customer         CM-5  CM-4  CM-3  CM-2  CM-1  CM                               1-30days   >30 days  90 days
    A                     04/10  05/10  06/10  07/10  08/10  09/10                            150          200       300
    etc, where CM = Current Month
    After going through the requirement we have found that data for this requirement can be taken from AR module itself as Collections Management data is not being used. In this scenario, if I want to develop a payment history and recievables aging report in BW from AR module, which data sources can be used. I am new the finanace module so if any links to good stuff is greatly appreciated.
    Thanks and Regards
    Vijay

    0FI_AR_4 datasource is the BSID/BSAD line items from R3 and the standard DSOs and Content will give you the ability to do aged debtor reports
    You will have to create your own aged debtor reports in WB as the std ones are pants.
    You create an aging bucket for each aging based on the following example criteria..
    CKF 0-30 days = RKF 0-30 Days Open + RKF 0-30 Days subsequently cleared
    (ie you are tryign to restate the ledger to a point in time)
    RKF 0-30 Open is..
       posting date <= key date
       item status = 0
       net due date on a constant selection of 0 and -30
    RKF 0-30 Subsequently cleared is..
       cleared date > key date
       posting date <- key date
       net due date on a constant selection of 0 and -30
    For payment History - I wouldn;t bother with the standard KNB5 extractor (although you can have a look at ti) _ I find it a bit too high a level
    I would create a realised payment terms report which looks at the following calculations:
      cleared date - net due date (realised payment terms)
      net due date - doc date (offered payment terms)
    And then create a query for all item status = C transactions which aren't payments (ie not equal to doc type DZ) and show the above calculations weighted per Customer Payment Term
    Many ways to skin a cat - the two above will help you on your way
    and

  • Aged Reporting SAP 8.8

    We are just looking at upgrading to 8.8, I am aware of a couple of changes regarding the ageing reports. Is it true that the report will now bring through documents in there original currency despite them being setup as multi currency? We have have had a few issues with getting a debtors report for credit control and audit purposes displaying documents in there original currency beacuse we have our BP's setup as mulit currency.
    Thanks

    Hi David,
    Yes, now in SBO 8.8 you can see aging reports are in multi currency which was not available in earlier versions.
    Thanks
    Sachin

  • Sundry debtors ageing Anmalysis with Sales person responsible

    Dear SAP Guru's,
    Please help me out with This .--->
    How to Configure the reports :
    Sundry debtors ageing Analysis with Sales person responsible:
    Is there any Standard reports available ?
    If Not Please tell me the procedure.
    Thanks in Advance
    regards,
    Amlan Sarkar

    Dear Friend,
    Thanks for your reply
    No Standard report exists as Such ?
    Is this related to CRM in any way?
    regards,
    Amlan Sarkar

  • Debtor Ageing Analysis

    Dear All,
    May, can you tell what is the basis of debtor Aging Analysis. Wether, it is the posting date or document date which is considered while reporting?
    More information will also be helpful.
    Thanks
    VK

    Hi,
    Generally the baseline date entered in the document will be used for calculating due date.
    Regards,
    Sridevi
    <i><b>* Pls. assign points, if useful</b></i>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/sridevi+pattabiraman">me!</a>

  • Need a help on Aging report.

    Hi,
    In my report Called "Debtor aging summary" which is contains columns like Customer,DueDays,Due Amount.
    My requirement need to split due days as as following columns 0-30 days,30-60 days,60-180 days and >180Days and based duedays the amount would be display on that particular column in pivot table.How to achive this.Please help on this.

    what does the 'DueDays' field have? Is it a list of dates or is it a list of numbers?
    Assuming it is a date field that has a list of dates like '02-29-2012', I would approach it like this:
    Create a new field said "Date diff" and use a timestampdiff function to compare the dates with the current date (or whatever date your requirement is based on to conclude what is 1-30 days).
    It will be something like this timestampdiff(tsi_sql_day, 'duedates', current_day). The syntax may not be 100% correct, but the output of this expression will give you integers.
    Then create another column said "aging days", in there use a case statement to split the categories. It would go like this:
    case when 'date diff' < 30 then '0-30 days' when 'date diff' >= 30 and 'date diff' < 60 then '30-60 days' when 'date diff' >= 60 and 'date diff' < 180 then '60-180 days' when 'date diff' > 180 then 'Over 180 days' else 'N/A' end
    Again you can check the syntax to make sure it is correct..
    The create your pivot table and put 'Date Diff' column on the column section, it will split it into 4 columns in the pivot view. You can choose to exclude the other 2 date columns or leave it on the report..
    Try that and see if it helps
    Thanks,
    http://obinsight.blogspot.com/
    Edited by: obinsight on Feb 29, 2012 9:31 AM

Maybe you are looking for

  • How can I install epson stylus nx625 driver on my Macbook Pro?

    I've spent a frustrating few hours today going back and forth between Apple tech support and Epson tech support and still do not have a solution to what should be a simple problem.  I got a new MacBook Pro as a work computer and want to install my ho

  • Can I use a inputHidden for javascript values that doesn't set the value?

    I have a hiddenInput field for each row in a datatable so I can restore default values to a date field with a javascript function. I am getting conversion errors because I don't have the right setters in the backing object - and I really don't want t

  • Use BADI or LGF script logic? Which is good in performance

    Hello, I have a situation wherein a choice is to be made among the "BADI" or "script logic" having DESTINATION_APP which is along with WHEN clause. Below is the code in which WHEN clause is used: Code Starts**** XDIM_MEMBERSET CATEGORY=FC_CUR *DESTIN

  • EXPORTING IN 16:9

    I want to play out a project. Normally I use Compressor (because QT files always end up so massive). The piece was shot in 16:9 which I want to retain in the exported file. Is there a setting within FCP I should adjust or in Compressor? Please help..

  • Having to re-buy what I already bought?

    Over the past few years I have been a very loyal customer to the iTunes Store, buying many different products ranging from songs to albums to audio books. Now that the "see what you have bought but haven't downloaded yet" thing has been added to iTun