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.

Similar Messages

  • 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

  • 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

  • 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

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

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

  • Query for details of  Sale order , Invoice and COGS

    I Need the report cointing following based on month & Business partner
    Sale order, Sale Amount, Due date, Invoice Amount, Last Invoice date, COGS amount

    Hi Anantha,
    Please check below link and modify according to your requirement.
    Sales Order Query for  in SAP B1
    Query - Sales Orders linked to Deliveries
    My Top SQL Queries for SAP Business One
    Hope this helps
    Regards::::
    Atul Chakraborty

  • 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

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

  • Sales Order + Activity query

    Hi,
    I set up the following query in one company:
    SELECT T0.DocNum, T1.ClgCode, T3.U_NAME, T2.name, T1.endDate, T1.Priority, T0.CardCode, T0.CardName, T0.NumAtCard, T0.DocDate, T0.DocTotal
    FROM ORDR T0 LEFT OUTER JOIN OCLG T1 ON T0.DocNum = T1.DocNum LEFT OUTER JOIN OCLA T2 ON T1.status = T2.statusID LEFT OUTER JOIN OUSR T3 ON T1.AttendUser = T3.INTERNAL_K
    WHERE T0.DocStatus = 'O'
    When I replicate it in another company, I get the following error:
    SQL Server Native Client 10.0|| SQL Server||  Conversion failed when converting the nvarchar value 'STBs-EN-0002' to data type int. 'Received Alerts' (OAIB)
    The STBs value indicated is an Item Code/IMD record which isn't even referred to in the query so not sure why it's getting picked up and/or causing an error.
    When I separate the two parts of the query - one query on just open sales orders, another on activities - they both work. It seems to be with the linking of ORDR to the Activities tables (if I try just ORDR and OCLG I get the same error above).
    Any assistance on figuring out how to fix the query would be much appreciated,
    Heather

    Hi Heather,
    Try:
    SELECT T0.DocNum, T1.ClgCode, T3.U_NAME, T2.name, T1.endDate, T1.Priority,
    T0.CardCode, T0.CardName, T0.NumAtCard, T0.DocDate, T0.DocTotal
    FROM ORDR T0
    LEFT JOIN OCLG T1 ON T0.DocNum = T1.DocNum AND T1.DocType = '17'
    LEFT JOIN OCLA T2 ON T1.status = T2.statusID
    LEFT JOIN OUSR T3 ON T1.AttendUser = T3.INTERNAL_K
    WHERE T0.DocStatus = 'O'
    Thanks,
    Gordon

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

Maybe you are looking for

  • Why Is The Tool So Lame with AVIs

    Hi, I am using CS4 on XP. I imported an avi file from my Casio Elixim camera. I moved or dragged the avi around the time line a little, deciding where I wanted it. 1) The clip won't play through it's entirety. For some reason CS4 won't play the last

  • Anyone else not able to log in?

    Can't seem to login to my iTunes account, which keeps me from finishing the download of the movie I was renting. Grrrrrr! Anyone else having trouble authenticating? I'm getting a "network connection timed out" error, which makes no sense since I'm ob

  • How to use position dynamically as a agent

    can any one help me in finding how to pass the position to the container from the business object. i have actually copied BUS2013 and want to pass the position from the BOR to WF container. what should be the type of the container and should the agen

  • Acrobat XI - Forms Creation

    Hello, Adobe Forum Managers... I watched a video on your site recently that showed the ease of producing forms in the latest version of Acrobat Pro.  Will this be taking the place of that function that was debuted in InDesign CS6?  I'd heard that InD

  • Why do I only see grayscale values when I add color from color picker? This happens occasionally, but I don't know what triggers it.

    Why do I only see grayscale values when I add color from color picker? This happens occasionally, but I don't know what triggers it.