Sales Order invoice number

Hello Friends,
When We create a sales order in VA01, for the corresponding order where can we get the invoice number.
Thanks in Advance,
Shejal Shetty.

You can find the information in table VBFA.
VBELV - Your Sales Order Number
VBTYP_N - 'M'
VBELN is the invoice number.

Similar Messages

  • Is there a table Sales Order #, Invoice#

    Dear All,
    Is there any table which gives Sales order#, Invoice #, customer#, materail#.
    I wanted to check for given sales orders, invoice #.. etc..
    Thanks & regards
    Venkat

    Hi,
    <b>1.</b> Fetch Sales Order # (VBAK-VBELN) and Customer (VBAK-KUNNR)(Sold-To Party) from table VBAK
    <b>2.</b> All Partners can be fetched from table VBPA based on VBPA-VBELN = VBAK-VBELN
    <b>3.</b> Fetch Material # (VBAP-MATNR) from table VBAP based on VBAP-VBELN = VBAK-VBELN
    <b>4.</b> Fetch Invoice # (VBRK-VBELN) from table VBRK.
    To get invoice number for a particular sales order, follow following steps :
       a. Fetch VBELN from table LIPS based on LIPS-VGBEL = VBAK-VBELN.
       b. Fetch VBELN from VBRP based on VBRP-VGBEL = LIPS-VBELN.
    So, VBRP-VBELN will give you an invoice no based on a sales order and delivery.
    <b>OR</b>
    Goto table VBFA, give sales order no in field VBELV and give VBTYP_N = M. You will get the invoice no in field VBELN.
    Reward points if the answer is helpful.
    Regards,
    Mukul
    Message was edited by:
            Mukul R. Kulkarni

  • Sales order invoice query

    Hi
    Please send the sales order invoice query as basic columns.. Further I will modify the query according to the requirement.
    Pleas send to my personal ID: [email protected]
    Thanks
    Sree

    Thanks.  There's a few problems though.
    1)  It seems that OINV DocTotal != Balance Due.  I'm seeing a number of invoices where there was a balance due, but we applied additional money (either we took another incoming payment and applied it or applied money from the account balance, etc.) and yet it still shows a total.
    2)  It's pulling incoming payments from different customers.  I think this is because the table was joined based on "RCT2 T4 on T4.[DocEntry]  =  T3.[DocNum] and T4.[InvoiceId] = T2.[LineNum]"  In one example I have 2 incoming payments 446 and 614.  Both have the DocEntry 542, but one relates to A/R Invoice 542 (for a different client) while the other relates to Down Payment Invoice 542.  *I was able to fix this by adding WHERE T5.CardCode = [%0]*
    3)  I'm going to work with this a little bit and see if I can alter it to make it work for me.  Basically this query falls a little short on the following:
    -  Doesn't include incoming payments that aren't linked to a down payment invoice.
    -  Does not give the Invoice Total (I'd like to know how much of the SO was invoiced.  DocTotal seems to give me Amount Invoiced - Down Payments.  I'm not sure the best way to get this number.  Maybe I could do the sum of each line * tax + freight)
    -  Does not give the outstanding amount on an invoice.  The ARtotal [DocTotal] column gives me how much was owed when the invoice was created, but it doesn't tell me what is currently owed.
    -  Lastly it may complicate the query too much and could be left off, but it would be nice to see if they have any money from credits or incoming payments that has not been applied.  Perhaps this would be easily accomplished by simply pulling in their account balance.

  • How to block material issuing after sales order invoiced?

    As the subject mentioned,  could be a possible to block material issuing since sales order invoiced, or
    in the another words, after the sales order completed?
    Or could be a possible to set sales order as closed, and then material issuing related with this sales order are
    forbidden?
    Thanks in advanced,
    Zhou Zhen

    Dear Friend
    A sales order is created say order no 10000 and for material X say 10 units this order is delivered and PGIed and invoiced and the payment too has come
    That means the order 10000 is closed
    Case 1
    Now an user goes to VA02 t code and put this order no 10000 and changes the material X qty from 10 to 12 and opens up the whole order once again
    This can be controlled by using t code OVAH choosing message class the V4 message no 083 and change from warning to error
    Case2
    But to avoid the user to add material Y to the existing order say 10000 then i think we have to go for user exit
    Because the system doesnot even throw a warning message too in case 2 (according to my knowledge) and allows another line item to be added in the same order
    But you can test it if it throws any warning message we can try to convert that error
    But in case 2 it is not happening(even warning is not there)
    Regards
    Raja

  • Report needed to view different prices applied in a sales order / invoice

    Hi Friends
                In the sales order/ Invoices there are 2 different prices , List price and another special price . These 2 condition types  are generally determined in pricing .
    Requirement is to have a report which displays these 2 prices per customer per a specified time period .
    Customer wants to see how much discount in the form of special price he received .
    Is there any standard report for this , or can this be created using ABAP queries or Net price list ?
    Regards
    Ragav...

    Hi  All ,
    Thank you all for your quick respose . Let me give your more info for a better understanding of my requirement .  Basically here two prices are to be compared . List price which is based on sales org / distribution channel and material . The other is special price matained for sales org , customer and material . 
    In my system I have 2 different pricing reports ( T- code SAP1 )  , one is based on sales org , material - This I can use to find list price . I also have another customer based report and using this I can get the special price
    But user wants to see both these prices side by side in a single report . Is there a way these two reports can be combined ?
    Regards
    Raghav

  • No Sales Order Item number in PCA document on Delivery

    Hi,
    We have an issue as below:
    Sales Order (Not a CO object)>Delivery is done> We cannot see Sales Order item number in the PCA document whereas it appears in Accounting Document.
    After Billing, a CO-PA document also generated.
    Thanks to provide any information on this.
    Umapathi G

    Hi,
      For billing documents, the information from the respective sales order and from the sales order item in the line item table GLPCA is only in the fields AUBEL and AUPOS.    
      You post a goods issue for delivery. If you post the goods issue for a sales order stock, the information of the sales order is updated in the profit center document (field GLPCA-KDAUF). If the goods issue is posted from the make-to-stock inventory, then the sales order information is not updated.
    regards
    Waman

  • SD How to create IDoc once Sales Order Invoice (Billing) has been created ?

    Hi,
    How to create IDoc once Sales Order Invoice (Billing) has been created ?
    I.e Once you click on save button of Invoice , IDoc Should genrate Automatically.
    Thanks

    Hello,
    Go to T.code VV31 and select the billing output type and select the access sequence required and in the details screen of create condition records give all the required entries for eg: may be Billing Type, Sales Organsiation etc.and in the medium choose the option as 6(EDI) and time select as 4 that is immediately after saving the document.Also please ensure that particular partners for whom idoc should be generated they need to have partner profile setup with the billing message types. Hope this helps.

  • How to create IDoc once Sales Order Invoice (Billing) has been created

    Hi,
    How to create IDoc once Sales Order Invoice (Billing) has been created   ?
    I.e Once you click on save button of Invoice , IDoc Should genrate Automatically.
    Thanks.

    Hi,
    We need to do custom configuration for this scenario such that an output type will be attached when ever an INVOICE is created.
    Refer to application V3 in NACE. The Output type should contain an entry with transmission medium: Distribution (ALE).
    for example check the customization done for an output type in NACE.
    Goto NACE ---> Select an application V3 ---> Click on processing routines ---> select the output type (Eg: RD00) ---> Click on Details button  (CNTRL + SHFT + F2) which gives the configuration info.
    For example we can generate the IDOC based on the settings in partner profiles for the customer (Sold To)
    With Regards,
    Dwaraka.S
    Edited by: Dwarakanath Sankarayogi on Jan 29, 2009 8:16 AM

  • Arbitrary Number Generated before Sales Order Document number is Generated

    I want to know which is the arbitrary number generated before the sales Order Document number is created. In which table the arbitrary number is stored?
    The Exit which triggers the arbitrary number in the transaction VA01?

    Hi
    You get the Arbitrary number throug the FM NUMBER_GET_NEXT.
    interne Nummernvergabe
            data: da_rc like inri-returncode.
            call function 'NUMBER_GET_NEXT'
              exporting
                nr_range_nr = da_numki
                object      = 'RV_BELEG'
              importing
                returncode  = da_rc
                number      = vbak-vbeln.
    And regarding userexit, there is
    perform userexit_number_range using da_numki statement in include MV45AF0B_BELEG_SICHERN.
    Regards
    Raj

  • Sales order invoice extraction

    i want the tables and fields about sales order invoice extraction

    Hi Bala,
    Welcome to SDN.
    Please check this link for sales order invoice tables.
    http://www.erpgenie.com/sap/abap/tables_sd.htm
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Sales Order Line Number printing as it appears in UI

    Hi,
    I am trying to get the Line number in sales orders as it appears in the UI,but when i fetch the data from the underlying table i am getting a different value.Can any one help me out how to get the value as is from UI at line level.
    For Eg:
    The Sales order Line number is 1.1 in the UI,then the corresponding value when i fetch from the table is being displayed as 1.
    Thanks,
    Praveen

    select line_number||(decode(shipment_number,null,'','.'||shipment_number))
    ||(decode(option_number,null,'','.'||option_number))||
    (decode(component_number,null,'','.'||component_number))||
    (decode(service_number,null,'','.'||service_number)) LineNumber from apps.oe_order_lines_all where header_id= &head;
    Edited by: user9095588 on Feb 11, 2010 12:35 PM

  • Sales order line number

    Hi all
    Which field corresponds to SALES ORDER LINE NUMBER in VBAK table
    thanks in advance
    Regards
    Neha kapoor

    Hi Neha
    VBAK: is for Header data
    VBAP: is for Item data
    So take the key field VBELN , you can get the
    sales order line number which POSNR which in VBAP.
    so VBAK-VBELN = VBAP-VBELN  and get the VBAP-POSNR.
    Regards.
    Laxmi

  • Any standard SMARTFORMS available for purchase order, sales order, invoice

    Hi,
    Any standard SMARTFORMS available for purchase order, sales order, invoice ?
    RR.

    Hi Rama,
    Goto NACE tcode-> choose the application u want( like billing for invoice, PO)->output type->output type->processing routineon left side
    Here u will find the standard program name and smartform .
    Hope it helps.
    Regards,
    Sonika

  • Trying to create a query that shows Sales Order/Invoice Totals as well as Paid/Outstanding/Available Down Payments

    Currently working on SAP B1 v8.82
    I'm looking to generate a query that will give an overall report for a given customer that shows Sales Order No, Invoice No, Sales Order Total, Invoice Total, Amount Paid on Invoice, Amount Remaining on Invoice, Down Payments Available, Open on Sales Order.
    I'm not sure what the best way to select the columns in bold above.  Invoice Total should be self-explanatory.  Amount Paid should be any down payments or applied payments on the invoice.  The balance due on the invoice (which seems to be T0.DocTotal if I'm not mistaken) should = 'Invoice Total' - 'Amount Paid on Invoice'. In the Down Payments Available column I want the total amount of money on the account or on down payments that aren't tied to a Sales Order.  If a client overpaid in the past for instance and there's a credit on their account, then it should contribute to this sum.  Open on Sales Order should be pretty easy.  I guess it's just the sum of everything that is still open on the Sales Order.  I'm just not sure what the best way to sum all the un-delivered freight, tax, and line items is.  Here's what my query looks like so far.
    SELECT DISTINCT T4.[DocNum] [Sales Order No],
    T0.DocNum [Invoice No],
    T4.DocTotal [Sales Order Total]
    T0.DocTotal [Amount Outstanding],
    FROM OINV T0
    INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN DLN1 T2 ON T1.BaseEntry = T2.DocEntry AND T1.BaseLine = T2.LineNum
    INNER JOIN RDR1 T3 ON T2.BaseEntry = T3.DocEntry AND T2.BaseLine = T3.LineNum
    INNER JOIN ORDR T4 ON T3.DocEntry = T4.DocEntry
    INNER JOIN OSLP T5 ON T4.SlpCode = T5.SlpCode
    WHERE T0.CardName Like '%%[%0]%%'
    GROUP BY T4.DocNum, T0.DocNum, T0.DocTotal, T4.DocTotal
    I tried doing a little searching around for queries similar to what I need, but I could find exactly what I was looking for and I'm very unfamiliar with OJDT, JDT1, and ITR1 tables which I think might be important to finding unapplied payments...

    Thanks.  There's a few problems though.
    1)  It seems that OINV DocTotal != Balance Due.  I'm seeing a number of invoices where there was a balance due, but we applied additional money (either we took another incoming payment and applied it or applied money from the account balance, etc.) and yet it still shows a total.
    2)  It's pulling incoming payments from different customers.  I think this is because the table was joined based on "RCT2 T4 on T4.[DocEntry]  =  T3.[DocNum] and T4.[InvoiceId] = T2.[LineNum]"  In one example I have 2 incoming payments 446 and 614.  Both have the DocEntry 542, but one relates to A/R Invoice 542 (for a different client) while the other relates to Down Payment Invoice 542.  *I was able to fix this by adding WHERE T5.CardCode = [%0]*
    3)  I'm going to work with this a little bit and see if I can alter it to make it work for me.  Basically this query falls a little short on the following:
    -  Doesn't include incoming payments that aren't linked to a down payment invoice.
    -  Does not give the Invoice Total (I'd like to know how much of the SO was invoiced.  DocTotal seems to give me Amount Invoiced - Down Payments.  I'm not sure the best way to get this number.  Maybe I could do the sum of each line * tax + freight)
    -  Does not give the outstanding amount on an invoice.  The ARtotal [DocTotal] column gives me how much was owed when the invoice was created, but it doesn't tell me what is currently owed.
    -  Lastly it may complicate the query too much and could be left off, but it would be nice to see if they have any money from credits or incoming payments that has not been applied.  Perhaps this would be easily accomplished by simply pulling in their account balance.

  • Sales Order- Invoice Cancelled

    Hi Gurus,
    Our case is Order related invocie. I created a Sales order and generated an invoice against to this sales order. and due to some reasons i canceleed the invoice.
    No when i check the report for Open sales orders the system is showing this sales order number. So i dont want to this sales order number in the open sales orders list. How can i get it.
    Cheers,
    Sumith

    Hi
    Sumith
    IF u have cancel the invoice then
    >  Cancel the billing doc. by VF11 ( if commercial ) or by VF02 ( if performa)
    >  Cancel the PGI by using VL09
    >  Cancel the delivery in VL02
    > Now go to  VA02 and short colse the order by ENTERING THE RELEVENT REASON FOR REJECTION 
      in the order and run the report u will not get the same or u can delete the sales order also in sales order tab.
    Hope this will help you.
    Thx.

Maybe you are looking for