Invoce Aging Report - Error

Hi Team,
I'm trying to run Invoice Aging report. When I'm running this it's erroring out. Here I'm posting log file
Receivables: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
XXRAXINV_SEL_SE module: XXXXX Invoice Print Selected Invoices OBA
Current system time is 20-JUL-2012 11:05:28
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
p_order_by='TRX_NUMBER'
p_cust_trx_class='INV'
p_cust_trx_type_id='1'
p_trx_number_low='10040'
p_trx_number_high='10040'
p_customer_id='10041'
p_open_invoice='Y'
p_check_for_taxyn='N'
p_choice='SEL'
p_header_pages='1'
p_debug_flag='N'
p_message_level='10'
Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing
APPLLCSP Environment Variable set to :
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.UTF8
Enter Password:
MSG-00100: DEBUG: AfterPForm_Trigger +
MSG-00100: DEBUG: Multi Org established.
MSG-00100: DEBUG: AfterParam_Procs.Get_Country_Details
MSG-00100: DEBUG: AfterParam_Procs.Switch_On_Debug
MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_Low
MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_High
MSG-00100: DEBUG: AfterParam_Procs.Get_Tax_Option
MSG-00103: lp_trx_date_clause = and a.trx_date = a.trx_date
MSG-00100: DEBUG: BeforeReport_Trigger.Build_Where_Clause
MSG-00100: DEBUG: P_Choice: SEL
MSG-00100: DEBUG: Choice is other than ADJ, setting ORDER BY.
MSG-00100: DEBUG: AfterPForm_Trigger -
MSG-00100: DEBUG: BeforeReport_Trigger +
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Printing_Option
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Tax_Printing_Option
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Message_Details
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Org_Profile.
MSG-00100: DEBUG: Organization Id: 86
MSG-00100: DEBUG: BeforeReport_Trigger -
MSG-05000: DEBUG: Trx No... 10040
MSG-43749: There is no remit to address defined for country IT and state .
REP-1419: '': PL/SQL program aborted.
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-1419: MSG-00100: DEBUG: BeforeReport_Trigger +
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Printing_Option
MSG-00100: DEBUG: BeforeReport_Procs.Populate_Tax_Printing_Option
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Message_Details
MSG-00100: DEBUG: BeforeReport_Trigger.Get_Org_Profile.
MSG-00100: DEBUG: Organization Id: 86
MSG-00100: DEBUG: BeforeReport_Trigger -
MSG-05000: DEBUG: Trx No... 10040
MSG-43749
Report Builder: Release 10.1.2.3.0 - Production on Fri Jul 20 11:05:30 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Start of log messages from FND_FILE
End of log messages from FND_FILE
Program exited with status 1
Environment
Application: 12.1.3(OBA)
OS: Linux 5 - 64 bit
Please do the needful.
Thanks
Rk
Edited by: user11157039 on Jul 20, 2012 12:47 PM

MSG-43749: There is no remit to address defined for country IT and state .Troubleshooting Remit To Address in Oracle Receivables [ID 1101855.1]
Transactions Workbench: Field Defaulting Logic [ID 1413565.1]
REP-0069: Internal errorARXAGE Aging 4 Bucket Report Errors REP-0069 Internal Error [ID 1321276.1]
Invoice Aging Report Errors With Rep-1419 Rep-57054 Rep-0069 [ID 1340456.1]
'Aging - 7 Buckets Report' ARXAGSW Fails with ORA-01722 [ID 1061714.1]
R12: Some Payables Reports Not Working. Same Errors In Log File: REP-1419, REP-0069, REP-57054 [ID 818320.1]
Thanks,
Hussein

