Total count of open invoices

Hi,
I want to get the total count of open invoices and paid invoices and total amount for a give list of vendors between a date range. Could anyone tell me what tables I should use to get the data?
Thanks

Hi,
two vendor tables BSIK (for open items) and BSAK (for vendor cleared items) will serve the purpose for using them in you program.
regards,
chaitanya

Similar Messages

  • Issue in counting open invoices

    Hi All,
    I am facing an issue which could be common but i am getting the correct count for open invoices.
    We have following scenario :
    Assume, we are loading an invoice(INV1) which was open(determined by item status = O) yesterday and loaded the same into ODS and to the cube yesterday itself.
    As we want to see the invoices which are open as of that particulat day.
    we have a CKF defined with value = 1 and aggregation : counter of all values, reference characteristic : 0REFERENCE.
    I run the report and I see open invoices = 1, which is correct.
    Now,the invoice which was open yesterday was cleared and paid today.
    Now , I loaded the data to ODS and then to the cube.
    In the cube, I have three entries like
    Invoice     Item Status            Amount 
    INV1         O(Open)                   100
    INV1         O(Open)                  -100
    INV1         C(Cleared)                100
    Since, this invoice is cleared today, when i run the report , i should get invoice count "Zero" but I am getting the count as "1" and the amount "0".
    The CKF which was created is getting the count as "1" even though it is cleared.If the invoice is cleared, it should not be counted.
    Anyone has any suggestions ?
    Regards,
    Jeevan

    okay - a number of issues here
    The two item statuses of O will cancel each other out and be deleted if you have zero elemination on the cube and run the next compression
    The negative zero was generated by the change log of the ODS when the item status = C cleared document came in
    You always run the open items as at a point in time using two RKFs added together in one CKF
    RKF1 is item status = O AND posting date <= key date of query
    RKF2 is cleared date > key date of query AND posting date <= key date of query
    Thus you can always restate the open items which have been subsequently cleared back to a point in time (ie historical aged debt reports etc..)
    You must not just use item status = O
    Now how to do the counts..
    I normally put a counter onto the cube and negate the counter when the changelog negative O record (so the two Os cancel each other out) and then just add up the values of the counter as per the RKFs above
    However there is another option but it still involves a change to the data model
    The counts are based on the uniqueness of a document number
    The full key of a uniqieness of an AR or AP document number in SAP is...
    Company Code, Fiscal Year, Document Number, line item
    (the line item is due to one AP document being split across many lines due to installment plans with different net due dates or partially allocated cash across many outstanding line items)
    The other items have to be considered in uniqueness because SAP allows you to configure number ranges per company code wither with internal or external numbering and these ranges can be year specific - hence the full key is required
    You cannot just count document number as this will give a false result as the same document numebr can be used in multiple years within the same company code AND across company codes as well (so group reporting of outstanding counts will be affected as well)
    So you have to create a new infoobject that is called "Document Full Key" - that concatenates Company Code, Fiscal Year, Document Number, line item into one object string
    You then put that in yoru cube and update it via the transformation rules
    Then you can create the RKFs above and do a count all values based on the characteristic  "Document Full Key" - then create a few more RKFs to do the splits of net due date and the offsets required for -30 -60 etc as per normal
    Sorry for the bad news - but if you want to do it properly - I don;t think you have another other choice but the two options above..
    But then what do I know!

  • Help me in  'AR Details ' report shows total open invoices by customer

    hi friends,
    please  help me in  'AR Details ' report shows total open invoices by customer and PO number over selected time range.
    any thing related to open invoices please send me as early as possible.
    Thanks,
    Regards,
    Yogesh

    Hi,
    Find the T.code VF05. You will get the list of open billing docs. Its SIS report. Please find whether the SIS is active or not in your system
    Regards,

  • Aging report for Open Invoice

    Hi All,
    I need to develop an Aging report for open invoice, there is no indication for open invoice or close invoice since we are using customise DS and DS from third party system. only one key flag we have is clearing date. so kindly let me know how to write the logic for this requirement.. can I use Customer exit for this? I have an Idea to do like
    first logic is
    *If Clearing date = blank than invoice is = open (by using of this logic we can get all open invoice).
    second logic
    total number of invoice = current date - document date.
    but I do not know how to implement this logic in BEx hnece kinnly advice me whether this logic can be work or suggest with different solution ples..
    Regards,

    hi,
    You can  check few default PO reports wid proper paramater in it
    or
    Can check table EKBE
    or
    Check PO history in the PO doc
    Or
    Check the ME80FN
    Regards
    Priyanka.P

  • How to find total count of records in a cursor

    Aassume below is the cursor i defined
    cursor c1 is select * from emp;
    now, i want to find the total count of records in this cursor using an existing function etc., using one line statement.
    FYI: c1%rowcount is always giving 0, so i cant rely on this.
    Any thoughts, please share.
    Thanks in advance.

    I am just showing this to show how to get the rowcount along with the cursor, if the program has so much gap of between verifying the count(*) and opening the cursor.
    Justin actually covered this, he said, oracle has to spend some resources to build this functionality. As it is not most often required, it does not makes much sence to see it as a built-in feature. However, if we must see the rowcount when we open the cursor, here is a way, but it is little bit expensive.
    SQL> create table emp_crap as select * from emp where 1 = 2;
    Table created.
    SQL> declare
      2   v_cnt     number := 0;
      3   zero_rows         exception;
      4  begin
      5    for rec in (select * from (select rownum rn, e.ename from emp_crap e) order by 1 desc)
      6     loop
      7        if v_cnt = 0 then
      8           v_cnt := rec.rn;
      9        end if;
    10     end loop;
    11     if v_cnt = 0 then
    12        raise zero_rows;
    13     end if;
    14   exception
    15    when zero_rows then
    16      dbms_output.put_line('No rows');
    17   end;
    18  /
    No rows
    PL/SQL procedure successfully completed.
    -- Now, let us use the table, which has the data
    SQL> declare
      2   v_cnt     number := 0;
      3   zero_rows         exception;
      4  begin
      5    for rec in (select * from
      6          (select rownum rn, e.ename from emp e)
      7          order by 1 desc)
      8     loop
      9        if v_cnt = 0 then
    10           v_cnt := rec.rn;
    11           dbms_output.put_line(v_cnt);
    12        end if;
    13     end loop;
    14     if v_cnt = 0 then
    15        raise zero_rows;
    16     end if;
    17   exception
    18    when zero_rows then
    19      dbms_output.put_line('No rows');
    20   end;
    21  /
    14
    PL/SQL procedure successfully completed.Thx,
    Sri

  • [Forum FAQ] How to calculate the total count of insert rows within a Foreach Loop Container in SSIS?

    Introduction
    We need to loop through all the flat files that have the same structure in a folder and import all the data to a single SQL Server table. How can we obtain the total count of the rows inserted to the destination SQL Server table?
    Solution
    We can use Execute SQL Task or Script Task to aggregate the row count increment for each iteration of the Foreach Loop Container. The following steps are the preparations before we add the Execute SQL Task or Script Task:
    Create a String type variable FilePath, two Int32 type variables InsertRowCnt and TotalRowCnt.
    Drag a Foreach Loop Container to the Control Flow design surface, set the Enumerator to “Foreach File Enumerator”, specify the source folder and the files extension, and set the “Retrieve file name” option to “Fully qualified”.
    On the “Variable Mappings” tab of the container, map the variable FilePath to the collection value.
    Drag a Data Flow Task to the container, in the Data Flow Task, add a Flat File Source, a Row Count Transformation, and an OLE DB Destination, and join them. Create a Flat File Connection Manager to connect to one of the flat files, and then configure the
    Flat File Source as well as the OLE DB Destination adapter. Set the variable for the Row Count Transformation to “User::InsertRowCnt”.
    Open the Property Expressions Editor for the Flat File Connection Manager, and set the expression of “ConnectionString” property to
    “@[User::FilePath]”.
    (I) Execute SQL Task Method:
    In the Control Flow, drag an Execute SQL Task under the Data Flow Task and join them.
    Create one or using any one existing OLE DB Connection Manager for the Execute SQL Task, set the “ResultSet” option to “Single row”, and then set the “SQLStatement” property to:
    DECLARE @InsertRowCnt INT,
                   @TotalRowCnt INT
    SET @InsertRowCnt=?
    SET @TotalRowCnt=?
    SET @TotalRowCnt=@InsertRowCnt+@TotalRowCnt
    SELECT TotalRowCnt=@TotalRowCnt
    On to parameter 1. 
    On the “Result Set” tab of the Execute SQL Task, map result 0 to variable “User::TotalRowCnt”.
    (II) Script Task Method:
    In the Control Flow, drag a Script Task under the Data Flow Task and join them.
    In the Script Task, select variable InsertRowCnt for “ReadOnlyVariables” option, and select variable TotalRowCnt for “ReadWriteVariables”.
    Edit the Main method as follows (C#):
    public void Main()
    // TODO: Add your code here
    int InsertRowCnt = Convert.ToInt32(Dts.Variables["User::InsertRowCnt"].Value.ToString()
    int TotalRowCnt = Convert.ToInt32(Dts.Variables["User::TotalRowCnt"].Value.ToString());
    TotalRowCnt = TotalRowCnt + InsertRowCnt;
    Dts.Variables["User::InsertRowCnt"].Value = TotalRowCnt;
    Dts.TaskResult = (int)ScriptResults.Success;
              Or (VB)
              Public Sub Main()
            ' Add your code here
            Dim InsertRowCnt As Integer =        
            Convert.ToInt32(Dts.Variables("User::InsertRowCnt").Value.ToString())
            Dim TotalRowCnt As Integer =
            Convert.ToInt32(Dts.Variables("User::TotalRowCnt").Value.ToString())
            TotalRowCnt = TotalRowCnt + InsertRowCnt
            Dts.Variables("User::TotalRowCnt").Value = TotalRowCnt
            Dts.TaskResult = ScriptResults.Success
           End Sub
    Applies to
    Microsoft SQL Server 2005
    Microsoft SQL Server 2008
    Microsoft SQL Server 2008 R2
    Microsoft SQL Server 2012
    Microsoft SQL Server 2014
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Hi ITBobbyP,
    If I understand correctly, you want to load data from multiple sheets in an .xlsx file into a SQL Server table.
    If in this scenario, please refer to the following tips:
    The Foreach Loop container should be configured as shown below:
    Enumerator: Foreach ADO.NET Schema Rowset Enumerator
    Connection String: The OLE DB Connection String for the excel file.
    Schema: Tables.
    In the Variable Mapping, map the variable to Sheet_Name, and change the Index from 0 to 2.
    The connection string for Excel Connection Manager is the original one, we needn’t make any change.
    Change Table Name or View name to the variable Sheet_Name.
    If you want to load data from multiple sheets in multiple .xlsx files into a SQL Server table, please refer to following thread:
    http://stackoverflow.com/questions/7411741/how-to-loop-through-excel-files-and-load-them-into-a-database-using-ssis-package
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Getting fast PDF page count (without opening file)?

    I’ve got a menu with about 100 PDFs and for various
    reasons I’d like to display the page count for each. I could
    enter the page count by hand but that becomes a maintenance
    nightmare as the PDFs are updated and someone (myself included)
    will forget to update the count. Opening each PDF in an xtra to get
    the page count would be too slow for 100 documents . I’ve
    found a dll that claims to parse the PDF header and quickly count
    PDF pages which might work (we’re already using dllBinder for
    MAPI access) although I haven’t started experimenting with
    it. Has anyone tried something similar? Can I parse the header with
    lingo/Buddy API and avoid working with the dll black box?

    I would take an approach in between the extremes you listed.
    Consider
    this. Make a list of all the documents, and make an automated
    process
    using Impressario or something to get the total pages in all
    100
    documents. Save this list. It will take a bit to open and
    close all
    the docs, but it only need to be done once. From then on,
    compare to
    the saved list. Whenever a doc gets changed use your
    automated
    Impressario process to update the list.
    If the DLL route doesn't pan out, then that is how I would go
    about it.
    You;d still need to remember to update your list after every
    change,
    but at least it is an automatic process.

  • Open Invoices Only in Dunning Letters

    Hello All,
    I am currently updating AR proceedures and part of that is to issue reminder letters.  I am using the dunning wizard to do this.  In the letter i wish to display any overdue invoices for payment.
    I have no troubles in getting all of the open invoices for a BP onto the dunning letter, however, i only want to include the invoices that are over due.  All customer payment terms are 30 days. 
    If you need any more information please let me know
    Thanks

    Thanks Gordon,
    There is actually an open items tick box as well as a due date field in the dunning wizard.  I didnt notice them before.  fixed the problem.
    I have actually now found a different issue with the same report though.
    When i print the letter i get multiples of the one invoice
    ie
    dear sir,
    this is over due
    inv 456 $5
    inv 456 $5
    inv 456 $5
    inv 456 $5
    inv 456 $5
    Total due $5
    Thanks
    Accounts
    I have just compared it to the system letter template and the fields do not differ from what i can see.  (i also checked for check boxes and entry field in the wizard, all the same)

  • Open invoices and GR/IR report

    Hi experts,
    Would like to know is there any report that will show the open invoices that tie to the balances in GR/IR account report from FS10N?
    I've tried on ME80FN, MB5S, ME2N (RECHNUNG) but none of the reports are tie to the balances in GR/IR account report from FS10N.
    Thanks and regards,
    JT

    Use T-Code F.19 which will give you an analysis of the open items lying in the GRIR account.
    Also after doing Invoice Verification (MIRO) use T-Code F.13 to do clearing of items lying in the GRIR a/c
    Use of F.13 regularly will ensure that your GRIR account will always show open items pending for Invoice Verification.
    Regds,
    Rajan Narayanswamy

  • Closing An Open Invoice With BO

    Hello,
    How do you close an open invoice that has a Back Order?  The Back Order has been cancelled by the customer but the order was accidentally invoiced.  Now, we are not able to close the invoice even though the SO has been  closed.
    Please help.
    Thanks,
    Mike

    hi mike,
    When a sales order is cancelled entierly by the customer,
    go to data --> cancel if there is no transactions associated with it.
    If it is partially delivered order then close the
    order by choosing open rows,right click it and close it.
    Then sales orders that is cancelled/closed may not
    appear for selection to subsequent documents like
    delivery/ar invoice.
    Jeyakanthan

  • Is there any function module which gives open invoices &open amount?

    Hello All,
    I want to use function module which gives open invoices with open amount.
    I know 'CUSTOMER_OPEN_ITEMS'  'BAPI_AR_ACC_GETOPENITEMS' function which gives open invoices but does not give open amount.
    Can anyone help me to find such function?

    From this BAPI ,
    BAPI_AR_ACC_GETOPENITEMS, You got amount for items in lc_amount field of lineitems table parameter.
    I hope, it will helpful to you.
    by
    Prasad GVK.

  • AR Open Invoice Error

    Hi Gurus,
    I am doing AR Open Invoice Migration.
    I am using two interface tables, they are AR_INTERFACE_LINES_ALL & AR_INTERFACE_DISTRIBUTIONS_ALL,
    When i run the concurrent program only one table is populating i.e AR_INTERFACE_LINES_ALL, i can't understand how to populate the AR_INTERFACE_DISTRIBUTIONS_ALL interface table.
    The link between the two table is INTERFACE_LINE_ID, but this column value is generated automatically, so how can i join both the tables for populating the data in the both tables
    Please help me.
    Thanks in Advance.

    Probably this forum: General EBS Discussion

  • AR Open Invoice Migration error

    Hi Gurus,
    I am doing AR Open Invoice Migration.
    I am using two interface tables, they are AR_INTERFACE_LINES_ALL & AR_INTERFACE_DISTRIBUTIONS_ALL,
    When i run the concurrent program only one table is populating i.e AR_INTERFACE_LINES_ALL, i can't understand how to populate the AR_INTERFACE_DISTRIBUTIONS_ALL interface table.
    The link between the two table is INTERFACE_LINE_ID, but this column value is generated automatically, so how can i join both the tables for populating the data in the both tables
    Please help me.
    Thanks in Advance.

    hi,
    The link between 2 table is following columns values
    INTERFACE_LINE_CONTEXT, -- Context name of the Line Transaction Flexfield
    INTERFACE_LINE_ATTRIBUTE1, -- Line Transaction Flexfield
    INTERFACE_LINE_ATTRIBUTE2, -- Line Transaction Flexfield
    INTERFACE_LINE_ATTRIBUTE3, -- Line Transaction Flexfield
    INTERFACE_LINE_ATTRIBUTE4, -- Line Transaction Flexfield
    INTERFACE_LINE_ATTRIBUTE5, -- Line Transaction Flexfield
    INTERFACE_LINE_ATTRIBUTE6, -- Line Transaction Flexfield
    INTERFACE_LINE_ATTRIBUTE7... etc
    Please create a line transaction flexfield and assign that flexfield context name into INTERFACE_LINE_CONTEXT
    Regards

  • HELP: AR Open Invoices Conversion with Revenue Recognition (Daily Revenue)

    Hi,
    I need some help on Conversion of AR Open Invoices with Accounting Rules in R12, Here the client wanted to use Daily Revenue Schedule rule,
    I am developing Functional Specification Document (CV.040); Need to understand the Assumptions, Approach and Which data needs to be extracted from Legacy System.
    Appreciate your reply at the earliest
    Thanks
    Ravi

    Anil,
    Thanks for your response, Here are the answers to your questions.
    1) The invoices that you want to convert - Do they already have revenue recognition on them?
    Ans: Yes they have Revenue Recognition On Them.
    2) Are you bringing only Open Invoices? What about Invoices that are closed (paid), but still have unrecognized revenue on them? DO you want to bring them
    over? If no, how will be mage the recognition of those invoices?
    Ans: We want to bring only Open Invoices. i.e the following scenarios want in Data Extraction
    a) Invoice is Fully Paid (REC is Zero) and Unearned is Full Invoice Amount, Revenue is 0
    b) Invoice is Partially Paid (REC is Partial) and Unearned is Partial, Revenue is partial
    c) Invoice is fully Paid (Rec is Zero) and Unearned is Partial and Revenue is Partial
    d) We do not want to bring the invoices with Fully Paid and Fully Recognized, Unearned is Zero
    3) What about partially paid invoices? How do you want to bring them in?
    Ans: See above scenarios.
    4) Do you want to bring in all Invoice details,or just bring in a summary line with the outstanding amount?
    we assume only Summary, but if the Invoices with Several Lines and Different Accounting Rules, We may have to bring them too
    Appreciate your response; Suggest some possibilties?
    Thanks
    Ravi

  • AR Open Invoices Load

    Hi All,
    I am trying to open invoices i.e. Invoice, Credit Memo and Debit Memo. I am wondering which of these tables I need to populate and what will be the whole process.
    a)RA_INTERFACE_LINES_ALL
    b)RA_INTERFACE_DISTRIBUTIONS_ALL
    c)RA_INTERFACE_SALESCREDITS_ALL
    Thanks
    John

    Hi John,
    In order to distinguish/ populate the transacation types in ra_interface_lines_all table,you need to know whether your populating transation type value/id in ra_interface_lines_all.
    if you have front end access please check whether your populating transaction type value/id.
    a.Navigation Path:
    (R) Receivables Manager > Setup > Sources > (query for the required source using in interface table) > go to other information.
    check for the transaction type radio button whether your using value or id,based on value or id you can pass different transaction types defined in --> (R)Receivables Manager > Setup > Sources > Transaction types.
    Table used for batchsource and transation types are :
    a) RA_BATCH_SOURCES -> used to know the batch source information.
    b) RA_CUST_TRX_TYPES -> used to know the different transaction types available.
    Thanks
    Rock

Maybe you are looking for