Tables for Po number and corresponding invoice number

Hi
can Any buddy help me to find the PO number and its corresponding Invoice document number from table LFB1.
LFB1->PO->Invoice num.
thanks
imran

Hi,
In LFB1 table you cant get all the details, this is related to vendor master at company code level.
Can try with the below logic:
1st Get all the PO of particular vendor from EKKO table ( Po field EBELN, vendor field LIFNR)
2nd take all the PO's and pass to EKBE table ( PO field EBELN) and also give the below values in the EKBE table
field BEWTP = Q
Now you can see the invoice number in feild BELNR material document number.
Regards
VK

Similar Messages

  • Invoice Number and Performa invoice number

    Hi all
      I want to get the combination of invoice Number and Performa invoice number, I have got the VBFA Table, but it’s very slow, any alternative program or function please help me
    Thanks
    Kanishka

    Try AC_DOCUMENT_RECORD. It returns all kind of accounting documents.

  • Need po and external invoice number from Invoice.

    Hi,
    Can any one help me out with a tables or FM  which gets  PO  number and external invoice number from invoice number
    in SRM.?
    Regards,
    Neelima.

    Hi Neelima,
    I do not have system right now , but will give direction to find out the required info.
    1) go to bbp_pd and given the invoice number(SRM invoice number) in object id amd object type as BUS2234.
    2) click on item line and you will see the item detail . in some table you wold notic BE_OBJECT_ID as PO number corresponding to BE_OBJTYPE  as BUS2012.
    so now you have the PO number.
    use function module BBP_PD_PO_DOC_FLOW with the PO number and you should get the external invoice number in line item with business object corresponding to ECC invoice (BUS2081 is guess)
    cheers
    Iftekhar Alam

  • Shipment document number and cost document number for vendor invoice

    Hi,
    Given a Vendor invoice number ( MIRO) how to find out the shipment number and cost docuemnt number?
    Regards,
    Krishna prasad.

    Hi,
    Please try using SREL_GET_NEXT_RELATIONS. Please try to search on SDN and you should find an example fo this. The only thing you need to pass is the Business Object Name for Vendor Invoice number. Or if you have an alternal field like even PO that you can pass , that will be of great help as well.
    You may want to take a look at:
    SREL_DISPLAY_LIST_OF_NEIGHBORS
    SREL_GET_NEXT_RELATIONS
    Pls reward points if useful.
    Thanks
    Ganesh.S

  • Goods receipt number and purchase invoice nubember info objects

    hi experts
    i have the requirement to build the report with the  info objects of goods receipt number(document) , purchase invoice numbers and purchase document numbers from standard cubes or ods.i have checked in inventory management and purchasing cubes&ods i am not success got the purchase document number it is from ods   (0PUR_O02)  the InfoObject  is 0OI_EBELN(purchasing document number),like this i want InfoObject  for Goods receipt number and purchase invoices from where can i get these fields.
    if u need any more information i will provide.
    thanks and regards
    Sreenivas.

    Hi Ahamed,
    thanks for your reply,do u have any information about purchase invoice number.
    i need one more help from you, how to find out Debtors turnover ratio from Acceount Receivables(AR) (or)G/L (General ledger account).is there any standard queries from Business content,i was checked and i was failed,if you have any solution for this please let me know.
    thanks and regards
    Sreenivas.

  • 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

  • Numbering Group G1 can be used only for one CoCd and cash journal number

    Hello,
    I was trying to create a cash journal when I got the error message:
    "Numbering Group G1 can be used only for one CoCd and cash journal number".
    Does anyone have an idea what could be wrong?
    Thank you,
    Bola

    Hi,
    Please check whether more than one number range is maintained in  transaction code FBCJC1. If yes, please keep only one as Cash Journal has only one number range. This is the internal number range for Cash Journal.
    If you want different number range for accounting documents then create new document types and assign number ranges to it.
    Regards,
    Tejas

  • MM Document number and FI document number is a single table

    Dear Friends,
    Could you please let me know the table where both MM document number and FI document number will be available. I checked in BKPF and it is only updating FI document number and not MM document number and in MKPF it is only updating MM doc number and not FI document number.
    Also let me know if there is any report/tcode/program available to view this at one place itself.
    Regards,
    Dwarak.

    hi
    i dont think you can view both table in one screen.
    in T-CODE:SE16N you can see one by one table.
    Regards
    ramana

  • Use SQL function to get the original order number using the invoice number

    Hi All,
    wondering is someone can help me with this challenge I am having?  Often I need to return the original order numbers that created the resulting invoce.  This is a relatively simple seriese of joins in a query but I am wanting to simplify it using a SQL function that can be referenced each time easily from with in the SELECT statement.  the code i currently have is:
    Use SQL function to get the original order number using the invoice number
    CREATE FUNCTION dbo.fnOrdersThatMakeInvoice(@InvNum int)
    RETURNS nvarchar(200)
    AS
    BEGIN
    DECLARE @OrderList nvarchar(200)
    SET @OrderList = ''
    SELECT @OrderList = @OrderList + (cast(T6.DocNum AS nvarchar(10)) + ' ')
    FROM  OINV AS T1 INNER JOIN
          INV1 AS T2 ON T1.DocEntry = T2.DocEntry INNER JOIN
          DLN1 AS T4 ON T2.BaseEntry = T4.DocEntry AND T2.BaseLine = T4.LineNum INNER JOIN
          RDR1 AS T5 ON T4.BaseEntry = T5.DocEntry AND T4.BaseLine = T5.LineNum INNER JOIN
          ORDR AS T6 ON T5.DocEntry = T6.DocEntry
    WHERE T1.DocNum = @InvNum
    RETURN @OrderList 
    END
    it is run by the following query:
    Select T1.DocNum, dbo.fnOrdersThatMakeInvoice(T1.DocNum)
    From OINV T1
    Where T1.DocNum = 'your invoice number here'
    The issue is that this returns the order number for all of the lines in the invoice.  Only want to see the summary of the order numbers.  ie if 3 orders were used to make a 20 line inovice I only want to see the 3 order numbers retuned in the field.
    If this was a simple reporting SELECT query I would use SELECT DISTINCT.  But I can't do that.
    Any ideas?
    Thanks,
    Mike

    Thanks Gordon,
    I am trying to get away from the massive table access list everytime I write a query where I need to access the original order number of the invoice.  However, I have managed to solve my own problem with a GROUP BY statement!
    Others may be interested so, the code is this:
    CREATE FUNCTION dbo.fnOrdersThatMakeInvoice(@InvNum int)
    RETURNS nvarchar(200)
    AS
    BEGIN
    DECLARE @OrderList nvarchar(200)
    SET @OrderList = ''
    SELECT @OrderList = @OrderList + (cast(T6.DocNum AS nvarchar(10)) + ' ')
    FROM  OINV AS T1 INNER JOIN
          INV1 AS T2 ON T1.DocEntry = T2.DocEntry INNER JOIN
          DLN1 AS T4 ON T2.BaseEntry = T4.DocEntry AND T2.BaseLine = T4.LineNum INNER JOIN
          RDR1 AS T5 ON T4.BaseEntry = T5.DocEntry AND T4.BaseLine = T5.LineNum INNER JOIN
          ORDR AS T6 ON T5.DocEntry = T6.DocEntry
    WHERE T1.DocNum = @InvNum
    GROUP BY T6.DocNum
    RETURN @OrderList 
    END
    and to call it use this:
    Select T1.DocNum, dbo.fnOrdersThatMakeInvoice(T1.DocNum)
    From OINV T1
    Where T1.DocNum = 'your invoice number'

  • 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..

  • Report to find a material by a mfr part number and old material number

    Hi,
    Is there any standard report to find a material by a mfr part number and old material number ?
    For the moment, we are using MM03 to search articles by these selection criterion.
    Thanks,
    Julien Girard

    Hi
    As there is no stsndard report use the SQVI to find out the details, It is very simple , please follwo the below steps.
    Use Txn SQVI, enter the Quick view field say- ZMNFR and click the  create button, Enter the title in the next screen i.e Report name- Say - Manufacturer's Part No. Details, in the same screen you need to enter  MARA  for the data from table/database view, please leave the 1. data source as Table only and the radio button as Basis mode only.  Click the tick mark , you will go to the next screen,
    You will notice Quick viewer Intial screen
    Open the node general material data
    Select the Buttons besides the fields MARA-MATNR for material number, MARA-MFRPN for manufacturers part number, and MARA-BISMT for old material number. You can include any other field if you wish to have in your output. You will notice two check boxes against each field, one is for input screen field and the other is for outputf field. But currently you do not bother about and select both the check boxes or any other field you wish to have as input and output as well. Once selected all the fields afer clicking the check boxes save the total arrangement. and then in the same screen use the execute button or use F8 to find out your report input screen.
    Now enter the Material number for which you wish to know other two details in the report and execute again you will find the report output.
    Please ensure that you are maintaining both the details in material master basic data1 and purchasing  view if you wish to get  out output
    Best regards
    SAM
    Edited by: samuel mendis on Apr 8, 2009 6:52 AM

  • Purchase requistion number and line item number linkage with work order opr

    Hello,
    I want to know what is the link between Purchase requisition number along with its line item number with work order operation number.
    For the non stock component assign to Work order operation ( say operation 10) the PR get generated for that component which assign to that operation .
    in which table we can find that PR as input and output as Work order number along with its operation .
    In AFVC table if we put PR as input then it does not show any entry for that PR number?
    Regards
    Vaibhav

    HI Vaibhav,
    If you have the Work Order Number AUFNR, then you can get AUFPL from AFKO.
    Then Pass AUFPL to AFVC table to get BANFN(Purchase requisition number) and BNFPO(Item number of the purchase requisition in the order).
    Regards,
    Ravi

  • PO number and Finance doc number connection

    Hi Experts,
    In our project we got a requirement like we need to show fields from fs10n, fields are, GL account number,
    FI document number, PO number, Amount in local currency and PO description.
    I didnt see any datasource which bring PO number, FI GL account number and Finance document number together, so please guide me in this regards.
    how can i bring finance and purchase data together?? which is the appropriate data source for this?
    Thanks,
    urs raghu

    >
    ursraghu.bw wrote:
    > Hi Experts,
    >
    > In our project we got a requirement like we need to show fields from fs10n, fields are, GL account number,
    > FI document number, PO number, Amount in local currency and PO description.
    >
    > I didnt see any datasource which bring PO number, FI GL account number and Finance document number together, so please guide me in this regards.
    >
    > how can i bring finance and purchase data together?? which is the appropriate data source for this?
    >
    > Thanks,
    > urs raghu
    U can do a multprovider on both Purchasing and Finance InfoCube.
    In R/3, table BSEG has a field call EBELN. So I believe in BW you can use DataSource 0FI_GL_14 as it contains PO num, acct doc, etc. As long with these keys, it is easy to do a join or lookup DSO or even a multiprovider.
    hope it helps.

  • 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

  • Download Error - Contact customer support. Indesign wont load application have gone from the control panel. CS photoshop loads and wants a serial number - and my serial number dosent work?

    Download Error - Contact customer support. Indesign wont load application have gone from the control panel. CS photoshop loads and wants a serial number - and my serial number dosent work?

    Hello Bradley,
    sometimes the "opm.db file" is the culprit. In this case you should delete it.
    But as much as I regret it and as strange as it may seem I fear it's a challenge for Adobe's Creative Cloud Cleaner Tool.
    Sometimes - for whatever reasons - CC doesn't "want" to work. In this case you should CC completely delete and reinstall by help of Adobe Creative Cloud Cleaner Tool. (A try to uninstall by own resources is not enough!)
    I quote: ... helps resolve installation problems for Adobe Creative Cloud and Adobe Creative Suite (CS3-CS6) applications. The tool removes installation records for prerelease installations of Creative Cloud or Creative Suite applications. It does not affect existing installations of previous versions of Creative Cloud or Creative Suite applications.
    Please use: http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html   and follow the prescribed sequence of operations
    If necessary and for further questions click through http://helpx.adobe.com/contact.html or http://helpx.adobe.com/de/contact.html and if "open" please use chat, I had the best experiences.
    Good luck!
    Hans-Günter

