Internal Reconciliation - upto a specific date in ageing receivables

Hi!
I have run the following query to produce an ageing report. However, the ageing shows reconciled transactions as outstanding in the ageing buckets.
My query is as follows:
DECLARE @D1 DATETIME
SET @D1=  '1900-01-01 00:00:00.000'
select T1.cardcode 'Bp Code',T1.cardname 'Name',sysdeb 'Debit Amount',syscred 'Credit Amount',
(T0.SYSDEB-T0.SYSCRED) as 'Balance Due',
case T0.transtype
when '13' then 'INV'
when '14' then 'AR CN'
when '24' then 'INCOMING'
else 'Other'
end 'Type',
Ref1,
fccurrency 'BP Currency',
CONVERT(VARCHAR(10), refdate, 103) 'Posting Date',
CONVERT(VARCHAR(10), duedate, 103) 'Due Date',
CONVERT(VARCHAR(10), taxdate, 103) 'Doc Date' ,
CASE
when (DATEDIFF(dd,taxdate,{?Age})) <= 30
then
case
when SYSCRED <> 0 then -SYSCRED
else SYSDEB
end
end "0-30 days",
case when ((datediff(dd,TaxDate,{?Age})) > 30 and (datediff(dd,TaxDate,{?Age}))<= 60)
then
case
when SYSCRED <> 0 then -SYSCRED
else SYSDEB
end
end "31 to 60 days",
case when ((datediff(dd,TaxDate,{?Age})) > 60 and (datediff(dd,TaxDate,{?Age}))<= 90)
then
case
when SYSCRED <> 0 then -SYSCRED
else SYSDEB
end
end "61 to 90 days",
CASE
when (DATEDIFF(dd,TaxDate,{?Age})) > 90
then
case
when SYSCRED= 0 then SYSDEB
when SYSDEB= 0 then -SYSCRED
end
end "90 + days"
from dbo.JDT1 T0
INNER JOIN dbo.OCRD T1 ON T0.shortname = T1.cardcode and T1.cardtype = 'c'
INNER JOIN CRD1 T2 ON T1.CardCode = T2.CardCode
where T0.intrnmatch = '0' and T0.TaxDate >= @D1 and T0.TaxDate <= {?Age}
  ORDER BY T1.CARDCODE, T0.taxdate
In this instance, {?Age} refers to the date as at which I am running the report
What code should I be using in the above query so that it does not show reconciled transactions as at my ageing date i.e. items reconciled before  and upto the ageing date of the report

Hi,
Alternatively try this query and result will be as that of system report:
SELECT
[CustName] as CustName, isnull([1],0) as Jan, isnull([2],0) as Feb,
[3] as Mar, isnull([4],0) as Apr,  isnull([5],0) as May,
isnull([6],0) as june, isnull([7],0) as July, isnull([8],0) as Aug,
isnull([9],0) as Sept, isnull([10],0) as Oct, isnull([11],0) as Nov,
isnull([12],0) as Dec
from
(SELECT
T0.[CardName] as CustName, sum(T0.[DocTotal]) as Total,
month(T0.[DocDate]) as month FROM OINV T0 WHERE year(T0.[DocDate]) =
2013 and T0.[CardCode] = 'XXX' and  T0.[DocStatus]  ='o' GROUP BY
T0.[CardName],T0.[DocDate]
union all
(SELECT
T0.[CardName] as CustName, -sum(T0.[DocTotal]) as Total,
month(T0.[DocDate]) as month FROM ORIN T0 WHERE year(T0.[DocDate]) =
2013 and T0.[CardCode] = 'XXX' and  T0.[DocStatus]  ='o' GROUP BY
T0.[CardName],T0.[DocDate])) S
Pivot
(sum(S.total)
For  Month IN ([1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12])) P
Note: Replace XXX with your card code and change year if required.
Thanks & Regards,
Nagarajan

