Link between IDOC and Accounting Document Number?

Good afternoon-
The problem I am trying to solve is: For a given accounting document (BKPF-BELNR, BKPF-BUKRS, BKPF-GJAHR), I'd like to know whether it was manually entered into SAP or whether it came in via electronic means such as an IDOC.
I know that I can query the EDIDS table that the fields STAPA1, STAPA2, and STAPA3 will contain my accounting document key, but this query is very inefficient and I'd like to avoid creating a custom index to make it faster.
Does anyone have an alternate solution to finding this link? Any feedback would be appreciated. It can be a query, a function, or a report that I can look at to use as an example.
Regards,
Andy

Check BKPF-AWTYP, if document created with Idoc we can see 'IBKPF' in BKPF-AWTYP. I am not sure its standard / project dependent, but i see the same in most of the projects.
I hope - As some one mentioned in above, you cann check user id 'Created By' also, but it may be changed any time so you can hardcode in the program.
Thanks
Satyasuresh Donepudi

Similar Messages

  • Link between billing and accounting documents

    Hi Friends,
    After creating the billing document, automatically acctg document will generate.
    How the acconting document is generating?
    Where we give the link between these number ranges?
    help me
    Thanks in advance

    Hi Raja,
    In SAP as soon as you run the billing transaction accounting document is generated along with billing creation. In transaction VKOA (FI-SD Integration) you determine the revenue GL account created in FI with the help of "AcctDetermProc." which is usually KOFI00. In this procedure there is a condition type of KOFI for revenue account. And this "AcctDetermProc."  KOFI00 is mapped in the Billing Document Type in
    transaction VOFA. under account assignment/pricing tab.
    And number range for the billing document type is maintained in VN01. Both FI number range and SD number ranges have same interval. so that both billing document and accounting document receive same number.
    Moreover, there is an "Account Key" for the revenue account aligned to condition type KOFI and same account key is mapped to the pricing procedure in order to maintain the stability.
    might help you......................................

  • Link between billing document and accounting document number

    Hi Frnds,
    When i receive a partial receipt (of an invoice) from a customer using f-28, i am getting the link between invoice number and accounting document number from a table (BSEG), but when i am receiving the final settlement amount from the customer, i m not getting the link between the inv. no. and accounting document number. Can anyone tell me how can i get the same?
    I have tried table BSAD and BSID.

    Hi,
    I will give you two options.
    1)Goto FBL5n.Enter your customer number and company code.Select All items.
    Execute.
    Search for your billing document number using CTRL+F.Select that line.Click on display.
    Here you will find the reference number and clearing document number also.
    2)Goto VF02.
    Enter your billing document number.Enter.
    Press Shift+F4 or the path is:goto-->Accounting document.
    You will get the accounting document number here.
    3)Goto FB03.Key in the document number.Enter.
    Regards,
    Krishna.

  • Link between inv. number and accounting document number

    Hi Frnds,
    When i receive  a partial receipt (of an invoice) from a customer, i am getting the link between invoice number and accounting document number from a table (BSEG), but when i am receiving the final settlement amount from the customer, i m not getting the link between the inv. no. and accounting document number. Can anyone tell me how can i get the same?

    Hello,
    Try to prepare query based on tables BSIK, BSAK and BSEG. (Transaction code SQVI)
    Regards,
    Ravi

  • Link between invoice number and accounting document number

    Hi Frnds,
    When i receive a partial receipt (of an invoice) from a customer, i am getting the link between invoice number and accounting document number from a table (BSEG), but when i am receiving the final settlement amount from the customer, i m not getting the link between the inv. no. and accounting document number. Can anyone tell me how can i get the same?

    hi
    try these tcodes
    FBL5N
    FB02
    regards

  • Relation between FI and CO document number

    Hi
    I have Fi document number from BSIS.
    Now i need to get the corresponding CO document number from COEP.
    I used to get the currency dates from COEP by passing OBjnr from PRPS and KOKRS.
    But the performance is very bad since the key field CO document number is empty.
    Please let me know how to get the CO document number from FI document number
    Thanks

    Hi All,
    To find link between FI and CO documents:
    1) Go to "BKPF-AWKEY" in table BKPF ( FI document header   -> Reference key and AUAK )
         From here you get a reference document number.
    2) Now for field name "REFBN" in table "COBK" you will get the CO document number in field   
        "COBK-BELNR"
    <Reward request removed by moderator>
    Thanks
    Mahendra Joshi
    Message was edited by: Vinod Kumar

  • 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

  • Link between Customer Purchase Order and Accounting Document Number

    Hello all,
    is there a table in SAP that contains the purchase order number of the customer and the Accounting Document Number (belnr)?
    thanks in advance
    Anne

    Do this:
    SELECT awtyp awkey
      FROM bkpf
      INTO CORRESPONDING FIELDS OF bkpf
      WHERE bukrs = bsis-bukrs
        AND belnr = bsis-belnr
        AND gjahr = bsis-gjahr.
    ENDSELECT.
    This should give you SD billing document information.
    Rob

  • Link Between delivery and material document

    Dear All,
    how do we link between delivery document,
    and between delivery document and accounting document,
    with regards
    Mohammed Raees

    Hi there,
    Material doc is the PGI document which is created whenever there is material movement either GR or GI. In VL02N --> document flow, select the GD goods issue & click on display document. It will take you to the material doc. There is a field called material slip in that. The value stored in material display is the delivery num. That is how you link the delivery & material doc.
    From the material doc if you click on accounting docs, it will give you the A/c document num & the costing doc num (if available).
    From the material doc, select the item & click on details from ityem, it will give you the GL account for which the GI is posted.
    Regards,
    Sivanand

  • Report with Invoice and Accounting Document Number

    Dear Experts,
    Here i have a requirement.
    I wanna a report which gives a Invoice (MIRO) and its accounting documents (Follow on document) in one page. Because If I view a MIRO document, for checking the accounting document, I need to click on Follow on doc, then I'll get.
    But If wanna see for 1000 MIRO documents with accounting document number, then I don't want to click 1000 times to see the account doc for respective Invoice number.
    The approximate format is,
    Column 1                              Column 2     Column 3        .......................              Column n
    MIRO  (Invoice number)                             Accountting Doc Number
    5100000099                                              5100000011
    Which tcode will give the both in one screen?
    Thanks in advance
    Regards,
    navahsek

    Hi,
    Enter Sork Key 002 for Vendor Master Record.
    and also you can check the Report in ECC 6.0
    MIR5 - Display List of Invoice Documents
    There you select Export Mode --> Display Accounting Document Number.
    You can get Report FI and MM Document Numbers.
    Hope It will Clear.
    Regards,
    Kishore

  • Broken Link between Base and Target document in 'Copy To' option

    Hi Folks,
    One of our client has been facing a peculiar issue. When the 'Copy To'  function is used to Copy document from Sales Order to Delivery and recently one instance of 'Copy To' from Delivery to A/R Invoice ,the base document got copied to the target document in each case but there was no trace of any Base Ref. left in the Target document( either in row level or Remarks), thereby the link between the Base and Target document got broken.The Base document remains with status as open.The same base document when tried again to 'Copy To', it creates the link between Base and new Target document.
    This instance had occurred recently 3- 4 times in a span of 3 months or so. In normal circumstance this never happens. The client is pretty sure they have used 'Copy To' option to copy the document from Base to Target.
    Any hints or possible reasons if one can highlight would be appreciable.
    The current version used is SAP B1 8.82 PL11 and it was upgraded more than a year back.
    Regards,
    Bharath

    Hi,
    All the data in Sales Order and Delivery are matching one to one in terms of row details,
    and Document header level.
    The missing data was Base Ref. data and Del.Date didn't get copied from base to target as shown in screen shot.
    Also i have checked it earlier regarding change of target document row details like changing item, but this will only remove the link of that particular row and remaining row link remains intact, but in this case there are many items and it doesn't seem user will have changed in all the rows.
    Regards,
    Bharath

  • Table for Dispute case ID and accounting document number

    Hi,
    For a given dispute case ID (EXT_KEY) I am unable to find the corresponding accounting document number ( BELNR ) for this dispute case. I am able to see the accounting document for the dispute case on the transaction UDM_DISPUTE but then I am not finding the same in any tables. Can anyone let me know in which table can I find the relationship to determine this. Thanks in advance.
    Rgds,
    Sowmya

    Hi Sowmya,
    check the table UDMCASEATTR00.it contains all the details about disputemanagement
    please reward poitns if helpful

  • Tables linking the invoice and accounting document

    Hi,
    Can anyone tell me tables linking the invoice and accounting details table BSEG?
    Regards,
    Shanu

    Following BSEG fields can be found in VBRK
    MANDT
    BUKRS
    BELNR
    GJAHR
    ZUONR
    VBUND
    VBELN
    ZTERM
    ZLSCH
    BVTYP
    MSCHL
    MANSP
    MABER
    STCEG
    XEGDR
    KKBER
    KIDNO
    BUPLA
    Similarly following fields can be found in VBRP
    MANDT
    VBELN
    thanks
    G. Lakshmipathi

  • Link between 216 and 261 document

    Dear Gurus,
    I want to know link between Goods issue document and corresponding 262 document. How can i Link if the Reversal is done in MIGO with movement type 262 ( not canceling Document )
    Material A
    A   261   10 Qty
    A   261    5  Qty
    A   262    5 Qty
    A   261   10 QTy
    I want to link 261 material doc with corresponding 262 material doc .
    Rebert back if anyhow i can know which is reversed against which
    Pupose of this is for some user exit on MIGO
    Regards,
    Ishwar

    Hi there,
    Material doc is the PGI document which is created whenever there is material movement either GR or GI. In VL02N --> document flow, select the GD goods issue & click on display document. It will take you to the material doc. There is a field called material slip in that. The value stored in material display is the delivery num. That is how you link the delivery & material doc.
    From the material doc if you click on accounting docs, it will give you the A/c document num & the costing doc num (if available).
    From the material doc, select the item & click on details from ityem, it will give you the GL account for which the GI is posted.
    Regards,
    Sivanand

  • Differences between billing and accounting document with down paym. request

    Hello to all
    We are creating down payment request billing from one sales order with two sales order items that has different tax classification material.
    The billing document is created correctly (with the same value for each item), not as the account document.
    If you compare the value from the billing document to the account document is not the same. In the account document the system decreases the amount of the first item with the tax amount of the second item and the same for the second item (the amount of the second item decreases the amount of the second item with the tax amount of the first item).Then the tax amount of the two items is right.
    If the two items have the same tax classification material, it works fine.
    Can anyone help me?, is it a problem with the payment request billing?.
    Thanks in advance.
    Edited by: tonnetti pablo on Jan 8, 2008 9:46 AM

    Hi,
    The following Customizing settings have to be made for down payment processing:
    Settings for the billing plan – To activate the billing plan function, maintain the materials, for which you wish to process down payments, with item category group 0005 (milestone billing). This gives the item type TAO via item type determination. The item type TAO calls up the billing plan function.
    You need to implement the following activities in the billing plan for down payments:
    Maintain deadline category – This determines the billing rule (percentage or value down payment) for the down payment request. The system assigns billing type FAZ (payment request) defined in the standard system with billing category P. (For the billing type FAZ there is the cancellation billing document type FAS in the standard system).
    Maintain the deadline proposal – Use the down payments that are due for the proposed deadlines.
    Maintaining a Pricing Procedure with the Condition Type AZWR:
    In the standard system the condition type AZWR is delivered for the down payment value already provided but which has not yet been calculated. You must include this condition type in the relevant pricing procedure before output tax.
    Enter condition 2 (item with pricing) and the calculation formula 48 (down payment clearing value must not be bigger than the item value) for the condition type AZWR.
    Before the condition AZWR you can create a subtotal with the base value calculation formula 2 (net value). If the condition AZWR is changed manually, you can get information on the original system proposal from the subtotal.
    Maintain the printing indicator – The pricing procedure can not be marked as a transaction-specific pricing procedure (field Spec.proc.) The condition type AZWR has the calculation type B (fixed amount) and the condition category E (down payment request / clearing).
    Maintaining the Billing Document – In the standard system there is the billing type FAZ (down payment request) and the billing type FAS for canceling . The down payment is controlled using the billing category P of the billing type. A billing type becomes a down payment request when the billing category P is assigned. You have to maintain blocking reason 02 (complete confirmation missing) for the billing documents and assign it to billing type FAZ.
    Copying control – Copying requirement 20 must be entered in copying control at item level for the down payment request. In the standard system the order type TA for copying control is set up according to the billing type FAZ for the item category TAO.
    Copying requirement 23 must be entered in copying control at item level for down payment clearing. In the standard system the order type TA for copying control is set up according to the billing type F2 for the item category TAO.
    Financial Accounting settings – A prerequisite for down payment processing is that the account is assigned to the underlying sales document. To do this, change the field status settings in Customizing as follows:
    Set reconciliation accounts (transaction OBXR) – For the `received down payments’ and `down payment requests’ from
    the G/L accounts you have selected, you should assign the field status definition G031.
    Maintain accounting configuration (transaction OBXB) – For the down payments (posting key ANZ in the standard system) and the output tax clearing (posting key MVA in the standard system), you must maintain the posting key.
    You must also carry out a G/L account number assignment for the tax account.
    Maintain the posting key (transaction OB41) – For posting key 19, set the sales order as an optional field
    Maintain the field status definition (transaction OB14) – For field status variant 0001, field status group G031, set the
    sales order as an optional field
    Assign the company code to the field status variants (transaction OBC5)
    Regards,
    Siddharth.

Maybe you are looking for

  • Comparing count of one table with another

    Hi, I want to compare the number of rows in three tables with the number of rows in another table and see if they are equal Here is what I have so far: SELECT decode(the_count,100,1,0) from (select sum(num_rows) as the_count from user_tables where ta

  • EX5210 to MacBook Pro... I can't project my desktop using HDMI connection.

    However,  I can show a PPT display. What if I want to do a live web demo from my desktop internet connection?

  • Time Capsule - What can I do with it?

    Hello Community, I think, this is the first post I write here, so - it's nice to be here, I hope there's anybody around who understands and could help me. I'm looking for an external Harddrive that I have not to plug in my USB Port, everytime I need

  • Basic Authentication for Non-AD Users

    Hello we are implemented windows integrated single sign on using spnego module and adjusted the login stacks as directed; Evaluate TicketLogin.Module = SUFFICIENT SPNEGO mdoule = OPTIONAL Ceate TicketLoginModule = SUFFICIENT BasicpasswordLogin Module

  • Arrows in the dot column

    I expect (hope) this is a really stupid question. In the dot column of my sent mail folder (MobileMe IMAP), a few of my messages have a horizontal arrow pointing to the right. What does this signify? It is definitely not that my message is a reply to