Maybe you are looking for

  • How can I disable an old, defunct, email account?

    I cannot disable an old email address/account on my iPad (original) account. In iTunes, my iMac, my Macbook Air, & my iPad 2 all have the same current email address/account but when I try to change to this current email on my original iPad so that it

  • Your role no longer valid error message and cannot edit page

    Unfortunately I don't have access to the file, am asking on behalf of a friend who is skittish about his skills navigating a forum. His question is: When I open contribute, and select the website I want to edit..there is a yellow bar across the top o

  • How to fix 'missing files' in Lightroom 4? [was: adobe lightroom 4]

    Hi, I have the scenario whereby all the images, I assumed, on my hard drive were as I imported to my  catalogue.  but it now appears that all of my images, are showing as previews but some are showing as 'missing files'.  Attempts to reconnect are pr

  • Bug in compiler

    I am trying to compile my application (with Eclipse 3.4M3 - Ant) which is intended for a school project using EJB3 deployed on JBoss. When I compile with annotations I get the following errors. I am using a Windows XP computer, the latest JDK was ins

  • Highlighting items unsuccesfull due to incorrect variable length

    I had a problem with highlighting items in a block. The cause was package body QMS$RECORD in library QMSLIB50, in which the variable L_CUR_ITEM is defined as VARCHAR2(50), which is, offcourse, too small, because blocknames can be 30 chars en itemname