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

Similar Messages

  • 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

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

  • This field cannot be updated as there are open sales order lines

    When trying to enable Item Attributes then I am getting a message "This field cannot be updated as there are open sales order lines". I cancelled the Sales Order ( which was having only 1 sales order line and that is also cancelled) but still I am getting the same message.
    How to overcome this problem.
    Khan

    Thanks Karthik & Sandeep........
    Issue got fixed. There was an open Sales order Line because of that line the issue was coming. After cancelling that SO Line, Users were able to update the Item field.
    Regards,
    Khan.
    http://moreapps4u.blogspot.com/

  • 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

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

  • Open sales order, Invoice.......

    Hi
      Is there any standard report where i can see all the open order for sales organisation level. similarly i want see all the invoice created on a particular month at sales organisation level.
    I know we can see at VA05 Open sales orders but this is for Customer or material specific..
    VF05 For payer and material Specific... here i cannot see for sales organisation level..
    I want this report at sales organisation level.. can any body guide me in this regard.
    Regards
    MBS

    Hi
    One way of getting the open sales order report at sales org level is the "Backorder Report" - try using transaction V_RA
    For Billing info at sales org level, an easy way is to get the information at the table level - please use transaction SE16 and table VBRK to get the relevant information
    Reward points if this helps you
    Rgds

  • Exchange Rate calculation mismatch in Sales Order Invoice and Cancelled Invoice

    Hi,
    In Sales Invoice, Exchange Rate is maintained as 7.75132
    Invoice Amount is 72000 USD. So the Amount calculated should be 558095.04.
    But in Accounting Document the Amount is posted as 558095.15 for the GL Sales Account.
    In Cancelled Sales Invoice, Amount posted is  558095.04 in GL Sales Account which is correct.
    Please help me understand why there is difference in both the Amount even when the Exchange Rate is same.
    Regards,
    Debashri Dutta

    Hi Ankur,
    Thanks for your reply.But our problem is sales order,exchange rates are defined with M type in OB08 as u have said.However when the periods are different for order entry and invoice generation we are facing the following problem.Orders are at old exchange rates and excise invoice is getting generated at current exchange rate.This is resulting in value difference between commercial invoice and excise invoice.
    Please help.
    Regards,
    Praveen

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

  • GL accounts Hits- Sales order & Invoice ( for Service Material)

    Hi Gurus,
    While i create the sales order for a service material, which GL accounts hits in the system.
    and which GL accounts hits while creating an invoice for this order?
    Cheers,
    Sumith

    when you are creating an order nothing hits the GL account and when you create a bill it does. Now there are several entries in an Invoice which hits different GL account. Which specific do youwant to know. It will also differ from company to company how they manage their FI
    Regards

  • Sales order & invoice

    Hi all,
    For my stock items say i have standard item category as TAN. The billing relevance for TAN is "A" - delivery related billing.
    Can I create a new item category ZTAN & use the billing relevance as "C".
    Now when i create the sales order - delivery - billing. Here my billing will be order related only. I create the delivery & do the PGI........
    My doubt is will it have any adverse effects........if i use order related billing instead of delivery related billing for the normal stock items........?
    With best regards,
    Niyaz.

    hello, friend.
    an example of an adverse effect on your business procedures:  it is possible that you have billed a customer for an order, and the delivery has been delayed.  the payment terms are in effect and the customer's subsequent orders have been blocked for credit, even if he has not received his first order yet!
    to do order-related invoicing for standard items really is a business decision.  you just have to realize that there are trade-offs.  i don't see any problems if you anticipate that the system will allow you to invoice even without posting goods issue.   
    do post again for feedback.
    regards.

Maybe you are looking for