To get no of invoice

hello all,
can anyone let me know how can i get total number of invoice for a particular sale order.
in VBRP its taking more time, so performance is problem.

Use VBFA table... To get invoice
DATA : BEGIN OF WA_VBFA,
VEBLN TYPE VBFA-VBELV,
VBELV TYPE VBFA-VBELV,
END OF WA_VBFA.
DATA : IT_VBFA LIKE STANDARD TABLE OF WA_VBFA WITH HEADER LINE.
SELECT VBELN VBELV FROM VBFA
INTO TABLE IT_VBFA
WHERE VBTYP_N = 'M' AND " M => invoice
VBTYP_V = 'C' AND
VBELV = '0000800044'. "  Sales order
DATA: V_LINE TYPE I.
DESCRIBE TABLE IT_VBFA LINES V_LINE.
WRITE : 'No of invoice for sales order is ' , V_LINE.
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7

Similar Messages

  • How can i get an duplicate invoice from my MacBook which I bought in an independent Apple retail store

    how can i get a duplicate invoice from my MacBook which I bought in an independent Apple retail store in poland

    Call the store & ask the sales staff to send you one if you are no longer in Poland.  If you are still there, what is stopping you from visiting the store? 

  • The pricing procedure in Sales order is not getting copied into invoice

    The pricing procedure in Sales order is not getting copied into invoice.
    I have created a document type (pricing procedure),based on the document type ,pricing procedure determination is done.
    So while creating sales order the pricing procedure is determined but when invoice is created the pricing doesnt refelect in the invoice.How to over come this problem

    Hi
    Please check the in OVKK, weather you have maintained correctly or not.Also check in the Billing document type details what is the Document pricing procedure that has been maintained.
    Regards
    Srinath

  • Buss.Area not getting transferred to invoice list

    Hi Gurus,
    hope u all r doin good outhere, i have an issue with bussiness area not getting populated or transferrred for Invoice list that are released to accounting .
    the scenario here is: in the accounting overview under the Billing Invoice(VF03) we are able to see the buss area against the customer acct line item and the GL acctline item, but when we go into the Accounting overview under Invoice List (VF23), the Buss area is not getting populated against the Customer lineitem..., we are not able to figure out what is missing...is it in the configuration...,
    we are on 4.6 , and we have an OSS note 69499 (given below) on this issue which says
    Summary
    Symptom
    Business areas are not transferred for invoice lists that are released to financial accounting.
    Additional key words
    GSBER TVTA VF21 SAPMV62S factoring discount
    Cause and prerequisites
    This was not programmed
    Solution
    A solution is only available in the standard system as of Release 3.0D.
    You can make the attached advance correction that uses a user exit.
    In this solution, the business area is copied from the sales area table (TVTA) for the sales area of the invoice list header. A business area determination on plant/division level (T134G) is not possible because the item information of the individual billing documents is no longer available in the invoice list.
    Source code corrections
    and we have contacted SAP , some one from SAP side told that the program is existing in that userexit already with our 4.6c,
    someone has suggested that in OB65 the check box is not activated against the comp code i use, but i have found that to be the check mark for the financial statements at the buss area level..will that make any diff to my issue... is it something with the FI part or SD part which do you think is incorrect ....any kind of suggestions pertaining to this issue .here would be helpful.
    some body please throw some light on it, i would be very much grateful.
    Thanks in advance
    Jay

    Hi Laxmipathi sir,
    as you said i went in the bussiness area account assignment and checked it and foound that the Sales area, distributin channel and division are assiogned to rule called 003 -Buss Area Det.from sales org/dist.channel item div.
    but there are other two.which were not assigned.
    001-buss area det.from plant/dividion(T134G)
    002-buss area det.from Sales area (TVTA).
    so do you think this is the reason it is not picking it up in the invoice list,
    i have discussed with one of the SD person here he said even though you don't assign them it shoudn't bother because the buss area is getting picked in invoice
    so could you please tell me what should i ask that person or what i have to tell them about this.
    thanks
    Jay

  • Can I get an email invoice for my autorenewal?

    Can I get an email invoice for my autorenewal?

    Hi emilynelson78,
    You can actually print out your own receipt! Please see Manage your membership and payments | Creative Cloud.
    The information that you're looking for is in the Payment & Credit Card section.
    Please let us know if you need additional help.
    Best,
    Sara

  • Getting double intercompany invoice from one STO orders

    Have you already implemented the following flows and if yes how ?
    I would like to build an intercompany STO between company A plant 1 and company B plant but with a 3rd company C responsible of the order, That means that i would like to get 2 intercompany invoice from the replenishment delivery --> One IV invoice from company A to company C and one IV invoice from company C to company B.
    I didn't find anything in standard. If someone already faced the same issue, thanks in advance for the advice.
    Regards,
    Marc

    Hi Ravi,
    My business scenario is very standard stock transfer order across two company codes.
    Only difference is that SAP Retail is in place in my R/3 system.
    Scenario:
    - A sales order is being created for end customer under a sales area and article (material) in one site (plant), say site- DC02. This site does not have stock for that material.
    - A STO PO is created with supplying site say DC01 and receiving site as DC02.
    - Site DC01 is in company code- FS01 and site - DC02 is in company code- FS02.
    - Intercompany delivery has been created for STO PO by VL10B and goods issues from site - DC01.
    -  Goods received is done against same STO PO in site - DC02.
    - Goods issued to end customer against the Sales order and later invoiced. - No error at all.
    - A intercompany invoice needs to be raised from company FS01 to FS02 for the intercompany delivery done - Here getting error.
    Please suggest, if you know that in case of SAP retail, we can create intercompany invoicing or not.
    If yes, how to do that. Standard intercompany setting can not be done as site profile is maintained by WB02, after the plant is created.
    Regards,
    Praveen

  • HT204088 How do I get a VAT Invoice?

    How do I get a VAT Invoice?

    VAT invoices are not available throught the iTunes app.
    A VAT invoice includes the tax code and information that any business needs (in the UK) in order to claim back  VAT on purchases and keep their accounts in good order. It is a legal requirement (in the UK) for all companies that charge VAT on sales, to issue reciepts or invoices with a break down of the VAT charges and their VAT number.
    For some reason Apple are reluctant to issue VAT invoices. They cannot be optained via itunes or some web page for example.
    Recently I managed to obtain VAT invoices by contacting iTunes/Mac App store customer support.
    You must provide them with your billing address (same as on your itunes/app store account) and the receipt number of your purchase (found on the receipt they send you after every online purchase).

  • Ordered Quantity does not get copied to Invoice by  DIAPI

    Hi All,
    I am stuck with an issue in Invoice creation using  DI API by code.The field Ordered Qty (DB Filed INV1.OrderedQty) does not gets copied to Invoice line from delivery lines. But while we add invoice from delivery >Copy To> AR Invoice , it gets copied to Invoice lines. This OrderedQty field is not exposed through DI API, so we cant set that field throgh code. What I do in Invoice creation code is as follows.
    SAPbobsCOM.Documents oINV;
                        oINV = (SAPbobsCOM.Documents)
                            modups.oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);
                        oINV.CardCode = oDLN.CardCode;
                        for (int i = 0; i < oDLN.Lines.Count; i++)
                            oDLN.Lines.SetCurrentLine(i);
                            string str = oDLN.Lines.ItemCode;
                            if (i != 0)
                                oINV.Lines.Add();
                            //oINV.Lines.ItemCode = oDLN.Lines.ItemCode;
                            //oINV.Lines.Quantity = oDLN.Lines.Quantity;
                            oINV.Lines.BaseType = Convert.ToInt32(SAPbobsCOM.BoObjectTypes.oDeliveryNotes);
                            oINV.Lines.BaseEntry = oDLN.DocEntry;
                            oINV.Lines.BaseLine = oDLN.Lines.LineNum;
                            taxcode = oDLN.Lines.TaxCode;
    if (DeliveryExpenseCount > 0)
                                for (int i = 0; i < DeliveryExpenseCount; i++)
                                    oDLN.Expenses.SetCurrentLine(i);
                                    if (i != 0)
                                        oINV.Expenses.Add();
                                    //oINV.Expenses.ExpenseCode=i;
                                    oINV.Expenses.ExpenseCode = oDLN.Expenses.ExpenseCode;
                                    oINV.Expenses.LineTotal = oDLN.Expenses.LineTotal;
                                    oINV.Expenses.TaxCode = oDLN.Expenses.TaxCode;
                                    oINV.Expenses.BaseDocEntry = oDLN.DocEntry;
                                    oINV.Expenses.BaseDocLine = oDLN.Expenses.LineNum;
                                    oINV.Expenses.BaseDocType = 15;
    int retVal = oINV.Add();
                        if (retVal != 0)
                            int lErrCode; string sErrCode;
                            modups.oCompany.GetLastError(out lErrCode, out sErrCode);
    Any help will be appreciated..
    Deepesh

    Hi Gordon,
    Thank you for your reply.But it didnt fix the problem.The only change of previous code with this one was oINV.Lines.Add() method is called in the last of the loop.But it wont fix issue. 
    Updated on 20/10/2011
    I have found the issue.The issue is causing if we update the resulting invoice's expense lines.
    If we copy the expense lines from delivery and update any line with an amount it works fine and resulting invoice has "Ordered Qty" in its lines. Code is
    for (int i = 0; i < DeliveryExpenseCount; i++)
                        oDoc.Expenses.SetCurrentLine(i);
                        if (i != 0)
                            oINV.Expenses.Add();
                        string s = oDoc.Expenses.TaxCode;
                        oINV.Expenses.TaxCode = oDoc.Expenses.TaxCode;
                        oINV.Expenses.BaseDocEntry = oDoc.DocEntry;
                        oINV.Expenses.BaseDocLine = oDoc.Expenses.LineNum;
                        oINV.Expenses.BaseDocType = 15;
                        oINV.Expenses.LineTotal = oDoc.Expenses.LineTotal;
                        if (radioButton2.Checked == true && i == 0)
                            oINV.Expenses.LineTotal = oDoc.Expenses.LineTotal + Convert.ToDouble(txtExp.Text);
    But if the delivery has no expense lines or we are adding a new expense line to the invoice while invoice creation from delivery , the resulting invoice does not have "Ordered Qty " in its lines..
    Code is
    if (DeliveryExpenseCount > 0)
                            oINV.Expenses.Add();
                        oINV.Expenses.ExpenseCode = 1;
                        oINV.Expenses.TaxCode = taxcode;
                        oINV.Expenses.LineTotal = Convert.ToDouble(txtExp.Text);
    If I try to add lines
    oINV.Expenses.BaseDocEntry = oDoc.DocEntry;
      oINV.Expenses.BaseDocType = 15;
    to the above code it may show either "Internal error" or " No matching records found".
    Is this a bug in DI API?

  • Query to get number of invoice created by user between from and to date

    Dear All
    I need Query to get number of invoice created by user on day and his orgainization between from and to date.
    thanks

    select count(*) from ap_invoices_all where created_by = :p_User_id
    and trunc(creation_date) between :p_from_date and :P_to_date;
    Thanks/SRK

  • From which table ,i ll get both the invoice and cleared amount ???

    Hi Friends,
    i am making a report for my sales client where finance part is also required.
    the requirement is : the sales people want know the status of the invoice generated at their end.the report shud be like if they enter the invoice no,fiscal year and coustomer they will be able to see the status of the invoice.how much pmt has received for that particular invoice,wheather it is open or fully cleared?
    From which table i can get both invoice no. and the payment/pmts rerceived against that invoce/invoices.
    plz guide.
    Regards,
    Biswa

    Hi,
    SAP Standard Report itself covers all the requirements mentioned.  With FBL5N, we get to know how much has been invoiced, paid and cleared and how much advance has been paid by customer etc., in one screen.  Apart from this we have also all signs which show, which all invoices are due, overdue and its easy to analyse as well.
    Was this requirement given by client after seeing this standard report?
    Hope this info is helpful.
    Regards,
    Venkat

  • Statistical condition types not getting displayed in invoice

    We  have configured the tax collected at source (TCS) condition types and make them as statistical in the pricing procedure. Now, the issue is when we are using them the values for these condition types are getting calculated correctly as the total value is correct but in the invoice their individual values are not getting displayed.
    In the analysis also we can see that the condition records are found but being statistical condition they should get displayed in the invoice as only the correct total value will not serve the purpose, please help
    Thanks & regards
    Puneet Agrawal

    Hi
    Keep a break-point (hard) in these program lines and debug and see that whether the condition type(KSCHL) related to Taxes is appearing here or not.
    If the condition type for taxes is coming then you can print the taxes.
    First check the related condition type for Taxes in T685 table and see here in the code.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to get that the invoice has been printed or not?

    Hi Experts,
    I have a issue in Printing Invoice. I have to make 2 copies of an invoice. One is Original and another is Duplicate. I have made that with copy windows. But the requirement is that when the original copy of a selected invoice has been printed then from the second time only the duplicate copy will be printed. How to do that in ABAP? How to get the information that the invoice has been printed or not?
    Regards,
    SURYA

    Hi Surya,
    Try the below approach, i think this is better than the previous approach and takes care of the print from "text menu" as well
    select from z table.
    if sy-subrc eq 0.
      call "SMARTFORM_COPY"
    else.
    While calling the smartform, make sure you import the "JOB_OUTPUT_INFO" parameter,
    and after you call the smartform,
    call "SMARTFORM_ORIG"
    exporting...
    Importing...
    job_output_info = w_job_output_info
    exceptions...
    If sy-subrc eq 0.
      if w_job_output_info EQ 'X'.
        update the Z table.
      else.
        do not update the z table
      endif.
    endif. 
    endif.
    Regards,
    Chen

  • Getting Error Excise Invoice already caputred in another purchase order

    Hi,
    I'm facing error while making GR. It's a Stock transfer scenario, where one plant transfers material to another plant. The supplying plant create excise invoice after 643 movement type. The receiving plant first creates GR with 103 movement type then does 105 and captures and posts the excise invoice. I get this error while doing 105.
    Can any one explain the reason. I have checked, but it is not been captured any where else..
    Regards
    Nikhil

    hi Nikhil,
    The error clearly states the the excise invoice is already been captured in some other po. Kindly check it up in either J1IEX or table J_1IEXCHDR
    prasanna

  • How to get incoming excise invoice in J1IIN

    Daer All
    Greetings!!
    Scenario: The company receives raw material from vendor and then vendor send excise invoice to company.
    The same raw material then sell to other vendor but the incoming excise invoice is used to pass on duty . with threference to that incoming excise invoice duty  pass on to this vendor to whom raw material has been sold
    Question:  How the process will be captured in SAP from MM to SD
    1) now how i will create order > delivery >billing and how i will be able to get that incoming excise invoice in j1iin ?
    2) What About Pricing Procedure?
    I have searched the forum and i have also tried on the existing solution given in forum but still could not do it
    I am still putting my effort but in need of valuable input from forum

    hi
    sales side proces
    va01-vl01n-vf01-j1iin
    j1id settings for this material and chapter id material is raw material u can assign the raw material , other wise assign finished goods, and excise duties main in customer and vendor also , in sale order process  you can maintain the excise duties in sale order, based on invoice , capture the j1iin it is for only out going invoice ,
    vendor details maintain at migo only , ofter migo  you can capture incoming excise invoice , incoming excise invoice at j1ig only,
    in j1ig u capture the  it is for only depo
    Menu Path: User menu à Indirect taxes à Procurement à Excise invoice à Incoming Excise invoice à Individual Processing à Capture/Display (J1IEX)  
    a.     Select Post Excise Invoice and Vendor in windows above the Header.
    b.    Enter Goods Receipt Document number generated in STEP 2 and press ENTER or Click on Execute   button.  
    c.     Following screen will appear as shown below.  
    Menu Path: Logistics à Materials Management à Inventory management àGoods movement à goods receipt à for purchase orderà Purchase order no. Known (MIGO)
    .     Enter the PO number, Vendors Delivery Challan Number      
    b.    Press Enter u2013 at this point of time system will copy all the relevant information from PO and a Excise Invoice tab will appear in the Header screen as shown below, select capture Excise Invoice on this tab and check the Excise group.  
    c.     Enter the Received Quantity in the Quantity tab in field Quantity & Unit of entry.
    Follow above procedure for claiming modvat for raw material.  
    d.    Enter receiving Storage Location in Where tab. Here check the stock type in which material is going to receive. If some text needs to be added regarding the goods receipt enter it in Text field.
    Follow above procedure for claiming modvat for raw material.  
    e.     Check the Excise Details related to the received material in Excise Item tab in Detail Data screen as shown above.  
    Post the Captured Vendoru2019s Excise Invoice
    Go to CIN transaction  
    Menu Path: User menu à Indirect taxes à Procurement à Excise invoice à Incoming Excise invoice à Individual Processing à Capture/Display (j1iex)  
    a.     Select Post the Excise Invoice and Goods Receipt in windows above the Header.
    b.    Enter Vendor Excise no generated above.  
    If material had directly came from different vendor, Enter vendor code in Ship from field in miscellaneous tab.
    a.     If Excise Invoice is faulty and still want to take the credit for the excise invoice, enter the rejection code.  
    b.    Check the Material Chapter Heading, Material type in Item tab in Detail Data screen.  
    c.     Check the Quantity in Quantity tab  
    d.    Check the Duty rate in Duty rate tab.  
    e.     Check duty values and Tax amount for the material in Duty value tab.  
    f.     Check the Part I entries, which are created immediately after the GR in Part I tab.

  • How to get COUNT of  Invoice No and  Sales Order No from Multiprovider

    Hello Guys,
    I have a scenario like below. I have 2 info cubes (1) Billing Item Info cube (2) Sales Order Item Infocube which stores Item level data in infocube. I created Multiprovider for these Sales Order Item Cube and Billing Item Info cube.
    Now in My Multiprovider, Invoice No and Sales Order No gets repeated no of times because one Invoice and One order will have no of Materials. I have a requirement to count Total No of Billing Document and Total No of Sales Document for a Day in the BEx Report. I was thinking to use COUNT function but if Sales Document or Billing Document gets repeated then it will count those records which i don't want. correct me if i am wrong. 
    How to get Total no of Billing Document and Total no of Sales Document from a Multiprovider where i have Item level data is stored ?
    Regards,
    Komik Shah
    Edited by: Komik Shah on Aug 20, 2011 5:33 PM

    Hi,
    Count can be achieved as per the following document. Create for Billing Doc and Sales Doc separately.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/009819ab-c96e-2910-bbb2-c85f7bdec04a
    Regards,
    Suman

  • Freight line item not getting created in Invoice

    Hi,
    We are using Inbound IDOC to create invoice with freight line items in it, The message type used is INVOIC and the standard inbound function module is IDOC_INPUT_INVOIC_MRM, The invoice which is getting created does not hold the freight line item in it. Actually we hope the indicator Goods Item/Delivery costs/Both which is present in the invoice (RM08M-XWARE_BNK) determines the creation of freight items or not. In our case the invoice is getting created with the indicator value as 1 but we hope the value 3 would be required for frieght items.
    Please let me know if the above message type and the standard function module would be able to handle the creation of frieght line items or we need to look for some other option.
    Regards,
    Prabaharan.G

    Hi Prabaharan,
    i have the same request for posting planed freight costs with the IDOC.
    Do you have a solution or workaround meantime ?
    Thanks and best regars,
    Roman Zimola

Maybe you are looking for

  • Won't start-up, can't reinstall after latest update

    I was running the latest update that included a os x combined update and a firmware update. All was going well, and then the laptop restarted with the firmware update progress screen. The computer restarted abruptly, and never started up correctly si

  • Creation of database in WbDynpro application

    Hi .... i Want to know how to use database in WebDynpro Application.is anyone have help topic related to this?any simple Tutorial?... please help me.. Thanks.

  • How to Disable cache completely

    Please suggest me a way to load changed values from Session and remove cache. I do not want to use cache. After making a change in a page, I want to load the changed page using session. I am able to see changes when I hit "Refresh" only. All the time

  • Safari Crashes 10 times a day!

    I have had serious issues with safari crashing. It literally crashes 10 times a day. I have taken it to the apple store 4 times and nothing has worked. I have had a new logic board installed, a new hard drive, and today new RAM. I have also tried to

  • Problems with X-Fi Xtreme Music and Virtual Instrume

    I am using Cakewalk's Sonar Home Studio 6?XL and MOTU Symphonic Instrument. I have some virtual instruments that are less detailed that seem to run great, but so far I can't play MOTU SI in stand alone mode without getting po ps. I can play it in Cak