Invoice from sales order

My requirement is to get invoice from vbfa table by delivery no., where vbtyp_n is M or N. But there are some deliveries which vbtyp_n is not 'N', then to get those invoices:
I went to lips table retrieve sales order and item(vgbel, vgpos) for a particular delivery.
then I went to vbrp table to get the invoice by sales order and item.
But my question is performance is not good in this way, Is there is any better way to achieve this? Your inputs please.
Thanks
Shailaja

Hi,
You are right,
Instead of using the relationship between LIPS and VBAP
LIPS-VGBEL = VBAP-VBELN and LIPS-VGPOS = VBAP-POSNR (order related)and
VBRP-VGBEL = LIPS-VBELN (delivery) VBRP-VGPOS= LIPS-POSNR and
VBRP-AUBEL = VBAP-VBELN (Order) VBRP-AUPOS= VBAP-POSNR
it is advisable to use VBFA to fetch the linked documents since it is faster.
so to get the billing doc for the sales order from VBFA
pass Preceding doc type = C and Prece doc no = Sales Order
and subsceeding doc type = M and you will get the billing doc for that sales order.
To get the delivery for sales order pass the Subsceeding doc = J to VBPA
hope this is usful
reward points if useful
regards,
ANJI

Similar Messages

  • Tax condition not copying to invoice from sales order

    Dear All
    I have created condition record fro material. In that i have mentioned tax condition types.During Sales order creation the tax condition type copying into sales order. But from sales order to invoice it is not getting copied.Kindly guide me.
    My order type is OR and my invoice type isF2.
    Shobana

    Dear Shobana
    Go to VTFL, select the combination of your billing type / delivery type and select "Item" tab on your left screen.  Now select the item category and click on blue lens on top left.
    Here see what is maintained for the field "Pricing Type".  Please maintain "B" if this is not maintained and retry.
    thanks
    G. Lakshmipathi

  • Append condition type to Invoice from sales order

    Hello,
    We have some condition types which are entered manually in sales order. When invoice is created, we want to copy the data of these condition types to the invoice.
    Pricing procedures are different for sales order and invoice.
    So how can we achieve this functionality? 1) copying requirement 2) BADI or 3) any formula.
    Please advice.
    Rgds,
    Anand

    Hi Anand,
    this is done through copy control.Tcode-VTFA [sales order to invoice].Here u maintain ur source document i.e ur order type, destination i.e invoice type.give ur item category and then set pricing type as - C [copy manual pricing and redetermine tax] .all the data will be copied from sales order to invoice irrespective of ur different pricing procedures.
    Assign points if helpfull.
    Regards
    sharad
    Edited by: Sharad Kaliya on Aug 1, 2008 8:22 AM

  • Condition type - Freight value is copied into invoice from sales order

    Hi All,
    I have a Issue while copying freight value  to Invoice.
    I have created Freight condition type - XYZ where i have maintained "Group condition, Header condition & Item condition" in the definition of the condition type.
    I have placed this condition type in Pricing Procedure (Ex: ABCD) and also in Delivery Pricing Procedure (PQRS) - Checked "Manual check box".
    When i place this manual condition type in Delivery --> conditions tab(Item level), then it is copying to Invoice. However when I am placing this condition in Sales Order it is not copying into Invoice???
    I have maintained copying control between delivery document and Billing document and I have maintained "Price Source" as E - Delivery/Order.
    My requirement is when I am maintaining Freight value in delivery, then it has to consider the Delivery Freight..If freight is not maintained in Delivery then it has to copy from Sales Order?? Is it possible ?
    Please help me in this regard.
    Thanks in Advance.

    Hi,
    Thank you very much for your response.
    If i used price source as "D" then other conditions like price & tax are not copied sales order. Freight value is copying from delivery. I want system has to consider the sales order in case of freight value Zero in delivery.

  • Error while creating AR Invoice from Sales order

    Hi All,
    I have created a sales order ,when i try to create AR Invoice through Copy To option i am getting an error
    Business partner of copied down payment document must be the same as business partner of target document
    Please help me to solve this issue
    Thanks in Advance
    Regards
    Arun

    Hi Arun,
    Check if you have Down payment AR Invoice created from this Sales order.
    Thanks,
    Gordon

  • Creation of Invoice from Sales Order

    Hello Gurus
    I have to create Invoice against the Sales Order.  I do not want the delivery document. I just want to save the Sales Order and raise the Invoice against the Sales Order.  What are the necessary configuration steps to achieve this?
    I really appreciate any kind of help.
    Thanks
    Rajesh

    Hi Rajesh,
    Order Related billing is when we bill directly as per the order no delivery needed or involved
    Eg; Service's items here there is no delivery involved hence
    after order directly billing is done
    In order related billing, the Invoice will be generated with reference to the order. Example... For service relevent scenario we will be doing the order related billing because there is no physical goods movement happens. (doing some repair).
    Try with below :
    In vov7 for the item cat---billng relevance maintain order related billing. In vovg against the order type mention the order related billing type. Maintain the copy controls.
    Please Reward If Really Helpful,
    Thanks and Regards,
    Sateesh.Kandula

  • Why paymnent term changed in invoice from Sales order

    Hi Friends,
    we maintained the payment term in customer master..it was carried over to SO,,Then suddendly the payment term was changed in invoice..check the change history..seems no change in SO..
    Would you help if you ever experience the same thing..
    Thanks in advance
    L

    Did you check the payment term assigned at the sales order line item level? Also check whether any user-exit in billing document causing this.
    Regards,

  • To Remove Discount Condition Type In Invoice from Sales Order

    Hi All,
    For my sales order I have the net price and discount but when I create invoice, I would like the discount to be removed automatically. May I know how can I configure that other than remove the item line manually.
    Kindly advise.
    Thank you!
    Regards,
    Yvonne

    Hello,
    Do you want to delete Discount Condition in Invoice & its effect should not happen on Invoice Amount calculation?
    If the above is your requirement, then have two seperate Pricing Procedures for Sales Order & Invoice.
    Both these Pricing Procedures will have same Condition types & other settings except the Discount Condition will not be present in the Invoice Pricing Procedure.
    Define a new DoPP for Invoice Document Type & maintain Pricing Procedure determination (Sales Area + CoPP + DoPP).
    Thus while creating Invoice, the Discount condition & its value will not appear in Invoice.
    Hope this helps...
    Thanks,
    Jignesh Mehta

  • Item Quantity not Copied exactly from sales order while creating Invoice

    Hi Experts,
    at
    My Functional Guy encountered a strange problem while creating Invoice from Sales Document.Actually there are 6 line material items in the order and the sixth line item is having a quantity of 8EA While trying to generate an invoice from sales order the sixth line item billed quantity gets converted to 70EA automatically  in the invoice .This only happens with the sixth line item and the remaining all are fine.I have checked OSS Notes and could not get a.ny fruitful results.Please let me know if you have any suggestions.I also checked with the functional guy whether its the problem due to copy controls.But everything is fine.Please help
    Best regards,
    Lakshman

    Are your invoices combing multiple delivery line items based upon copy control/invoice split/combine configuration settings?
    If your order was for 8 and you delivered 8, and there is no conversion for units, and the only quantity being included is for a single order line and delivery line, then there must be an error in customer-written exit or enhancement code that you have yet to find.  What do you see in debug when the data for this line is being collected and set?
    Edited by: DaveL on Sep 6, 2011 4:19 PM

  • Price in invoice is not getting copied from Sales order

    Hi,
    In my case when i create a sales order...my VPRS condition is taking price 4.020,24 (@335.02/PC). When i create a Invoice it is coming with 4.020,22 value and .02 is coming in different condition type ZDIF ( Rounding diff) automatically. When i check my PGI accounting document there also price 4.020,22  hits the G/L account.
    Now able to understand why .02 value is going in the ZDIF condition ?
    Need help
    Regards
    Nitin

    Hi Nitin,
    Rounding condition is coming in picture because there will some difference in PR00 and VPRS.
    Generally VPRS is a statistical condition type and it is just used for viewing purpose not a part of calculation.
    So you can go to V/08, select your pricing procedure and then control data.
    In that find out VPRS condition type and click on statistical, then it wont come in calculation.
    If you want that this should be copied then you have to made changes in copy control.
    Go to VTFA if you are making billing document with reference to order document.
    Go to VTFL if you are making billing document with reference to delivery document.
    Select your combination of billing document and delivery document/order document.
    Then go to item level and select you item category and then click on detail
    In that you will find pricing type just change that pricing type to D.
    Now it will copy pricing as it is from sales order.
    Hope so it will solve your problem
    Regards
    Raj.

  • Sales Invoice Linked from Sales Order

    Hello Experts!!
    I want to restrict users to enter Sales Invoice Directly. We are using Sales Order But Every One Can Post Invoice Directly.
    Please Guide how to restrict them
    Thanks,
    Vikram

    Hi Vikram,
    You can restrict Sales Invoice by Putting Transaction Notification.
    Please check below Two Transaction Notification. One Transaction Notification for Sales Invoice must be Copied from Sales Order and Second Transaction Notification for Authorized User Can Create Sales Invoice.
    -----------NO STAND ALONE A/R INVOICE MUST BE CREATED IN SYSTEM
    IF @transaction_type IN ('A','U') AND @object_type = '13'and @error = 0
    BEGIN
    IF EXISTS (SELECT T0.DocEntry  FROM OINV T0 
    INNER JOIN INV1 T1 ON T0.[DocEntry] = T1.[DocEntry]
    WHERE T1.[BaseEntry] <> 17
    AND T0.DocEntry = @list_of_cols_val_tab_del)
    BEGIN
    SELECT @Error = 10, @error_message = 'BK - A/R Invoice Document Must be Copied From Sales Order'
    END
    END
    Above Transaction Notification will Block Creation of Sales Invoice if that Invoice is not Created by Sales Order.
    -----------A/R INVOICE MUST BE CREATED BY AUTHORIZED PERSON
    IF @transaction_type IN ('A','U') AND @object_type = '13'and @error = 0
    BEGIN
    IF EXISTS (SELECT T0.DocEntry  FROM OINV T0 
    INNER JOIN INV1 T1 ON T0.[DocEntry] = T1.[DocEntry]
    INNER JOIN OUSR T2 ON T0.[UserSign] = T2.[USERID]
    WHERE T0.[UserSign] IN ('1','2')
    AND T0.DocEntry = @list_of_cols_val_tab_del)
    BEGIN
    SELECT @Error = 11, @error_message = 'BK - You are not Authorized Person to Create A/R Invoice Document'
    END
    END
    Second Transaction Notification is for Authorized Person can Create Sales Invoice So in User Sign Please Put User Sign of those Users who are not Authorized to Create Sales Invoice.
    Hope this helps
    Regards:::::
    Atul Chakraborty

  • Sales Office copying from Sales order to Invoice ( order related billing)

    Hi
    In sales invoice (vf01) is there any field for Sales Office.
    In order related billing . how we can copy sales office from sales order to Invoice.
    Regards\Adnan

    Hi Adnan,
    In Invoice you can find Salees office filed In the Item data >in the Item Detail tab>under Sales Order Data here you can get the sales office which you enter in the sales order.
    I hope it will help you,
    Regards,
    Murali.

  • Copy Texts from sales Orders to invoices

    Hi,
    someone can help me?
    the additional texts of old invoices (related to sales order #1) are changed when I change the additional texts of the order where they come from (sales order #1)
    I don't want this changes in the old invoices created before changing the additional texts in sales order.
    Thanks,
    Antonio.

    Hi Ravi,
    First at all thanks for answering.
    According to your answer I understand that every time I modified the sales order I'd have to launch a program to maintain the texts in the old invoices, isn't it?
    Thanks again!
    Antonio.

  • Adding binlocation items from sales order to sales invoice through DI API

    Hi
    I  want to add items from sales order to sales invoice.
    when i am allocated bin locations for the item sales invoice is not adding
    is there any way to update BIN Location Alocation-Issue qty through DI API
    please help me....
    regard,
    LakkshmiKantth

    Hi Lakshmi,
    check this http://scn.sap.com/message/14740146#14740146
    REgards
    edy

  • Rounding Off Value is not copying from Sales Order to Invoice

    Hi Experts,
    In Pricing Procedure i maintained DIFF- Rounding Off Condition type with the following Combinations.
    Print:X
    Requirement:13
    Cal Type: 16
    Bas Type: 4
    When i create sales order the system is calculating Rounding Off after saving the sales order.The requirement is that it should shows the rounding off value before saving the sales order.Secondly when i make invoice the rounding off value is not copying from the saved sales order.After i save the invoice in VF02 the rounding off value is coming .
    Regards
    Subhasish

    Cond type DIFF has cond catgory L Generally new when copying. So the value from sales order will not be copied, it will be redetermined in invoice.
    Also rounding off cond is to round the total value which can change in invoice based on the invoice qty.

Maybe you are looking for

  • Save keynote 09 file as 08 file. is this possible?

    I'm getting ready to present at a conference tomorrow morning using a file I created in keynote 09. the av guy's computer has keynote 08 installed. is there some way to save my file to work on his laptop? hoping to avoid using two computers. Roger

  • Query on synchronization

    Hi, I have a query on synchronization. When an object is accessed by two or more threads simultaneously, we use the synchronize keyword to prevent two threads simultaneos access. So on which this lock is obtained either it is on the object or the syn

  • Dynamic Select List based on TextField data

    Hi, I like to dynamically display the select list based on the value in the textfield, the data in the textfield is of character type. Thanks

  • Excise Price Capture at MIRO level

    Hi friends, My client Senario create PO , vendor suplies  material based on Delivery dates. Before del.Date vendor suplies mat they gave Bonus on PO document Price. for this i created one Condition Type . and doing process GR and Excise Capture first

  • Text Frame Auto-Size bug? Right margin changes?

    Here is a rounded textbox with an inset of 4, vertical align center. I'm turning Auto-Size on, so the right edge grows as the text in the box gets longer. Width only, adjust only the right edge (that alignment UI is messed up BTW if any Adobe UX peep