Invoice no + posnr + accounting doc table

Hi All,
I have a invoice number and accounting document number . From which table I can get this connection along with the POSNR field. Means this accounting has been done for this material Item,
I checked in BSIS,BSEG and BKPF tables . But could not get the connnectivity between these 3 fields.
Please help.
Thanks in advance.
Madhuri

Hi Bheem,
There is fields present in BSEG table posn2, and material too.
But POSN2 field is not getting populated.
If in invoice, there are more than 2 line items having same material, then I can not use material field to differentiate the 2 rows in accouting doc.
There must be  a table which is storing the accouting line items with invoice line items . I am not able to find it out yet.
rds,
Madhuri

Similar Messages

  • Invoice no + posnr + accounting doc

    Hi All,
    I have a invoice number and accounting document number . From which table I can get this connection along with the POSNR field. Means this accounting has been done for this material Item,
    I checked in BSIS,BSEG and BKPF tables . But could not get the connnectivity between these 3 fields.
    Please help.
    Thanks in advance.
    Madhuri

    Check fields AWTYP and AWKEY of table: BKPF.
    AWTYP holds value VBRK and AWKEY the invoice document number.
    Alternatively for a billing document item if you need to get the accounting document number, you can consider FM: RV_ORDER_FLOW_INFORMATION.
    Parameters to pass:
    BELEGTYP = 'M' - for Invoice & Invoice number and item number to structure COMWA.
    From the return entries in VBFA_TAB, co-relate entry with VBELV = Invoice Document Number, POSNV = Invoice Document Item, VBTYP_V = 'M' and VBTYP_N = '+'.
    Maybe that can help you.
    ~Eswar

  • Parked MM invoice and multiple account assignments (table RBCO) ?

    Hi.
    Could someone please explain how the table RBCO works for parked MM invoice and multiple account assignments.
    What I have observed in this table are:
    1. Every position (table RSEG)  in the invoice can have several lines (table RBCO) with account assignment.
    2, If there is only one record for a position, the key in the table RBCO starts with 0002, field RBCO-COBL_NR (???)
    3. IF I add one more line to the psoition, the first line CHANGES the key in table RBCO from 0002 to 0001 and the second line gets RBCO-COBL_NR = 0002
    4. The third line gets 0003.
    5. If i delete line 1-2, the remaining one line gets a new key feild RBCO-COBL_NR = 0002.
    The reason for understanding how this works is that i need to make a Z-table storing the history of changes done to records in table RBCO (..don’t ask why...)
    Lest say, I make a change for in an invoice for one of the positions, how do I compare the values in the itab, YDRSEG[]-CO[]- with the lines in table RBCO ?
    And whats the logic for the key in table RBCO?
    Please advice, Tom

    -

  • How to find out SD billing doc # using accounting doc number ?

    Hi Experts,
    Using accounting doc tables such as BKPF , BSEG and BSID , I need to find out respective SD billing doc no when I have accounting doc number.
    The issue is I cannot use either 'reference number' or assignment number' because the same numbers are not flowing to accounting doc from SD ( enabled by a enhacement ).
    Regards
    Mahesh.

    Hi,
    In BKPF : AWKEY / XBLNR  with these fields we can identify the SD billing document number.
    In BSEG table VBELN field is Billing document number
    Or
    Goto T.Code FB03 enter the accounting document number,company code and fiscal year and press enter.
    select the line and choose details, choose addtional data tab, here we can see the billing document number.
    Regards,
    Chandrasekhar.S

  • Table for Invoice accounting doc

    I have got the invoice number posted in MIRO,i need to get the accounting document number generated for this invoice number.
    Can any one please let me know th etable where i could give the  the invoice number posted in MIRO and get accounting doc generataed for it.I need to pass invoice number posted in MIRO and get the accounting doc.

    Hi,
    Table BKPF will help you...
    BELNR = Accounting document number
    AWKEY = Object Key which is nothing but Material Doc no + Fiscal year
    From SE16, select table BKPF
    In the field AWKEY (Object Key), give the material doc number+fiscal year ( for example, 50000000002009)
    Execute.
    You will get the corresponding accounting doc number
    Regards,
    Mike

  • ABAP Table - Invoice number & accounting doc date

    Hi ,
    In which ABAP Table i can get invoice number and Accounting document date ?
    Srini

    Hi Srini,
    I guess what you're really asking is "How can I find the tables that contain certain fields".  So, if that is really your question you should check out a blog like this;
    /people/martin.english/blog/2010/01/13/finding-what-tables-and-fields-lie-behind-an-sap-transaction
    Otherwise, every time you need to find a table for a field you don't know you'll have to ask the forum.
    Regards,
    Nick

  • Table with liv no and accounting doc

    hi,
    i have table BSIK and BSAK and RSEG but i not able to link between them. accounting doc is 52# in bsik/bsak and liv is 57# in rseg.
    need advice.
    thanks
    rgds

    The following are the important tables for LIV and the Accounting document
    BKPF Accounting Document Header  fields BELNR and GJAHR
    BSEG Accounting Document Segment fields BELNR and GJAHR
    RBKP Document Header: Invoice Receipt
    RESG Document Item: Incoming Invoice

  • Unable to generate accounting docs for invoice.

    hi all,
    I have a delivery related  billing invoice created in May 2010 that we're attempting to cancel.  We created a MIRO invoice against a sales generated PO tied to the Sales order for the invoice.
    Subsequently, in August, we determined that we needed to cancel the MIRO invoice, and discovered it's necessary to reverse the sales order Invoice first (subsequent docs.)
    In attempting to cancel the SD billing document, we received several error messages that prevented the creation of the invoice.  We were eventually able to create the invoice by changing the billing date to the current date (from the defaulted may date) and things got interesting.
    We created a SD cancellation invoice in Aug  but were not able to generate accounting docs
    I thought that if we updated the billing date to this month we would be able to process.   So updating the billing date to 09-13-2010 (today) I receive this error
    System error in the FI interface
    If we modify to any date before September, we receive the following error message, which we expect, since we've closed prior period.
    Posting period MMM YYYY is not open  (billing dates attempted - 07-31-2010, 08-05-2010, 8-31-2010)
    If i process using a september date, the changd date is not retained.  only non september dates (also attempted 10-1-2010) are retained.  This leads me to believe that there's an issue that's outside of the billing date causing the problem.
    Can someone provide some input on how to properly address this invoice and allow it to generate accounting documents?

    You could be encounrtering related FI errors. Release your billing document in VFX3 and refer to the details in the error logs.

  • Relationship between invoice and accounting doc

    hello,
    in which table can i find the relationship between invoice number and accounting document ??
    thanx in advance..
    regards,]
    Maya.

    Hi,
    accounting document  - BSEK
    INVOICE NUMBER - BSEK,BSAD
    Thanks,
    Shankar

  • I need to add a single field from with_item table . need to write select query with reference to company code , account doc no , fiscal year

    I need to add a single field from with_item table . need to write select query with reference to company code , account doc no , fiscal year

    Hi Arun ,
    Can you explain little bit more ??
    what is account doc no? 
    what are the transactions should be displayed in your output??
    -Rajesh N

  • Status of Accounting Doc of Cancelled Invoice

    Dear All,
    Please find following doc flow.
    Invoice 1             
    Accounting Doc 1
    Cance Invoice 2 (Invoice 1 is cancelled)
    Accounting Doc 2
    Please let me know what shold be status of Accounting Doc 1 (Cleared/Not Cleared) with proper clarification.
    Also Accounting Doc 2
    Thanks & Regards,
    Ganesh.

    Hi Guys i have a problem regarding duplication of invoice.
    Lets undestand by following Example:
    Invoive F2 Generated
    Accounting Document (Not Cleared)
    Then
    Cancellation Invoice Genrated ......( But With Future Date)
    Accounting Doc ( Not Cleared)
    New F2
    Invoice Generated with date before the invoice date of cancellation doc(as that was scheduled in future)
    Accounting doc (not Cleared)
    My issue is the system is allowing to created two invoices for the time being which is wrong.
    System should not allow any New F2 doc till the coresponding accouting doc of cancellation is cleared.
    Can we check this..Any suggessions????

  • MIRO - Check if invoice already entered under accounting doc. no. &&

    Hi Gurus,
    I am facing a problem while posting invoice verification(MIRO).  An error has been thrown while doing MIRO.  It states "Check if invoice already entered under accounting doc. no. xxxxxx xx" (Error message M8 108).  I tried to check with the given accounting document xxxxxx xx using MIR4, but it is saying "invoice document xxxxxx xx does not exist". 
    Please help why this error message is throwing.
    Note: I am not posting any duplicate documents.
    Thanks in advance
    Yeswanth

    Hi,
    Please check the following link..Hope this will help you..
    http://sap.ittoolbox.com/groups/technical-functional/sap-log-mm/check-if-invoice-already-entered-under-accounting-doc-no-000000000-errors-3057863
    Error message in MIRO
    Regards
    Bhuban

  • Force Accounting Doc when  create  Invoice

    HI all,
      I am unable to create an accounting doc when invoice is created.
    It error :  'Cost Center BB11 3120 does not exist on 10/28/2011'.
    Cost center 3120 does not exist at all.   The invoices has posting status 'Error in Accounting INterface'.   Is there a way i can force the invoice to create the accounting document for this invoice ?
    thanks
    Joyce

    Hi Shiva,
        We go by account assignment.  For this cost element  61530, the Column ' Acct Assgnmnt ' is 3 .
    It has profit ctr of 30, 400, 420 and its cost center.  However, acctg doc seems to point to an invalid cost center for profit center 30.
    Any suggestions ?
    thanks
    Joyce

  • Business area not appearing against VAT entry in Accounting doc for Invoice

    Dear All,
    We have configured Business areas,
    When we post an invoice with multiple line items and open the Accounting document for this invoice we find that Business area is visible against Freight Amount and the ,Sales  A/c but that no business area is appearing against the Vat payable amount in the accounting doc.
    Why so?
    what should we do so that system determines the business area against the VAT Account also.
    Regards,
    Avinash Gyale

    This could be due to two reasons
    1)  If one invoice contains multiple business areas, only blank space will appear in accounting document.  To avoid this, invoice split should happen based on business area.  Invoice split can be done through VOFM data transfer - billing document.
    2)  If a particular G/L Account is assigned in multiple Business Areas, this problem will come and you need to apply Substitution Exit RGGBS000
    thanks
    G. Lakshmipathi

  • Consolidated entries in Invoice Accounting Doc

    Hi gurus!
    Please throw some light.
    If my invoice is carrying 100 line items, how am I able to consolidate my accounting doc’s entries in 1 G/L account such that instead of having....
                    DR          Accts Receivable              $1000
                    CR           Sales                              $20
                    CR           Sales                              $25        
                    CR           Sales                              $15
                    CR           Sales                              $40
    .... I wanted to make it
                    DR          Accounts Receivable      $1000
                    Cr            Sales                           $1000

    Thanks for your answers. But im only referring to one invoice.
    My invoice will have several line items and once it generates an accounting document it will post SALES entries for each material line item.
    Ex. Here what's happening:
    Invoice 1000001 customer JOhn Smith
              material 1      $100
              material 2      $150
              material 3      $100
    Acctg Doc 10000001
              Debit John Smith  $ 350
              Credit Sales $100
              Credit Sales $150
              Credit Sales $100
    How possble to make it summarized:
              Debit John Smith  $ 350
              Credit Sales $350
    Thank you guys for responding. I really appreciate it.
    Rose

Maybe you are looking for