Similar Messages

  • Vendor Liabilities Aging Report

    Hi Guys,
    We are trying to generate a Vendor Liabilities Aging report on one of our companies, but no data is being displayed.  Instead the following error message is being shown "Data is not available; modify the select criteria and re-enter [Message 131-85]".  We also tried various options in the selection criteria but still this did not solve our problem.
    We are suspecting that this could be related with data corruption since during this weekend we had power failures on MSSQL and SAP servers.
    Any help from you guys will be much appreciated...
    Many Thanks,
    Bernard

    Hi Bernard,
    Welcome you post on the forum.
    It is more than likely the data consistency issue. You must got certain bad data in your database. Run DBCC first to see if the problem can be fixed. If not, report to SAP support to get help.
    Thanks,
    Gordon

  • Vendor Ref. no. not displayed in print preview in vendor aging report

    Dear SAP team,
    Vendor reference number is not displayed in print preview/print on vendor liabliteis aging report,
    but this vendor reference number actually show in report,We are taking report by journal postings,
    vendor reference entered in NumAtCard in AP invoice get copied to Ref2 in Journal Entry,then
    why it is not showing in print preview/print.
    Whether this is an application error / missing functionality ?
    We are using SAP Business One 2005 B (7.40.252)  SP: 00  PL: 36.
    Whether upgrade to latest patch 2005B PL46 will solve this issue ?
    Jeyakanthan

    Hello Jeyakanthan,
    I would like to draw your attention to the enhancements we delivered within Aging Report in 2007 version and plan for 8.8 release.
    The primary enhancement in 2007 version is reflecting new concept of Internal Reconciliation with more convenient backward reporting.
    Within the 8.8 release ...
    - when you generate the aging report you can group the report by customer or sales employee in the customer receivables aging report, and by vendor or buyer in the vendor liabilities aging report;
    - when the aging report has been generated, you can view multicustomer/multivendor detailed information in the aging report window. There is no need to double-click each customer/vendor row to view the details.
    We would strongly to recommend you to upgrade to 2007 version or join the ramp-up of 8.8 release soon.
    Peter Dominik
    B1 Solution Management

  • Variables in aging report for PLD

    Hi,
    I am looking to find a list of the variables for a PLD aging report in SAP 8.8, the Excel I found doesn't list report starting with the code AGE...... In fact I am looking for the variable for the project number and the project name. The system information shows variable 41 but when I run the report I get an error.
    Thank you for your help
    Jac

    Hi,
    Welcome you post on the forum. I believe there is only one excel file for PLD available for a certain version.
    If the variable is not in this file, you will be out of luck.
    The system variable showed under system info is not the same as in the PLD.
    Thanks,
    Gordon

  • Aging report authorization

    What kind of authorization I need to see the aging report? I already set Finantial -> Finantial Reports -> Accounting -> Aging to full authorization but I'm not authorized anyway. The system show an error that I'm not authorized to see BP Balances.

    Hi,
    Kindly check the Authorisation for the Business Partner Module where the Balance authorisation can be checked.
    Regards,
    Jitin
    SAP Business One Forum Team

  • Facing Issue with Stock Ageing report

    In Blocked Stock Ageing report Output, I am facing following issues
    1. Stock is correct but once we include the "Reason For Movement" then the aging is getting wrong  and in some cases value is coming Negative.
    2. In some cases "Reason For Movement" is coming in ‘#’, but this is a mandatory field. Hence cannot be blank.
    Note:
    1. Overall stock is coming correct.
    2. Reason Movement chat. is in free char
    3. Report is based 0IC_C03.

    Hi Nadeem,
    Reason for Movement is loading from  what attribute?  check in RSRV for that attribute.
    RSRV-->All Elementary Tests ->Master Data ->Compare Size of P-, Q- with X- and Y- Tables respectively .
    If it has any error then  correct that error in RSRV. It  will solve your problem.
    Regards,
    Rajesh

  • 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

  • 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

  • Missing Function - Aging Report not match in System Currency in SBO 8.8

    Dear all,
    Version: (Please provide the current version)
    SBO 8.8 Patch: 10
    Description of requirements: (Please provide a detailed description)
    In mentioned patch level, the result/outstanding balance of Aging Report in System Currency was difference when selected 'Display Reconcilied Transactions' or not. The outstanding balance should be be same on both selection.  
    Valid as of: (Date that this legal requirement is applicable)
    N/A
    Business needs: (Please describe the impact on your business, if the functionality is not realized)
    If the Aging Report cannot disppay the outstanding documetns for reconcile with customer, they cannot check with customers.
    Examples: (Please describe a typical example, how the functionality should work.)
    Generate the Aging report in  System Currency
    selected 'Display Reconcilied Transactions' including all transactions and balance is same as Trail Balance
    un-selected 'Display Receoncilied Transactions' does not inclding the transactions that Local Currency is zero amount, but System Currency is not zero. The outstanding balance is different to the result of the above selection and Trail Balance as well.
    Current Workaround: (Please describe the workarounds you are using at the moment)
    Print the Aging Report with selected ' Display Reconcilied Transactions' to show ALL transactions to reconcile the transactions.
    Proposed solution: (Please suggest how the new functionality should work)
    selected 'Display Reconciled Transactions' or not, the outstanding balance should be the same.
    Best regards,
    Michael

    Bapi's do not set sy-subrc. The only way to check if it was succesfull is to loop into the return table for error messages:
    You have to use BAPI_TRANSACTION_COMMIT after calling BAPI_PO_CREATE1:
        READ TABLE errmsg TRANSPORTING NO FIELDS
                            WITH KEY type = c_e.
        IF NOT sy-subrc IS INITIAL.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              wait = c_x.
      ENDIF.

  • Customer Receivables Aging Report doesn't show correct data

    Hi Experts,
    I have some problem when executing Customer Receivables Aging Report.
    I'm using 8.8 PL14.
    (It should be bug this is very strange ...)
    I can't get same result even if I run it continuosly when I selected option "group by Customer" .
    Total amount of balance due is change each time because of BP shown in the report is change.
    I also got the message " Data is not available, modify selection criteria and re-enter" even though I never change selection.
    During executing this report, no Invoice and JE and banking data were input.
    Please advice if you know about this error or having something information.
    Thanks,
    Kaori Shirasuna

    Hi,
    The latest patch level available for B1 8.8 is PL16. it will be released on week Oct 25-29, 2010. You may directly upgrade to this latest patch level to solve the issue. If you want to try using query SQL to generate the aging report, there are some threads discussion about the query. You may search it in the SBO reporting and printing forum.
    JimM

  • Customer Aging Report VT Label Exclusion and Modification of Date Format

    Hi Folks!
    I need your thoughts on how to remove the 'VT' label in all amounts of the Customer Receivables Aging Report.... Since it is a system variable, and already have the VT label when it is called, any remedy on how to remove this?
    In line with this also,
    We would like to modify the date format of the Aging Dates at the Header of the Table of the Report. The system returns the date format YYYY-MM-DD. We would like to change it to DD-MM-YYYY. I used the Concat and date functions provided in the Formula in PLD... but it returns mismatch error.
    I have searched through the forum and find no answers with this. I know that this will help also other users with the same concerns.
    Thanks a lot.
    Fringe

    Skype was causing the problem :@

  • Printing Report Error

    Hi I have upgraded my system to 8.81 PL09 from 2007A.
    I run the Customer receivable aging report and encountered this error upon preview:
    Printing Error: This Operation is not supported for this data type: (RPT-6716) (Field_189) Method: DecimaLeft DataType: Variant[Message 200-38]
    Formula for Field_189: Amount(DecimalLeft(Field_039))
    Field_039: text - amount
    Thank you.

    hi,
    try to preview it using the default system layout.
    regards,
    Fidel

  • Vendor Aging Report

    Hi All
    i am trying to get a legitimate vendor Aging report from within SAP
    The 2 reports that I am currently looking at are:
    S_ALR_87012085 - Vendor Payment History with OI Sorted List
    S_ALR_87012084 - Open Items - Vendor Due Date Forecast
    But both these do not bring out the output the way i want it - and i tried changing the output control and it still doesnt bring out the report as i want it - I want a report like the S_ALR_87012178 for customers, with output control 1, 6 and a 0 - which gives me a logical list of the aged customers.
    Is there one like this for vendors too? Any suggestions?
    Thank you
    Rukshana

    Hi Ruksaana,
    You can customize the vendor report to show the items overdue per vendor by using the following steps
    1. Create a form using T Code - FKI4
        In this form ( two-axis structure) provide the details for each column as per your Client requirement - Due from 0 - 30 days
        etc. You can create a column (using formula method) at the end by adding the previous columns, this will give you total     
        amount of overdue items for each vendor
    2. Create a report using T Code - FKI1
        Based on the Form created in the above step. Make additional selections based on  client  requirements like document type,
        company code, account type, currency etc. Execute the report.
    The following link will give provides detail steps for the creation of the aforementioned form and report.
    Re: AR aging report (summary by customer)
    Hope this helps.
    - Sadha.

  • Vendor ageing report(urgent)

    in vendor ageing report i am getting the data for the vendors with open item only means those vendors who have to pay depending on the parameter date which we r passing
    in selection screen.
    but i  want all those records with cleared item also depending on that date.
    means suppose there r 2 vendors
    1.sanjeev-he has to pay 1000 but he has paid 500 and left
    with 500 due.
    2. amit -he has to pay 1000 and he had not paid anything till now.
    so when i am executing my report it is showing only
    sanjeev 500
    amit 1000
    but i need
    sanjeev 1000
    amit 1000
    to be displayed but as sanjeev has already paid 500
    so it is not showing the output as above.
    so how it could be achieved

    hi sanjeev,
    anver here.
    do like this.
    if has_paid < has_to_pay.
    write has_to_pay.
    endif.
    rgds
    anver