Similar Messages

  • Internal Reconciliation - which field stores date of Reconciliation

    Hi Experts,
    I am looking to produce a rerport with shows payment on account and invoices and the date that they were Internally Reconciled against each other.  Is this date stored in any table?
    I have checked the ORCT table and on Internally Reconciling a Payment On Account to and Invoice the following fields are updated:
    OpenBal
    OpenBalSc
    However, I cannot see that the date of the reconciliation is stored.  Is it marked elsewhere, perhaps in another table?
    Thanks
    Greig

    Hi Rohan,
    Thanks for the information.  However, I'm still struggling to create a query which shows what date an invoice was internally reconciled.
    If I take the OINV table, the invoice number is stored in DocEntry and DocNum.
    OITR is the Internal Reconciliation header table which is linked to the ITR1 detail table as follows:
    OITR.ReconNum = ITR1.ReconNum
    The ITR1 detail does not seem to link to the OINV table... there is a ITR1.TransId field but this does not link to OINV.
    In summary, my question is: how can I link ITR1 to OINV?
    Thanks
    Greig

  • Internal Reconciliation rules for the Business Partner

    Version: (Please provide the current version)
    SBO 2005-A PL11
    Description of requirements: (Please provide a detailed description)
    Employees are considered as Supplier for us
    We have defined two control account
    One to follow the Employee Advance payment : 15130020 
    the other to follow the Employee Expense voucher : 37100010
    Step 1 :
    We create one Down Payment Request for the Employee
    Step 2 :
    We paid the Down Payment Request (amount : 2000) using the Outgoing Payment :
    Posting Scheme generated :
    (C) 11100241 Petty Cash Account
    (D) 15130020 Employee Control Account for Down Payment
    Step 3 :
    We enter the Expense Voucher for this employee (Amount : 1200)
    Posting Scheme
    (D) 6XXXXXXX Profit & Loss GL Account
    (C) 37100010 Employee Control Account for Expenses
    Step 4 :
    Due to the fact that the amount of the advance is greater than the amount of the expense voucher, the employee have to reimburse the difference.
    We use the menu incoming payment
    The different steps follow up are :
         Select Vendor as type of BP for the incoming payment
         Select the invoice to be paid for the vendor, and tick the box "Payment on Advance" to take in account the amount already paid in the DPR
         Do the reimbursement of 800
    Posting Scheme :
    (C) 37100010 Employee Control Account for Expenses
    (D) 11100241 Petty Cash Account
    The problem is when we try to do the internal reconciliation we could not see in the same time for the Employee the 2 reconciliation accounts.
    How could we do ?
    Valid as of: (Date that this legal requirement is applicable)
    Business needs: (Please describe the impact on your business, if the functionality is not realized)
    We are not able to clear the advance done for the employee and the reimbursement done by the employee.
    Due to this fact, we retrieve if we have one other invoice to paid the DPR already paid and take in account in a previous reimbursement which generates damage in the system.
    Examples: (Please describe a typical example, how the functionality should work.)
    See upper
    Current Workaround: (Please describe the workarounds you are using at the moment)
    Use the same Control accounts for the Expense Voucher and the Advance payment
    Proposed solution: (Please suggest how the new functionality should work)
    Permit for the Internal reconciliation process for One Employee to retrieve the data link on the different control account regarding one employee / Supplier

    Hello,
    I was just wondering whether you have checked the case in 2007 A version in which brand new concept of internal reconciliation was delivered for customers.
    Please try to avoid so long postings. Create rather an attachment with longer description of the issue/case. This helps to increase transparency in the discussions.
    Peter Dominik
    SAP
    B1 Product Definition

  • How to check bank acc state(beg&end balance) in a specific date or period

    Hi all
    My customer is using GL, AP and CM.
    I have set up different bank accounts in AP. After the payment is registered, the user does even the reconciliation with the bank account.
    I am having trouble to find a report or a place in the system where i can inquiry for the state of the bank account(beginning and ending balance) in a specific date or period.
    I have seen these kind of reports in more simpler programs, so it is strange that i can not find these kind of reports in oracle.
    An example:
    If i run one of these reports with beginning and ending date i want to see state of the bank account before beggining date, movements during these period and ending balance after these period.
    Can you please help me because my customer wants this and i have not been able to give an answer until now. He has some local software which has this kind of report and now it is trying to change to oracle financial, but I still could not find this kind of information he wants from oracle.
    Please help
    Thank you and best regards
    Ernest

    There are 2 concepts attached to a bank balance. The balance as per your books of accounts and another is the balance maintained with the bank. I believe i need not explain these 2 concepts. These 2 balances can be obtained from Oracle system provided some of prerequsities are met with.
    Balance as per your books - This is nothing but the GL balance available. In order to obtain balances for each bank accounts, it is advised that each bank account should have a separate account code combination. This is achieved generally by having a separate natural account for each bank. The code combination is attached to the cahs account for each bank. By maintaining separate account code combination, the balance in each code combination can be obtained from GL (provided transactions are accounted and posted in GL). These balances represent the balance for each bank according to your books of accounts. You can create an FSG for this purpose and provide the same to the customer, so that they can run the same whenevr they want.
    Balance as per bank - This balance is maintained by oracle in 2 ways - either the bank balance can be manually entered for each bank account for each date (quite cumbersome). Else, while loading the bank statement, the bank balances are also loaded. There are various types of bank balances stored - value dated balance, available balance, float balance etc. Depending on the balances provided by bank along with the bank statement, the bank balance can be recorded in oracle system. After the bank statement is uploaded and balances stored, standard cash management reports are available to query for the bank account balances. In order to view daily movement, the bank statement should be loaded on daily basis.
    Hope this helps.
    Vinit

  • Internal Reconciliation - some documents not reconciling

    Hello,
    We've recently begun using the tool: Business Partners -> Internal Reconciliation -> Reconciliation.
    We select:
    Automatic
    All of our Customer Business Partners in the range selection
    Matching Rule 1 - Ref.2  (which is ORDR, NumAtCard), which we also include on the Incoming Payment
    Document Date - which we set to 60
    Each day we run this, and we get several reconciliations, which allows us to send out invoices with "payment received", and a $0.00 balance owing. It shows us the Ref.2 numbers, which match.
    However, we have a few each day which do not reconcile, and we have no idea why. We have looked through the marketing documents and everything matches and is within our date range, etc. Even payments which were made immediately by credit card the same day do not reconcile.
    Any ideas? Anyone else having this issue?

    We have a lot of customers who pay by credit card, which we process with "payment on account". We need to have these reconciled each day so their invoices (receipts) show the payment applied and $0.00 owing.
    We were told this was the best way to automatically reconcile by our consultant for SAP.
    Any one else?
    Thanks in advance,
    Christine

  • Unreconciled documents at specific date

    Here's the problem: I need to show customer balance at specific date span (let say from BeginningDate to EndingDate). However for beginning balance, I must show all unreconciled documents (invoices, credit memos, incoming and outgoing payments, and direct journal entries) at BeginningDate. How can I do that? I considered using JDT1.IntrnMatch = 0 condition, however, it doesn't work for specific date. Please help. Thank you.

    Hello
    A buil in functionality supports this. Why you would like to create a new?
    open Financials->Financial Reports->Accounting->General Ledger
    Select Business Partner unselect G/L Accounts, enter posting dates required.on Display, select Not Fully Reconciled, and select Co&nsider Reconciliation Date below.
    Run
    This will display the unreconsiled transactions of your customer based on dates entered.
    Tip:
    RUN SQL profiler to get the query executed behind if you would like to built a custom application......
    Regards
    János

  • Odbc Driver error when using specific date column

    I am receiving the this error:
    Odbc driver returned an error (SQLExecDirectW).
    Error DetailsError Codes: OPR4ONWY:U9IM8TAC:OI2DL65P State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46036] Internal Assertion: Condition len <= desc->objectLength_, file ..\Oci8\Src\SQXDGOci8.cpp, line 614. (HY000)
    It happens when I try to to set criteria on a specific date column or I do not set criteria at all. If I set date column 1 to greater than 4 or so months back the report returns, along with all the dates from date column 2. But if I then try to set date column 2 as the criteria, no matter if I just ask for data from a week until today, I receive this error. I tried changing the Server Stack size to 512, but that did not help. Anyone have an idea on this???

    You seem to be using an ODBC connection with an Oracle database, is that correct? If so you should install the Oracle client and use the OCI driver instead and it is much faster and stable than ODBC.

  • BP Internal Reconciliation problem

    Hi,
    I am working with B1 2007A PL41.
    When I click BP-> Internal Reconciliation-> Reconciliation, select BP and click reconcile. Then for  ARIN dated 1.August I change the amount to part amount and select an incoming payment dated 13.August - here too the same part amount entered - the total reconciled amount nets to zero - reconciliation date is 13.August -> click Reconcile -> Pop-up "Reconcile the selected transactions?" -> Yes -> nothing happens. System date is later than 13.August.
    The reconciliation does not proceed and the screen simply remains the same.
    What could be the problem?
    Thanks,
    Ajay Audich

    Hi Ajay,
    I am unable to reproduce such problem in my test enviorment.
    Just before i ask you and open a support ticket to SAP regarding the issue faced,
    Please check the following :
    1) If any SP_transactionNotification is there, do check that.
    2) Any Add-ons, then you can check by stopping that.
    If that does not help, approaching support is better.
    Regards,
    Jitin
    SAP Business One Forum Team

  • Internal Reconciliation when Selecting all the transactions to Reconcile

    Hello Experts,
    In Internal Reconciliation when Selecting all the transactions at once to Reconcile for setting up the Aging Report. It gives an error i.e. Reconciliation amount must be less than the balance due for this transaction 47901.
    Help Required
    Thanks & Regards

    Hi Shazad,
    please check note [1318821|https://service.sap.com/sap/support/notes/1318821] & see if this is the problem.
    All the best,
    Kerstin

  • BP Internal Reconciliation

    Dear Experts,
    Users do not want to run automatic reconciliation.
    However, users would like to see a listing for all BP which haven't done internal reconciliation.
    Any idea?

    Hi Teng Teng Choy,
    internal reconciliation takes place automatically when documents are based on other documents, such as a payment on an invoice or a credit memo on an invoice. There is no need for the user to perform any additional action.
    You can always see which Bp documents have not been reconciled by running the ageing report, anything with a balance due remains to be reconclied.
    All the best,
    Kerstin

  • Inconsistence Internal Reconciliation

    During reconciliation system giving a warning message:-
    "Inconsistent Internal Reconciliation".
    Please suggest what could be reason & impact of this message.
    Regards
    Atul

    Hi Atul,
    What it can mean is that you are reconciling 2 transactions that are linked on document level.
    This might cause inconsistsnecies in your ageing and might also be the cause of upgrade journals when you ugrade to version 2007 or higher where the reconciliation functionality will be greatly enhanced.
    I recommend that you check the note 1051038 and the documentation that it leads to.
    Hope it helps,
    Jesper

  • How can I go to a specific date in the future other than by clicking one month at a time?

    Would like to go to a specific date several years from now and see what else I have scheduled (if any) or to see if that day is a holiday or even just to see what day of the week that day falls on. Can I do this in some way other than clicking on the NEXT MONTH button a gazillion times?
    I am using Windows 7 (64-bit) on a Dell THX computer.
    Thanks,
    DannyBoy

    tried clicking on the year in the calendar?

  • How to get users' login logout time for user IDs for a specific date?

    Dear All,
    There is a case I being requested to retrieve the Userid, User Name,
    User Group, User Dept, Date, Login Time, Logout Time in a specific date, for example, 21.05.2009.
    How should I retrieve the information? The user want to input specific date and user group then return the details that mentioned above.
    I try with SUIM->Users->By Logon Date and Password Change... but I can't specific the date that I want ...
    I try with SM19 (Security Audit Log), but unfortunately in my system this is not activated.
    I've seek for SAP's advise, and they say need to ask abaper to developr a report in order to get such details....
    Do you guys have any other methods?
    Do you guys know which tables will contain the details as mentioned above?
    Best Regards,
    Ken

    Unfortunately without the audit log, you're going have a hard time finding this information.  As mentioned, ST03N will give you some information.  If your systems daily workload aggregation goes back to the date you require then you'll be able to get a list of all users who logged on that day.  ST03N doesn't keep time stamps just response times.
    My only idea is VERY labor intensive.  If your DB admin can retrieve a save of the database from that day then table USR02 will hold a little more information for you.  It will contain last login times for that day.  If your system backup policy happened to have saved the contents of folder "/usr/sap/<SID>/<instance>/data" then you potentially have access to all the data you require.  The stat file will have recorded every transaction that took place during that day.  If that file is restored you could use program RSSTAT20 to query against it.
    Good luck and turn on the audit log as it makes your life much easier!

  • Custom Report for the Stock and Stock value for a specific date

    Hi SAP Gurus,
    Is there any SAP standard t-code or any logic to get the transcations (additions (for example: Purchases) and subtractions (Sales) to the inventory) for a particular materials in a plant and with Total Stock and also Total Stock value when that particular transaction happened?
    Our system is R/3 4.7
    I looked at the MB5B, MBCE, MBCA, MC44, MB51 and some other standard T-codes but could not find the total stock value at the time of Transaction happened.
    The history tables MBEWH and MARDH  are updated after the month end closing procedures, right, which means I will have the inventory value changing every month if material has Price "S".
    Thank you,
    -Harter

    Hi Harter,
    Unfortunately, you cannot see in a single tcode the value of stock and stock quantity on a specific date. As you yourself have pointed out, we only have to make use of the history table MBEWH, MARDH for the month wise stock quantity and value. Along with that you should also make use of the table MBEW to take teh stock quantity and value. So the total value of stock on a particular date will be
    Stock qnty = MBEWH value until the previous month (for teh specific valuation class, period etc) + MBEW value for the present date.
    But this will nto work out if you want to find out teh stock quantity and stock value on a past date basis. For past data, only  m onthwise data is available. For this anyway you can refer to MC.1 and so on reports.

  • How to marking email for follow up on a specific date

    In projects I often receive e-mails which need to be followed up/chased by a specific date in the future. I would like to be able to mark them with a specified date and then file them in the relevant mail folder. On the date specified either the email re-appears in your in box for action or a reminder is sent.
    The flag option is fine - but does not really help if one has many e-mails to follow up on different dates.
    This must be feature which would be useful to 1000's of users - does it exist is there a work round? I have not found this feature on other e-mail applications including Yahoo.
    Thanks in advance.

    There are always programs on http://www.tuaw.com that do things like this. I don't know if any of them specifically do this. They always want to suck you in and live in their little iGTD world. I don't really conform to that. I am trying to write software that I would want to use. This seems like one that would fall into that category. Simple, easy-to-use, does one thing well, and doesn't get in your way.

Maybe you are looking for

  • How to view saved photoshop files without photoshop running?

    Hello. I'm new here, and rather new to photoshop. I've created some drawings, and want to view them later on without the photoshop running. Is that possible? or is it necessary to have photoshop installed and running every time I want to view (or eve

  • Sender JDBC Adapter hang after network problem ?

    Hi, I got problem with Sender JDBC Adapter. in the normal condition it is working fine. no problem at all. The problem coming after network connection problem within XI and database for about more than 24 hours. After the connection resume the Sender

  • PHP form strange behaviors

    I have a very basic PHP form coded and whenever I look at it in Live View the bottom third of the processing code appears at the top of the webpage. Uploaded the code does not appear on the webpage and the form works fine, except that the dropdown in

  • E1200 and guest

    Team , Having trouble connecting to the guest network on my e1200. I can connect to the ssid however when I open the broswer connection times out. Tried it on Windows 7 with IE 9.0.8.112.16421 Safari 5.11 on mac os 10.6. Any help or pointers would be

  • Profit centre field not visible while using Posting Key 15

    Hi, While using Tcode F-28 and Posting Key 15  profit cente field is not visible. I have checked following configuration. In OBC4 for Reconciliation account - additional account assignment - here the profit centre field is optional. Likewise I have c