Approval of Sales Order vs Sales Quotation

Hi experts, How can I fire an approval when total of Sales Order is different from total of quotation base? I retrieved the total from quotation on a sales order user field , but I can't fire the approval.
Thanks,

Hi Rolando Arzamendia.
Try this User Query for Sales Order vs Sales Quotation Approval.
SELECT Distinct 'True'  FROM
ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN oqut T2 ON T1.BaseDocNum = T2.DocNum
WHERE T2.DocTotal = $[ORDR.DocTotal]
Thanks,
Madhan.

Similar Messages

  • Approval for Sales Quotation, Invoice & Delivery Level

    Hi ,
    In my Business Scenario the client want to approval strategy in different level
    1. Sales Quotation Approval from HOD.
    2. In  Delivery Level they want 3 types Approval like Sales HOD, Customer & Quality HOD.
    3. In Invoice Level they required FI HIOD approval
    please guide me how to Configure in the SAP step by step becuase i m new to this configuration.

    Please search the forum with the text "Sale Order Release strategy".  You can see lot of threads discussed on this topic.  Take the inputs from there.  Adopt the same logic to quotation and delivery also.
    thanks
    G. Lakshmipathi

  • How can we reject an already approved sales quotation and sales order

    Hi,
    Could anyone please tell me how can we reject an already approved sales quotation and sales order.
    Thanks and Regards
    Mahavir

    Hi,
    in the document flow : i am finding documents which are given below :
    Serv. notif.      00015773                                                     
    Qt For NewConnection 20022016  23.04.08 Completed  
    Order New Connection  22460       23.04.08 Open                 
    Z New Connection  90022430   23.04.08 FI doc. not Required 
    Cancel. Invoice (S1) 90023731  19.07.08 FI doc. not required 
    I have run VF11 for document no. 90023731 .
    But when i was running VL09 i just gave the shipping point and execute the transaction.
    Then i did not find any document for that selection.
    Please guide .
    Thanks and Regards

  • Copy closed or cancelled sales quotation to sales order

    2007A SP0 PL49
    It is possible to copy a closed/cancelled sales quotation to a sales order. It is also possible to copy to sales order several times. What is the reason for this? Has this always been the way it works?

    Yes it's possible and been around since we started with SAP 2005A. We use sales quotes extensively and treat them like standing orders.  We have customers that order the same items over and over daily/weekly, and rather than have to key in those sales orders over and over we use the document generation wizard to copy sales quotes to sales orders based on UDF we have added.
    If you want closed sales quotes to be blocked from adding to a subsequent document I am sure this can be done with stored procedures.

  • In the Production Order, Sales Quotation is displayed not the Sales Order

    Hello to All,
    I need a kind help from you.
    My scenario is as follows
    There is a Configurable Material (Finished Product)
    Sales quotation (VA21/2/3) were made for this material.
    Sales Order (VA01/2/3) with reference from the Sales Quotation were made for this same material.
    Now when I run the MRP (MD02) for this material, Planned Orders were created.
    Planned orders were converted to the Production Order.
    In the Production Order (say in Display mode), under the 'General' tab, there is a segment called 'Sales order'. In this segment, the sales order is being displayed if the Production Order is created for a sales order (MTO scenario).
    But, in my case, the Sales Quotation number is being displayed instead of the Sales order.
    My Issue which need your answers:
    Is it a standard SAP scenario?? I mean, if the production order is created for a sales order and again if the sales order is created earlier with reference to a sales quotation, then in the production order, the Sales quotation is displayed. Is it a standard?? Or it is showing wrongly? I mean, is it like that, always the sales order should be displayed in the Production order and not the sales quotation??
    Please suggest so that I can overcome this problem, if at all it is a problem.
    Some More Inputs (For your analysis/research):
    1. After the MRP run of the material the Planned Order is created. I have checked the planned order, and found tha the assignment of sales document (in this case Quotation) is done in the Planned order itslef. It is visible wthin the "Assigmnet" tab of the Planned Order.
    2. For the analysis purpose, I created one stand-alone Sales Order for the same material. I mean, without reference from any Sales Quotation. Then, when I run the MRP (md02), the Planned Order and then production order were created normally, with reference to the Sales order. This just for your kind information.
    3. I have checked the pegged requirement of the Production order in the MD04. It is showing the Sales order itself. But, if I see the production order (CO02/O03), it shows sales quotation.
    User Requirement:
    Evenif, the sales order is created with reference to a Sales Quotation, after MRP run, in the Planned and thereby subsequent production order, the Sales Order should display and not the Sales quotation.
    Please suggest.
    Thanks and Regards,
    Supriyo

    Hi
    Since your scenario is configurable material,  the system takes the reference of sales quotation only. Because the in case of configurable materials the sales quotation is the base and based on the sales quotation the sales order is created and subsequent production order.
    This is std SAP and for configurable materials the sales quotation is deciding factor
    Krishna

  • Error V2 005 when creating a sales order from a quotation

    I hope someone can come up with some ideas to help me with this error. My client is creating a sales order from a quotation and immediately on the first screen the error V2 005 pops up. The quotation was not created with reference to any previous document, and at this point not sold-to party has even been copied through to the sales order.
    To make this error more interesting, this is only happening with 1 particular customer.
    I have checked: credit management, customer hierarchies, material determination, customer info records and none of these are in use.
    Can someone please come up with some ideas?
    Thanks and regards
    Kikas

    Dear Sai,
    Thanks for this note I am going to try it, however I have some concerns because the issue is only happening in production, with 1 custoemr only, and QA is an updated copy of production and I could not replicate the error in QA using the same customer....
    If anyone has any other ideas please I would appreciate it
    thanks
    Kikas

  • Copy data directly from service order to sales quotation

    I know the process to create the sales quotation from service order in customer interaction center but my query is that is there a way that data should be directly copied from the service notification to the service order to the quotation because I have entered the data completly in the notification .Entring the data again and again make mistakes .
    THANKS
    AVANISH GULATEE
    M-08447307358

    look for the BADIS that get triggered when you save the notification. if you find any BADI, then you can create new implementation for it and you can write the code. you can use CRM_ORDER_MAINTAIN to create service order inside that new implementation.

  • Referencing Sales Order to a Quotation via BAPI

    Dear all,
    I encouter problems to reference a Sales Order to a Quotation when I try to use the SAP BAPI 'BAPI_SALESORDER_CREATEFROMDAT2'. Even though later when I managed to create the referencing on both the Sales Order Header and Sales Order Line to the Quotation, the system still doesn't closed the Quotation status as Completed. This has caused the Quotation remains active and open for other Sales Order for referencing. Any ideas?
    Thank you and regards;
    -ah tiang-

    Hi!
    According to OSS note 370988 it seems you can't create sales order properly with reference to quotation using BAPI_SALESORDER_CREATEFROMDAT2 in straight-forward way:
    Symptom
    This note describes the problems of the 'Create with reference' function when using BAPIs to create sales documents.
    If you are working online, you can use this function module to create a sales document with reference to an existing sales document or a billing document (for example, a debit or credit memo request) according to fixed rules. The rules for transferring information from the source document to the target document are defined in the copying control on header and item level. The creation with reference permits an item selection.
    When you use BAPIs in SD, a function of this type is not fully available. A reference is only possible for a quantity contract, so that the target quantity of the contract can be reduced by the order quantity of the sales document. Furthermore, the document flow is also updated.
    As an alternative to 'Create with reference' in Transaction VA01, two variants are provided for solving the 'Create with reference' problem in the BAPI.
    1. Create a '1:1 ' - that is, a document copy of a sales document (customer quotation, order) with 'BAPI_SALESDOCUMENT_COPY'. At this point, you cannot create the 1:1 copy of either a billing document or a delivery.
    2. Create a sales document that refers to an existing document with 'BAPISDORDER_GETDETAILEDLIST' and 'BAPI_SALESORDER_CREATEFROMDAT2'.
    Reason and Prerequisites
    As of yet, no method exists for creating a sales document that refers to an existing document.
    Solution
    For solution No. 1
    1. Create the documents using the BAPI_SALESDOCUMENT_COPY function module. However, this only permits a 1:1 copy without factoring out individual items.
    2. After you have created the document copy, you can use a change BAPI to edit this copy.
    For solution No. 2
    1. Collect the data for the reference document (for example a customer quotation) with the 'BAPISDORDER_GETDETAILEDLIST' function module. In the example code, focus exclusively on the partners, items, schedule lines and conditions.
    2. Prepare the Data. Execute the 'copying control' manually. This way, you decide which values are to be transferred.
    3. Create the sales document using the 'BAPI_SALESORDER_CREATEFROMDAT2' function module by transferring the prepared data.
    4. Finally, you must remove a COMMIT WORK so that the sales document can be written into the database.
    An example of solution 2 is attached as a text file. You are allowed to select items and quantities for example, if you use input parameters. If there are no entries, then transfer 1:1 from the reference document. When you enter the 'condition type' parameter, you can determine whether conditions are copied or recalculated ('G' for transferring from the preceding document; 'B' or ' ' for re-determining, and 'C' for re-determining with transfer of the manual elements).
    Hope it helps.
    And welcome here on SDN!
    Regards,
    Maxim.

  • How to create a Sales order from multiple quotations?

    Hi All,
    Please tell me how to create one sales order from multiple quotations?
    Regards,
    Maddy

    Hello Maddy,
    To create the sales order from multiple quotation, you should put the value "F - Only at item level: Always with selection option" under Quotation determination in your sales transaction type.
    It will give you a pop-up to choose your quotations item while creating the sales order.
    Some per-requisites are there:
    1. Copy control should be maintained between your quotation and sales order.
    2. Quotation should be error free and should have the status "Released"
    3. Sold to party and Organization should be same in both transaction.
    For more information you can check the below link:
    Processing Quotations - Sales Transactions - SAP Library
    Best Regards,
    Dinesh

  • Sales Quotation to Sales Order copy to  creates  Duplicate values.

    Hello,
    I added the  2 columns in Sales Quotation (freight Charges) form  and (inserted/updated)  the  amount.   My problem is when i use the  COPY TO    to  Sales Order ,  duplicate Columns are  creating in  Sales order(freight Charges ) Form.   I  inserted  in  QUT3 Table.
    Thanks,
    Y.
    Edited by: Yughandar on Nov 1, 2011 3:24 AM

    I add the freight items( Handling charges)  in  Freight form in administration.  And   it is  reflected in  Freight charges form in  Sales Quotation.  Using code i  inserted  the values in QUT3 Tabel.   And  when i  use    COPY TO  to  sales order  ,  everything copying to  Sales order but  duplicate  (Handling charges)  Row is  adding in Freight charges form . Means  2 Handling charges rows are displaying..

  • Copying valid until date from sales quotation to sales order

    Dear all,
    is it possible to copy the Valid Until Date of a sales quotation to the Delivery Date of a Sales Order, when I use the "Copy To Sales Order" button of a sales quotation?
    Is there a way to do this?
    Can someone help me, please?
    Regards
       Emanuele
    Edited by: Emanuele Croci on Oct 19, 2009 11:49 AM

    The problem is that the FS will not fire using the Copy To button without any data changing.
    (I would consider it an error, but it works that way.)
    If you use the next FS, connected to the Remarks field, you can use it on the order with the Copy From button, or manually activated after a Copy To.
    declare @c nvarchar(254)
    declare @p int
    set @c=$[$16.1]
    set @p=charindex('Quotations',@c)
    set @c=substring(@c,@p+10,20)
    set @p=charindex('.',@c)
    Select OQUT.DocDueDate
    From OQUT
    Where OQUT.DocNum=cast(substring(@c,1,@p-1) as int)

  • All sales orders which have sales quotations

    Hi, I am new to SAP and would appreciate help on this query.
    I want docnum for all sales order and also docnum of quotation of those sales orders if those sales orders have any sales quotations. basically only those quotation should show which have sales orders and all sales orders should show even if they have quotations or not. I wanted to pull sales employee name also associated with the sales order.
    This if my first attempt to ask a question on the forum, and I would really appreciate help on this.

    Hi........
    Warm welcome to SAP Business One Forum.....
    Please try this........
    Select T0.DocNum 'Sales Order No.', T0.DocDate 'Sales Order Date',
    T3.DocNum 'Sales Quot. No.', T3.DocDate 'Sales Quot. Date'
    From ORDR T0 Inner Join RDR1 T1 On T0.DocEntry=T1.DocEntry
    Left Join QUT1 T2 On T1.BaseEntry=T2.DocEntry LEFT JOIN
    OQUT T3 On T2.DocEntry=T3.DocEntry
    Hope this will help you........
    Regards,
    Rahul

  • Capture Docnum of Sale quotation on Sales order

    Dear all,
    iam copying sales quotaion to sales order.
    I want to capture copied quotation docnum on sales order.
    I can see "Based On Sales Quotations Docnum." on remarks field bt i want only Docnum.
    Plz give some idea...

    Hi...........
    You can have simple FMS for getting the Document No. of base document.......
    Please try following FMS...........
    Select T0.DocNum from OQUT T0 Inner Join QUT1 T1 On T0.DocEntry=T1.DocEntry
    Where T0.DocEntry=$[RDR1.BaseEntry.0]
    Apply above FMS in Remark field of Sales Order once you copy simply press Shift+F2
    Regards,
    Rahul

  • Sales Quotation Pricing not Copying to Sales Order

    Hi,
    We are running SBO2007 PL42 and we have a problem where if we enter a discount percentage or a price other than default on a sales quotation, when we copy it to a sales order, the pricing does not copy, it reverts to the business partner's default price.
    How can we fix this?
    Thanks,
    Michael
    Edited by: Michael Boucher on Jan 19, 2009 12:19 AM

    The FMS looks up pricing, see below.
    It is set to refresh when exiting the item number column.
    Thanks.
    SELECT     CASE discount1 WHEN 0 THEN CASE FatherDisc1 WHEN 0 THEN CASE disc2 WHEN 0 THEN CASE fatherdisc2 WHEN 0 THEN CASE disc3 WHEN 0 THEN
                           CASE fatherdisc3 WHEN 0 THEN CASE disc4 WHEN 0 THEN convert(varchar(10), fatherdisc4) ELSE convert(varchar(10), disc4) END ELSE convert(varchar(10), fatherdisc3) END ELSE convert(varchar(10), disc3) END ELSE convert(varchar(10), fatherdisc2) END
                           ELSE convert(varchar(10), disc2) END ELSE convert(varchar(10), fatherdisc1) END ELSE convert(varchar(10), discount1) END
    FROM         (SELECT     ISNULL
                                                      ((SELECT     dbo.OSPP.Discount AS Discount
                                                          FROM         dbo.OCRD LEFT OUTER JOIN
                                                                                dbo.OSPP ON dbo.OCRD.CardCode = dbo.OSPP.CardCode
                                                          WHERE     (dbo.OCRD.CardCode = $[$4.0]) AND (dbo.OSPP.ItemCode = $[$38.1])), 0) AS Discount1, ISNULL
                                                      ((SELECT     dbo.OSPP.Discount
                                                          FROM         dbo.OSPP RIGHT OUTER JOIN
                                                                                dbo.OCRD ON dbo.OSPP.CardCode = dbo.OCRD.FatherCard
                                                          WHERE     (dbo.OCRD.CardCode = $[$4.0]) AND (dbo.OSPP.ItemCode = $[$38.1])), 0) AS FatherDisc1, ISNULL
                                                      ((SELECT     dbo.OSPG.Discount
                                                          FROM         dbo.OCRD INNER JOIN
                                                                                dbo.OSPG ON dbo.OCRD.CardCode = dbo.OSPG.CardCode INNER JOIN
                                                                                dbo.OITM ON dbo.OSPG.ObjKey = dbo.OITM.ItmsGrpCod
                                                          WHERE     (dbo.OCRD.CardCode = $[$4.0]) AND (dbo.OITM.ItemCode = $[$38.1])), 0) AS Disc2, ISNULL
                                                      ((SELECT     dbo.OSPG.Discount
                                                          FROM         dbo.OITM INNER JOIN
                                                                                dbo.OSPG ON dbo.OITM.ItmsGrpCod = dbo.OSPG.ObjKey INNER JOIN
                                                                                dbo.OCRD ON dbo.OSPG.CardCode = dbo.OCRD.FatherCard
                                                          WHERE     (dbo.OCRD.CardCode = $[$4.0]) AND (dbo.OITM.ItemCode = $[$38.1])), 0) AS FatherDisc2, Discount AS Disc3,
                                                  ISNULL
                                                      ((SELECT     OCRD_1.Discount
                                                          FROM         dbo.OCRD INNER JOIN
                                                                                dbo.OCRD OCRD_1 ON dbo.OCRD.FatherCard = OCRD_1.CardCode
                                                          WHERE     (dbo.OCRD.CardCode = $[$4.0])), 0) AS FatherDisc3, ISNULL
                                                      ((SELECT     dbo.[@BP_DISC_GRP].U_Disc
                                                          FROM         dbo.OCRD LEFT OUTER JOIN
                                                                                dbo.[@BP_Disc_Grp] ON dbo.OCRD.GroupCode = dbo.[@BP_Disc_Grp].U_IDGrp
                                                          WHERE     (dbo.OCRD.CardCode = $[$4.0])), 0) AS Disc4, ISNULL
                                                      ((SELECT     dbo.[@BP_Disc_Grp].U_Disc
                                                          FROM         dbo.OCRD LEFT OUTER JOIN
                                                                                dbo.OCRD OCRD_1 ON dbo.OCRD.FatherCard = OCRD_1.CardCode LEFT OUTER JOIN
                                                                                dbo.[@BP_Disc_Grp] ON OCRD_1.GroupCode = dbo.[@BP_Disc_Grp].U_IDGrp
                                                          WHERE     (dbo.OCRD.CardCode = $[$4.0])), 0) AS FatherDisc4
                           FROM          dbo.OCRD
                           WHERE      (CardCode = $[$4.0])) Discounts

  • Create sales order from multiple quotation

    Hi All,
    How we can create sales order from multiple quotation what is transaction code for this.
    Ahmed

    Hi Ahmed,
    There are two options.
    1. For creating Sales Order with ref to too many Quotations:
    Go to T. Code VA26 and enter the Doc Date or Quotation Valid to Date and Sold to party, Quotation Type to get all the outstanding Quotations for that particular Sold to Party. Then Select the required quotations and then select Follow-up actions button to create Single Sales Order.
    2. For less number of Quotations:
    You can simply go by referring each quotation by placing the cursor in alternate line item in sales order by selecting "Create with ref" button.
    Hope this will solve your problem.
    Ravi.

Maybe you are looking for

  • Adobe reader cannot extract embedded font after pdf sent via outlook

    We have some pdf files that open fine in Adobe Reader 9.1.3.  Once we send them via e-mail (we use Outlook 2003), they will not open properly with the error message: "Cannot extract the embedded font 'TWDWSP+TradeGothic-Light.  Some characters may no

  • Binary tree - a spesific node's height !

    hello ! im looking for a method to deterine a certain node's hight in a binary tree (that is its distance from the root ) please enlighten me on how to do this if you can thank you

  • Print Preview Corrupted

    Hi guys. Need your help. We have an issue regarding print preview. I'm trying to print Korean characters and in the print preview it's garbled. But in the print out itself it show perfectly. How to solve this? We already have the correct device type

  • Can macbook pro 15 in i7 2.2 GHz support 16GB ram

    Can macbook pro 15 inch i7 2.2 GHz support 16GB ram?

  • Help setting up sent mailbox both on my mac and on the server

    First things first - I have an exchange account and use Mail.app. The sent folder is set to store on server. That part works fine. What I want to be able to do is have subfolders under Sent mail the same way I have under trash and junk - options for