Maybe you are looking for

  • Can I access folders in my email?  Once I move them to a folder, I can no longer open them on my iPhone.

    Once I move emails to a folder, I can no longer open them on my iPhone.  Is there a way to access these emails once moved to a folder?  I am using yahoo if that helps.  Thanks!

  • Firewire drive problems

    My school is trying to use a western digital My Book 250gb hard drive connected via firewire to several macbooks at different times. The Macbooks are running 10.4.11. The drive rarely shows up on any of them and when it does it disappears after wakin

  • Duplicate Document Numbering after Upgrade

    Hi! Can anyone please help me to find-out a resolution for the Duplicate Document Numbering found after the SAP B1 upgrade from 2007 to 8.8? This report has been found from the Administration -> Utilities.

  • Solaris 8: Error "access exceeded protections" - SEGV

    Hello: I getting this error " access exceeded protections" - SEGV, when I am doing a memset. The structure which is being memset is of 2M size. Code Snipets: abc_t abc; memset((char*)&abc, '\0', sizeof(abc_t)); The abc_t struct consists of many varia

  • Can't find my registration key for quicktime pro?

    I have to go through a lot of searching in finding it under 2 accounts. It's just a lot easier getting it sent to me again rather trying to find it here where it should be easy to find, but not. It sure is not under my account history? Been like 5 or