Accounting document status and Balance amount

Dear All, We have add the Accounting document status and also balance amount in the report ,Please advice how to get write the logic where we will get the balance amount of the accounting document

Dear Ravi
No need to post in two places  Accounting document status and Balnce amount

Similar Messages

  • How to find out the Accounting document status for sales order

    Hi
    We have created the sales document by referring the billing document of contract no.Aftre that we have raised invoice for sales document. Now system is generated both invoice , accounting document and the value is appearing against the invoice document. However the status against the accounting document is showing as not cleared. I want to know where we could see this status in Table,
    Normally we can see the status in FPLT for contracts since its having the billing plan no. Suppose if the billing plan is not available like S.O , How to check the status in table?
    I have refered so many tables but not helping. Since i want to get the uncleared value of accouting document.
    Please help me.
    Regards
    Thenna

    Hi Thenna
    The accounting document status in the document flow is determined dynamically when you display the document flow,
    it's not saved in a specific table.
    Here is the relevant logic:
    LV05CF01 -> form BUCHHALTUNGSBELEG
    IF vbrk-vbeln <> vbfa_tab-vbeln.
       PERFORM vbrk_ermitteln USING vbfa_tab-vbeln.
       REFRESH xbkpf.
       CALL FUNCTION 'FI_DOCUMENT_READ'
        LOOP AT xbseg WHERE bukrs EQ xbkpf-bukrs
                      AND   belnr EQ xbkpf-belnr
                      AND   gjahr EQ xbkpf-gjahr
                      AND   ( koart EQ 'D' OR koart EQ 'K' ).
        ENDLOOP.
                IF NOT sy-subrc IS INITIAL.
      SET STATUS TO 'No items are cleared'
                  l_xdoc_num-status = 'A'. <<<
                ELSE.
                  LOOP AT xbseg WHERE augbl IS initial
                                AND   umskz NE 'A'
                                AND   vorgn NE 'AZUM'
                                AND   ( koart EQ 'D' OR koart EQ 'K' ).
                  ENDLOOP.
                  IF NOT sy-subrc IS INITIAL.
      Set status to 'All items are cleared'
                    l_xdoc_num-status = 'C'. <<<
                  ENDIF.
                ENDIF.
    Regards,
    Alex

  • I Have iPad4 and using with Aricel Prepaid 3G SIM, How to check my VAlidity period and balance amount through iPad?. pls help me

    I Have iPad4 and using with Aricel Prepaid 3G SIM, How to check my VAlidity period and balance amount through iPad?. pls help me, M.Kumar, Chennai,
    <Email Edited By Host>

    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

  • Excise No. using  Accounting Document Number and the P.O. number

    Hi All ! In my GL report, I'm displaying the Accounting Document Number and the P.O. number.
    Now, the requirement is to display the excise no..
    Tried different tables in SE11 using J_1EXC for excise detials, but to no avail.
    And last which vendor to pick, Because vendors in P.O and BSEG differs.
    If I use the BSEG-BELNR I get a different vendor & If I use the P.O. no. in EKKO then also I get a different vendor.
    Please suggest.

    Hi,
    Actually the vendor in the accounting document and PO should match. If not look in table EKBE, It will have the accounting document or at least the invoice receipt against which accounting document would have been created. Check if the vendor number matches with the invoice receipt.
    Regarding the excise number I'm not sure what you mean, If you mean excise invoice number, you can look at the J_1IEXCDTL
    J_1IEXCHDR tables. You could check with FC on what basis the document is getting created to make out the relation ship. If it is vendor excise no etc. you can hit F1 help to find out the table etc.
    Hope it helps.
    Sujay

  • Relation accounting document number and clearing document number

    Hi everyone,
    What is the relation between accounting document number and clearing document number.

    For every accounting document when it is posted it should be available in BKPF Doc header table.. Once that document is closed or cleared..there is any entry made to BSAK for Vendors (Cleared Items) or BSAD for Customers (Cleared Items).
    Eg: When a invoice is generated for a PO it gets created and is still not cleared or is not closed , it makes an entry in BSIK. Once it is closed it is available in BSAK.
    Same is the case with Sales order..

  • Accounting document for PGI showing amount

    Dear All,
    While doing PGI through VL02N from sales order stock, the accounting document that is generated for the material document has some amount. I am not clear from where that amount is coming since price is not maintained in the material master. Also no cost estimate or sales order costing has been done for that material. MR21 is showing zero.
    Why the accounting document is generated and from where it is taking that amount?
    Thanks in advance
    regards

    Hi
    In material master-->Accounting1 is the pricing control 'V'? And is the moving price 1.00?
    This means the material is valuated based on MAP.
    MAP or Moving average Price is the method of valuation normally adopted for
    Bought out materials. Under this method, the system changes the average
    price by considering the receipt quantity & value, adds the same to the
    existing stock values (quantity & value), and calculates the moving avg
    price. Only Receipts have a role in changing the same. There are some more
    adjustements also which would affect this.
    Regards
    Madhu

  • Accounting document quantity and billing document quantity doesn't match

    Hello SAP Experts,
    I have an accounting document that was automatically posted in FI (TCode VF01) after billing document was created. Billing document (debit memo rebilling) shows invoiced quantity 1. But corresponding accounting document in FI shows quantity 0 (double click on G/L account in accounting document, section additional account assignments, field Quantity).
    Could you please help me where should I make appropriate corrections, settings?
    Thanks and best regards,
    Peter

    USe user exit EXIT_SAPLV60B_002 and EXIT_SAPLV60B_004 to modify customer lin and  GL line respectively in the accounting document. change values  in export parameter XACCIT
    Regards
    Sridhar

  • Accounting document status table

    Hi,
    WHere can we see the status of the accounting document?
    Accounting document : Table:BSEG_BELNR
    in this table i didnt find the status of accounting doc.
    to see the status, VBUK in sales, i guess in FI also there will be some table to check the document status.
    can anyone tell me what is that table name?

    Table:BSID
    if
    KUNNR-
    BUKRS
    GJAHR,
    then display
    BSID_BELNR
    BSID_AUGBL,
    if BSID_AUGBL = "-"
    then Open item  is not cleared.
    the rest of the tables r to find out all open items which is due, but they r irrespective of customer.
    eg:BSIS,BKPF,BSEG,
    thanks for ur replies-

  • Account document archiving and duplication check

    Hi all,
    If i have performed FI accounting document (FI_DOCUMNT) data archive, it the invoice duplicate check still work?
    Thanks.

    Hi Christy,
    I am going to archive the archiving object FI_DOCUMNT which will delete the BKPF/BSEG table. After the archiving, is the vendor invoice duplicate also reads from archive?
    Thanks.

  • Invoice and Accounting Document

    Hi All,
    I have to develop a report where I need to show the amount that for the invoices that been posted in particular GL Account say 4100001.
    Selection Screen will be: Invoice number
                                             Invoice Create Date
    Here I want the relationship between the Accounting Document line items and the Invoice line items.
    When an Invoice is created, accounting document is posted. Amount for a paritcular line itema in the invoices may be posted in to different GL Accounts. How do I come to know that the line item in the Invoice is posted in these GL Accounts.
    (Discounts, Taxes and the net value may be in different GL Accounts).
    Thanks and Regards,
    Shravan G.

    Hello Shravan,
    The link between invoice & A/C'ing doc are the tables BKPF & RBKP.
    RBKP-BELNR = BKPF-AWKEY+0(10)
    RBKP-GJAHR = BKPF-AWKEY+10(4)
    You can also restrict the search on BKPF by adding this WHERE clause as well:
    BKPF-AWTYP = 'RMRP'
    You can search on SDN, it has been answered many time before.
    BR,
    Suhas

  • Billing document date and accounting document date varying...

    Hello Experts,
    There is one billing document and the date of invoice is, say today, 12/01/2009. and the accounting document date is, say 15 days ahead or behind, 27/01/2009.however, the posting date is proper and according to the billing date and that is again dated today-12/01/209. Now, the user wants to know why the difference exists between the accounting document date and the billing date. any idea? there are some user exits being used but I cant make out, neither the abaper. suggestions please.
    Regards,
    N.Raja Sekhar.

    Dear Raja Sekhar
    Document date is nothing but the date on which that particular transaction has taken place.  But I dont know where you get the date as 27-01-2009.
    It is a general practice that for exports billing document, there would be a Posting block and once the exporter receives the B/L, based on that date, the billing document would be released manually.  For this, there is an user exit to input the B/L number and date and release the billing document.
    So here, what the end users normally does is that the B/L Date might be on 02-01-2009 but he would not have updated on the same date.  At a later date, say on 12-01-2009, he can input the B/L Date (in another words, it is Posting date) as 02-01-09 and execute the billing document.
    If you see the accounting document here, the posting date would have been 02-01-2009 but the document date would be 12-01-09.
    thanks
    G. Lakshmipathi

  • T. Code to view Purchase Order and posted Accounting Document

    Hi,
    Is there any single SAP standard T.Code from which I can get  Accounting Document(posted) and its Purchase Order No.
    Dont sent any Table name plz.
    Regards,
    Vivek Kumar

    Run Standard Reports with Scope of List : ALLES
    ME2M  Material Wise report
    ME2N  PO Number wise Report
    ME2L  Vendor Wise report
    You can also Check MB51 / MR51 Reports.
    Regards,
    Ashok

  • Link between Invoice verifycation number and Accounting Document number

    Dear All
                   I want the Link between invoice verifycation number (MIRO) an accounting document number the same MIRO. in which table the both two numbers avilable.
    How can identify. can any one tell me the table name for this
    Regards
    Kumar.

    Hi..
    What is the link or join condition for these two tables
    BKPF and RBKP. and RSEG and BSEG.
    In this i want to Accounting document number and invoice verifycation number in a single report.
    Regards
    Kumar

  • Update parent status based on all children status and sum of children amount.

    Hi,
    I need to write sql query for the following scenarios.
    We have 3 financial systems (sys1, sys2, sys3) where a same transaction gets entered independently into each system OR entered into one and exported to the other system. Transaction need not be in all 3 systems.
    We need to create reconcile report to see the status of transaction and display if it is reconciled or not. For this, in our stored procedure we are pulling data from 3 systems into temp tables and using CTE and other logic marking each transaction status
    in each system temp table. One of the systems (eg sys1), we made it as source.
    Sys1 temp table has both parent and child records and are distinguished using type. Sys2 and sys3 has only children records.  When report is created, we are showing parent  from sys1 temp table and
    children from new temp table where children status is updated based on availability of it in all 3 systems.
    DECLARE
    @sys1 TABLE
    ID int,
    childID varchar(20),
    ParentID varchar(20),
    RecType decimal(3,0),
    SettleDate smalldatetime,
    Principal money,
    Sys3ID varchar(16)
    NULL,
    Sys2ID int
    NULL,
                            Status varchar(25) NULL
    DECLARE
    @sys2 TABLE
    TxID int
    PRIMARY KEY NOT
    NULL,
    CommonTransactionID varchar(16),
    SettleDate smalldatetime,
    Par money,
    Sys3ID varchar(16) NULL,
    Sys1ChildID,
    Sys1ParentID bigint
    DECLARE
    @sys3 TABLE
    Sys3ID varchar(16),
    REFERENCE
    varchar(16),
    VALUE_DATE datetime,
    DIRECTION char(1),
    AMOUNT money,
    RecSource varchar(2)
    Insert Into @sys1 (ID, childID, ParentID, RecType, SettleDate, Principal)
    Select 172876, 217955, 217954, 100, ‘2015-03-01’, 100.00
    Union
    Select 172877, 217956, 217955, 50, ‘2015-03-01’, 15.00
    Union
    Select 172878, 217957, 217955, 50, ‘2015-03-01’, 25.00
    union
    Select 172879, 217958, 217955, 50, ‘2015-03-01’, 10.00
    Union
    Select 172880, 217959, 217955, 50, ‘2015-03-01’, 10.00
    union
    Select 172881, 217960, 217955, 50, ‘2015-03-01’, 40.00
    Insert Into @sys2(TxID, Sys1ID, settleDate, Par)
    Select 4336620, 217956, ‘2015-03-01’, 15.00
    Union
    Select 4336621, 217957, ‘2015-03-01’, 25.00
    union
    Select 4336613, 217958, ‘2015-03-01’, 10.00
    Union
    Select 4336614, 217959, ‘2015-03-01’, 10.00
    union
    Select 4336615, 217960, ‘2015-03-01’, 40.00
    Insert into @sys3(Sys3ID, Reference, Value_Date, Direction, Amount)
    Select 1, ‘5654471 4336620’, ‘2015-03-01’, ‘O’, 15.00
    Union
    Select 2, ‘5654481 4336621’, ‘2015-03-01’, 'O',25.00
    Union
    Select 3, ‘5654491 4336613’, ‘2015-03-01’, 'O',10.00
    Union
    Select 4, ‘5654501 4336614’, ‘2015-03-01’, 'O',10.00
    Union
    Select 5, ‘5654511 4336615’, ‘2015-03-01’, 'O', 40.00
    After going thru lot of other logic, final temp table will have only children with status assigned. The above temp table data is only for 1 scenario.
    The following are status of children.
    This is how status of children is determined:
    Not Settled – All child records start as Not settled in temp tables.
    Settled – when record exists in sys3 and other criteria is met.
    Partially settled – record exists in sys3 and either in sys1 or sys2 or other criteria is not met.
    Reconciled – child record should exist in all 3 systems and all criteria is match
    Mismatched – record has wrong amount when compared in any of 2 systems.
    **************** My Part below*******************
    My part is to update the status of parent based on children status and parent amount must match sum of child amounts. If amounts don’t match, then leave the status of parent as null.
    Determining the status of parent:
    Not Settled – None of children has yet settled.
    Settled – All children are settled.
    Partially settled – some of children are as settled OR 1+ children are partially settled.
    Reconciled – All children are reconciled.
    Partially Reconciled – some children are partially reconciled.
    Null – 1 or more childen has a status of mismatched.
    AND sum of children amount should match parent amount
    How can I update the status of parent based on all children and sum of amount of children equal to parent amount.
    Thanks,
    Spunny

    >> We have 3 financial systems (sys1, sys2, sys3) where the same transaction gets entered independently into each system OR entered into one and exported to the other system. Transaction need not be in all 3 systems. <<
    Your design is fundamentally wrong. In RDBMS, we want to have one fact, one way, in one place in the schema. The goal of all databases is to remove redundancy, not increase it. This not just SQL; this was true for hierarchical and network databases before them! 
    >> We need to create reconcile report to see the status of transaction and display if it is reconciled or not. For this, in our stored procedure we are pulling data from 3 systems into temp tables and using CTE and other logic marking each transaction
    status in each system temp table. One of the systems (eg sys1), we made it as source. <<
    You have re-invent the worst of 1970's file processing, but you want to use a temp table instead of scratch tape. This is not RDBMS or good SQL. 
    >> Sys1 temp table has both parent [sic] and child [sic] records [sic] and are distinguished using type. Sys2 and sys3 has only children [sic] records [sic]. When report is created, we are showing parent from sys1 temp table and children from new temp
    table where children [sic] status is updated based on availability of it in all 3 systems. <, 
    The terms “child” and “parent” are not part of RDBMS. They come from network databases. You are building fake pointer chains we do have referenced and referencing tables. Or do you mean to model weak and strong entities? Where is the DRI actions?
    These things are not tables! They have no keys, so they are called (garbage) piles. But even the garbage is wrong. There is no generic “id” in RDBMS; it has to be “<something in particular>_id” to be valid. Since you do not do math on it, it should not
    be a numeric. 
    A “rec_type” is a nominal scale, so it cannot be a numeric either! Likewise, we have no generic “status”, but a status is state of being so it has to have a temporal dimension. And did you know that “reference” is a reserved word in SQL as well as another ISO-11179
    violation. 
    The MONEY data type does not do correct math. Google it! It is another Sybase left-over that nobody should ever use. 
    Finally, you used the old Sybase INSERT INTO ..SELECT..), .. disaster instead of the ANSI/ISO Standard VALUES table constructor. 
    >> This is how status of children [sic] is determined: ..
    My part is to update the status of parent [sic] based on children [sic] status and parent [sic] amount must match sum of child [sic] amounts.<<
    Your narrative describes what Tom Johnston called a Non-Normal Form Redundancy. We do not put summary data in the strong entity; another basic data modeling principle. We build a VIEW that gives us the current summary. Your mindset is still in punch cards and
    magnetic tape files. 
    "No matter how far you have gone down the wrong road, turn around!" -- Turkish proverb. 
    Can you start over and do it right? 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • How to get relationship between material document no and accounting documen

    Hi Experts !!
                     I want to create a report displaying accounting document no and GL account no buy providing PO No and material document no (MIGO No).
    I want a database table from where I can get  material document no (MIGO No)(MBLNR/BELNR) and accounting document(BELNR) no both.Currently I am using
    BSEG for getting HKONT,EBELN,BELNR
    MSEG for getting MBLNR by using EBELN (P.O. NO)
    BKPF for getting BUDAT.
    the problem came with EBELN (P.O. NO) as repeated entries are there.
    I am unable to write query for getting MBLNR and  BELNR for same EBELN (P.O. NO).
    Is there any table where MBLNR and  BELNR are related to each other??????
    Thanks in advance !!!!

    Check this thread, if this helps.
    [url] Link between MKPF table and EKKO or RBKP table [url]
    I've done this as well earlier to create a custom document flow for archived documents where from the EBELN i've found all the related documents. Hope this helps.

