Storeprocedure for sale order without sale quotation

hi,
i want sp where without creating SQ, SO WILL NOT ADD

Hi ,
Please try this ,
create TRIGGER [dbo].[BaseEntry] ON [dbo].[RDR1]
for Insert
AS DECLARE
    @BaseEntry nvarchar(max) 
BEGIN
     SET NOCOUNT ON;
    SELECT @BaseEntry =isnull(BaseEntry,'') FROM INSERTED
    if isnull(@BaseEntry,'') =''   begin
       RaisError('Please Raise Sales Quotation First.',16,10)
       Rollback transaction
    end
END
Thanks
Lloyd

Similar Messages

  • Process order required for each sales order without mrp run

    Hi, it is mto scenario. wants system to create a process order for each sales order without running mrp. please advise is it possible? if possible please guide what settings need to be done. Thabk you.

    HI
    You can create production order with reference  to sales order using t code CO08.
    Check and revert
    Regards
    Anupam Sharma

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

  • Sale Order without Division

    Hi,
    I have an issue in prodution system, there is a sales order created in 2008 without division (I dont know how the system allowed), this sale order is created with reference to a contract, and the contrct is having division. And now users want to close the sale order. When i am trying to open sale order in VA02 / VA03, it is giving error mesage " Sales area 1000 10 is not defined". Now I am unable to open the order.
    Pls anybody suggest me how to close this order??
    How system will allow to create a sale order without delivery??
    Regards,
    Srikanth

    Hi,
    I can see a way by which this could have happened.
    Initially there was a sales area called 1000/10/00. For tihs sales area, some transactions were created. After sometime, by mistake or intentionally the assignment of this sales area is deleted in configuration. If this is done, it will affect the documents in retrospect and all those documents cannot be processed from then onwards. There is a possibility that this has happened in your case.
    Check some other sales orders for the sales org 1000 created in 2008 and you are bound to get this error. If you realise that there are lot of documents affected because of this, please check the change logs in the sales area configuration and find out when was the sales area dimantled in the system. There can be some business reason behind this. Find out the business reason, tell them implication of removing the sales area, do the configuration once again and rectify the affected documents once again by means of a Zprogram.
    Please check initially what is said, and let me know if you need more information on this

  • Re: Creation of sales order without material master

    Hi All,
                Is it possible to create sales Order, without material master. In case if so please provide the details.

    Hi,
    It is possible to save order without any material.
    But if you want to restrict it, go to VOV8 and select your Sales Document Type and see if any incompletion procedure is assigned.
    Now go to SPRO - SD - BASIC FUNCTIONS - LOG OF INCOMPLETION ITEMS - SALES ORDER ITEM -
    and for your incompletion procedure maintain VBAP under table and MATNR under field name. Also you can tick on warning message, if user now tries to save the order without any material.
    So now you can restrict saving order without having any material.
    I am sure this will help you, if it does, please dont forget to reward points for contribution.
    Regards
    Ravi

  • How to restrict saving of a sales order without a material.

    Hi Gurus
    Please advice How to restrict saving of a sales order without a material. That is the system saves the order even if no item is assigned to it.

    Hi Raghu,
                 In standard SAP we can not do that. Even for some requirements of the customer this feature is required, specially in case of milestone billings, custom materials etc. client after saving the empty sales order they may create materials based on that sales order number.
                 If it is mandatary for u to save sales order only after the entry of the materials, u can try user exits or go for a code with the help of an ABAPer.
    Regards,
    Ravi Duggirala
    Edited by: ravi duggirala on Jun 20, 2008 11:11 AM

  • 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

  • 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

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

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

  • Sale Order without a Document Flow

    Hallo Everybody,
    How can i copy a sale Order without a Document Flow ?
    Thanks.

    Hi,
    Try to use the FM BAPI_SALESDOCUMENT_COPY
    Rgds,
    Bujjji

  • Sales order without accounting context

    Hi all
    I need a sales order without billing. (With accounting or costing context required completely out of the way. The material type is without valuation)
    When I create the sales order I get following message (despite the settings described below):No pricing procedure could be determined, Message no. V1212
    I appreciate any help in determining the cause, thanks in advance
    Anton
    Settings
    Document type :following fields blank  :  Check credit limit, credit group , doc. pricing procedure
    Item category: following fields blank: Item type, Billing relevance, Billing Plan type , pricing, Credit active, Determine cost, Billing form
    Item category : Incompletion procedure = 24 (Free of charge item)
    Customer master : Sales area data: following fields blank: Price determination, Subsequent invoice process, inco terms, terms of payment, credit control area, account assignment group
    I have item category with following settings

    HI
    Document type :following fields blank : Check credit limit,
         credit group , doc. pricing procedure
    Pricing procedure in sales document is determined by sales doc pricing procedurecustomer pricing proceduresales area.
    In your case, doc. pricing procedure is blank, so you are getting this error.
    Edited by: Lakshmipathi on Oct 9, 2009 10:54 AM
    Aligned the coded sentence to two lines

  • Re : sales order without assigning document type in OVAZ

    Hi
        How to create sales order without assigning document type in OVAZ.
    Thanks
    Mani

    Hi Mani,
    If all your order types can be used in all the sales orders, you dont need to maintain in OVAZ. If you think ur order type has to be used only in one of the sales area then you need to maintain in OVAZ.
    Hope this helps.
    Kind Regards
    Chakradhar

  • Copy sales order to sales order without reference?

    Hi,
    i there a way to copy a sales order to a new sales order without referece?
    I want simple cope all elements of a sales order (Header, itemes, text).
    thanks, regards, Dieter

    Hi DIeter,
    Not so sure about copying to sales order to sales order without reference, but you could try using Item proposals and create a standard list of materials and that can cut out the repetition
    Regards
    Paul

  • How to find status of sales order without OBJNR

    Hi All,
    Could you please let me know how to find staus of a sales order without VBAK-OBJNR, sales order type is debit memo request(VBAK-AUART = 'L'), it has no status icon in status tab, and VBAK-OBJNR is empty, but 'Rejection status' is showing as 'Everything rejected' in its status tab.
    Thanks & regards
    RK

    HI,
    I just verified with other statuses of sales orders, it is confirmed,
    Many thanks.
    Regards
    RK

Maybe you are looking for

  • Brush icon not displaying correctly

    Hi folks, I just installed CS4 on a lovely new Dell notebook with WUXGA display (1920x1200) and am having a problem that I have never seen before. When the brush tip is small (up to 35 px at 100%)  I see the entire circle defining it, but as I move i

  • Sound goes out of sync after pausing video

    Hi everyone, Got a 1 month old Apple TV which is working just great with videos bought off the store... However I've run into a really annoying problem when watching videos that I've encoded myself. They will all play just fine, from beginning to end

  • Can I precalculate a BEx query and email the results as an attachment?

    We are on BW 3.5, currently pulling data from R/3 4.6C (but upgrading to ECC 6.0 in mid-July). I have been successful (once, once I was able to talk my email administrator into letting a  .js file through) in sending an email, but the results are in

  • GR reversal settings

    Hi all, What are the settings in SRM and ECC which determine whether GR reversal can be done even though the invoice is posted?Can some one explain w r t transaction codes/SPRO config path? Thanks.

  • Why doesn't photoshop Elements 10 install on my mac?

    I have bought Adobe Photoshop Elements 10, it has been installed on 2 different windows laptops just fine. I am trying to install it onto my macbook pro (vs 10.6.8) and I keep getting the error message "Installation failed to inistialise. Please down