Maybe you are looking for

  • I HOPE SOMEONE KNOWS HOW TO SOLVE THIS ONE! =] i tried

    WELL I HAD A PROBLEM WITH MY COMPUTER AND HAD TO COMPLETELY START IT OVER. SO WHEN I WENT ON ITUNES IT SAID MY IPOD CAN ONLY BE SYNCED WITH ONE COMPUTER. IT SAID I COULD ERASE AND SYNC BUT I CANT DO THAT BECAUSE I HAVE NO MUSIC IN THE ITUNES LIBRARY

  • PI 7.0 - Error HTTP 401 when calling XISOAPAdapter/MessageServlet

    Hi experts, I am trying to call a web service, published from our XI system. (SAP PI 7.0 SP 15). I generated the Web Service & saved the WSDL successfully from Integration Directory. The whole scenario is well designed and configured, because it had

  • Zune HD won't connect with windows phone 7 connector

    i just recently got a macbook pro and im trying to connect my zune hd through the windows phone 7 connector i downloaded off the app store. bt my zune hd wont even show up on my computer. it isnt being recognized at all. does anone know how to fix th

  • IPod 5G, iTunes 10.4, Album artwork, Vista

    Hello there, I own an iPod5G (60G), connect to a Vista PC (yes, I know) through iTunes 10.4. I tried to add albums artwork to show on the iPod, to no result. Practically speaking, I have successfullyf added the artwork to the tags (through TagScanner

  • How to save .pdf file using office word and excel

    Can someone help me how to save .pdf files using office word and excel?  I reinstalled my adobe 7.0 pro in my new pc and before I was able to do it but with my old pc.