Saving of sales order

hi gurus
i am going through a scenario where i need to restrict saving of sales order if there is no materials in the stock, as the normal process the sales order gets saved even if there is no stock. so the point is no sales order should be saved if there is no stock in the plant. how to do that?
regards
subhrangshu

Hi
This is possible through simple configuration
If you want the sales order should not get saved if the confirmed qty for a line item is 0 that is no stock
Then in the incompletion procedure for schedule line category
add the field BMNEG ( confirmed qty ) from the table VBEP
That is your schedule line incompletion procedure that is 30 or 31 add this add the field BMNEG from the table VBEP
Assign this in completion procedure to your schedule line category
More orver for your order type config VOV8 check the tick box incomplete messages in the transaction flow tab
With this settings when a sales order has a line item with confirmed qty is 0 then system considers this order as incomplete and will not save the order
Pls update me whether this input  has helped you
Your requirement is also possible through plenty of userexits but i request you to handle it through  configuration
Regards
Raja

Similar Messages

  • Error while saving the Sales Order

    Hi experts,
        i am getting a runtime error while saving a sales order stating: SAPSQL_EMPTY_TABNAME. It says the field T681-KOTAB could be empty. I would give in more inputs. Someone plz help.
    Thanks.

    I would expect that KOTN521 would be a Database table defined in the ABAP Dictionary that relates to the condition implemented in 521 for the usage specified in that record.
    You should be able to go into the info system, SE84, and search under ABAP Dictionary / Database Tables to see what KOTN521 is.
    Also, since the only Keys to T681 are KVEWE and KOTABNR, and there are two KOTABNR entries with a value of 521, then there must be two different usages (KVEWE) associated with that table.
    If you see what they are, you can check to see what the usages represent.   Based on a lookup, it appears that a usage of N is for Free Goods, A is for Pricing etc.   In our system, we only have A entries.
    What are the usages for the 521 entries?  Do they relate to Free Goods/Pricing???
    Does the table KOTN521 exist in the ABAP Dictionary?
    Answering these questions may get you closer to the answer.
    Can you compare the values in these entries to what you have in different SIDs?
    Is this problem happening in Production, or is it still in a development or Quality Assurance client?
    If it is still in development or Q, then it may be that a recent customization change was made.
    Compare the entries across your systems, if possible.
    Good luck
    Brian

  • RunTime Error while saving a Sales Order

    Hi All,
    When i am saving a Sales Order, the system is throwing a Runtime Error.
    The ABAP Code in the Runtime Error screen as follows.
              select * from (t681-kotab) appending table <cond_tab>
                     up to 1 rows
                     where kappl  = se_kappl
                     and   kschl  = se_kschl
                     and   datbi >= se_date
                     and   datab <= se_date
                     and   (coding_tab).
    Till these days, there was no such error while saving a Sales Order.
    How to resolve this issue?
    Regards
    Pavan

    Hi,
    The below piece of code is trying to get the contents of the table mentioned in T681-KOTAB.
    select * from (t681-kotab) appending table <cond_tab>
    up to 1 rows
    where kappl = se_kappl
    and kschl = se_kschl
    and datbi >= se_date
    and datab <= se_date
    and (coding_tab).
    The reason could be is someone has screwed up the entries in T681 table. Check that out.
    Try to put a break point on this SELECT query and see what the value of T681-KOTAB holds before the SELECT query. Check whether such a table entry exists in DB.
    Let me know if you are still stuck up.
    If you can send me the ST22 dump of the run time error, i might be able to help you more  on this.
    Hope this helps.
    Thanks,
    Balaji

  • Error while saving a Sales Order in the CRM Mobile Application

    Hi,
    I am facing issues while saving a Sales Order in the CRM Mobile Application. I am getting the error message "Value Field KvLangu is not valid (Error: 236 / 1102)".
    I would be very grateful if somebody had faced this issue before and this way could help me with some information.
    Best Regards,
    Rogerio Prado.

    Hi Rogerio,
    You should put mobile sales related messages in the forum "CRM Mobile applications"
    This error message is coming because the language table SMOT002 might be empty in your mobile client OR it does not have all the values which have been customized in the system.
    You need to have subscription based on publication "customizing objects" assigned to your site.
    Regards
    Vivek

  • Error while Saving Service Sales order.

    Hi..
    Please help me for resolving below error..
    While saving service sales order error is coming as-
    Invalid account assignment category...
    Detailed Error-
    "Assign components to a/c assignment category & Account Assigmnet Category not defined.
    In customisining a/c assgnment cate for ser & mainta order .In standard define the following values for the order category 30.A/c Asd type general F,
    A/c *** type Project Q,A/c assigment type Sales Order E,Sales Doc Project D".
    Awaiting for your inputs....
    Thanks
    Manoj Mahajan

    Hi Manoj,
    Account Key assigned to the pricing condition hasn't been configured completely.
    Please check the appropriate account key and speak to your FI team.
    Pl award me points if it is helpful.
    Let me know if you need more details.
    Thanks,
    Ramesh

  • User Exit or BADI on saving of Sales order cost estimate (CK51N)

    Hi,
    Can any one share with me what are the User Exit or BADI that gets triggered on saving of Sales order cost estimate (CK51N).
    Regards,
    Bijay

    Hi
    Check the link
    Need Enhancement Spot or BADI for transaction ck51n
    Regards
    Sanil

  • Different message in va01: Defect in ECC6 server while saving the sales order .

    Hi ABAP gurus,
    I am in to upgrade Project In ECC6 server I am getting the different message when saving the sales order in va01 compare to  old sever(4.7) .
    I have to make it to the same message as it is in the 4.7 server.
    plz help me .
    Regards,
    vanamaala kashavena

    Hi,
    IF xvbap-uepos IS INITIAL AND
            xvbap-zzhrs_conf <> 'X'.
            MESSAGE ID 'ZOTC' TYPE 'E' NUMBER '067' WITH
            'Please select Hours Confirmed in Additional data B'(302) 'for item'(303) xvbap-posnr.
          ENDIF.
    this is the code in the  PARTICULAR INCLUDE PROGRAM .
    this is same in both the system ,but in ecc6 server,in message
    popup it is not giving 'Please select Hours Confirmed in Additional data B' .
    it is giving ORDER QTY FORMAT PERIOD (ITEM NUMBER(0010))
    Regards,
    vanamaala k

  • Send Mail to Customer while saving the Sales Order

    Dear Friends,
    My Requirment is to send the mail to Customer automaticaly when create any Sales Order.
    While sending the mail given three points reqired.
    1.     Send the attachment of Order Conformation along with the mail.
    2.     There must be The title text as "Order Confirmation refrence of your PO <Customer PO No> <PO Date>"
    3.     There must be some body text like some terms and conditions with variables of Order data.
    Can any body help me one this step by step.
    Kindly suggest me how to do this.
    Thanks in Advance.
    D Tarun Kumar
    Moderator message : Spec dumping not allowed, duplicate post. Thread locked.
    Edited by: Vinod Kumar on Jul 12, 2011 11:30 AM

    While saving the sales order through Va01 and Va02 and email has to send

  • Inserting Pricing condition in Sales order when saving the sales order

    Dear ABAPers,
           My customers requirement is when saving the sales order new pricing condition has to be updated in the line item.for this i am using the User Exit 'USEREXIT_SAVE_DOCUMENT_PREPARE' ( MV45AFZZ).While saving the Sales order i am calculating the Price and updating in the Pricing conditions.
    In XKOMV internal table i am appending the pricing condition.But the problem is ,it is not calculating the taxes and it is Updating in VBAK and VBAP.
    How to do this.
    Thanks & Regards,
    Ashok.

    Dear ABAPers,
    I have Solved this Problem.
    Thanks & Regards,
    Ashok.

  • In Sales Order form populate charges field after saving the Sales Order

    Can we populate Charges field in Sales Order form after saving the sales Order automatically.
    The charges to be calculated based on the amount entered and the item selected in Sales Order.
    In the Manual process it is done by hitting the Actions Button and then select the Charges.
    The charge type would be "Freight Costs"

    by using process_order API, I am able to update the charges field.

  • User exit for saving a sales order

    hi
    wats the user exit when saving a sales order?

    Hi,
    SDTRM001            Reschedule schedule lines without a new ATP check
    V45A0001            Determine alternative materials for product selection
    V45A0002            Predefine sold-to party in sales document
    V45A0003            Collector for customer function modulpool MV45A
    V45A0004            Copy packing proposal
    V45E0001            Update the purchase order from the sales order
    V45E0002            Data transfer in procurement elements (PRreq., assembly)
    V45L0001            SD component supplier processing (customer enhancements)
    V45P0001            SD customer function for cross-company code sales
    V45S0001            Update sales document from configuration
    V45S0003            MRP-relevance for incomplete configuration
    V45S0004            Effectivity type in sales order
    V45W0001            SD Service Management: Forward Contract Data to Item
    V46H0001            SD Customer functions for resource-related billing
    V60F0001            SD Billing plan (customer enhancement) diff. to billing plan
    tables : modsap
    tcode : cmod,smod
    Reward if usefull

  • Ps assembly processing:WBS have not be created when saving the sales order

    In the ps assembly processing, I want to generate a network when I create a sales order.  So I did the following steps:
    1-Use the TCODE cj91 to create a standard WBS "E-000007.1".
    2-Use the TCODE cn01 to create a standard network "10000000" and assign the standard WBS "E-000007.1" to it.
    3-Use the TCODE cn08 to config the Network Parameters from Sales Order like below:
    Material number : 600000-000000-0009
    Order Type      : Z301
    Std network     : 10000000
    Class Type      : 020
    Network Profile : Z0001
    MRP Controller  : 001
    Std WBS element : E-000007.1
    4-Use the TCODE va01 to create a sales order and add an item with the material "600000-000000-0009" and save.
        When the SAP R/3 System is saving the sales order, a WBS ought to be created u2013 based on the assignment of the standard network to the standard project.But I could not found the WBS.I thought I have do all of steps and could not found the reason.
       So I need the experts give me some useful advice and reference to resolve the problem.Thank you.
    Regards
    Yoda

    Hi,
    Maintain strategy group in material master MRP tab....
    If problem still persist then check is there any credit block to that customer...if it is release it in VKM3....
    Once you release it will create automatically.
    Regards

  • Upon saving, assign sales order to different number range...

    Hello Experts,
    We have a new requirement wherein upon saving the sales order, I have to check its company code and
    sales document type and if it has a record in a customized table, then I have to use another number range instead
    of its default number range...
    For example, the default number range for sales orders for company code 1000 with a document type of ZAOR
    has a default number range of 3011000000 to 3011999999. I need to change it to 3021000000 to 3021999999.
    Hope you can help me guys. Thank you and take care!

    A new numner range can be created via SNRO.
    Also, you can use the following exit to assign this new numbe rrange to the order -> USEREXIT_NUMBER_RANGE
    For more info; refer Re: User Exit No for assign a different internal document number to VA01
    Neeraj

  • Creating a Service Order automatically when saving a Sales Order

    Hello SDN,
    I'm trying to have SAP automatically create a Service Order when a Sales Order is created. To this end, I've tried implementing BADI workitem_template and have been using method before_update. I've been using BAPI BAPI_ALM_ORDER_MAINTAIN to create the service order.
    The problem is that in order for the BAPI to save the service order, the sales order needs to be fully saved and operational. Otherwise it just keeps saying 'sales order does not exist'. So the problem is that the BADI is intervening too soon in the saving process. The temporary sales order numbers have been replaced with actual ones, but the records do not show in the database just yet. I think there's a commit that still needs to be done or something.
    However, I cannot find a BADI or user exit that intervenes after the sales order is saved into the database, so this leaves me stranded.
    Any suggestions would be heartily apprechiated.
    Kind Regards,
    Niels.
    Edited by: Niels Ruelens on Feb 20, 2008 4:20 PM
    Edited by: Niels Ruelens on Feb 20, 2008 4:22 PM

    Following your suggestions, I've created an update function module and inserted it into the USEREXIT_SAVE_DOCUMENT. In this function module, I'm calling the BAPI.
    Problem with this approach is that I cannot debug, nor is he actually doing anything. Here's the code that is put in the function. Is there anything wrong with the way I call the BAPI perhaps?
      DATA:
        lt_srule     TYPE TABLE OF bapi_alm_order_srule,
        lt_bheader   TYPE TABLE OF bapi_alm_order_headers_i,
        lt_srule_up  TYPE TABLE OF bapi_alm_order_srule_up,
        lt_methods   TYPE TABLE OF bapi_alm_order_method,
        lt_return    TYPE TABLE OF bapiret2,
        ls_vbak      TYPE vbak,
        ls_vbap      TYPE vbap,
        ls_bheader   TYPE bapi_alm_order_headers_i,
    *    ls_header    TYPE cobai_s_header,
        ls_prps      TYPE prps,
        ls_srule     TYPE bapi_alm_order_srule,
        ls_srule_up  TYPE bapi_alm_order_srule_up,
        ls_methods   TYPE bapi_alm_order_method.
    *    ls_item      TYPE cobai_s_item.
      SELECT SINGLE * INTO ls_vbak
      FROM vbak
      WHERE vbeln = vbeln.
      SELECT SINGLE * INTO ls_vbap
      FROM vbap
      WHERE vbeln = vbeln.
      FREE: lt_methods, lt_bheader, lt_srule.
    * Fill methods
      CLEAR ls_methods.
      ls_methods-refnumber  = 1.
      ls_methods-objecttype = 'HEADER'.
      ls_methods-method     = 'CREATE'.
      ls_methods-objectkey  = '%00000000001'.
      APPEND ls_methods TO lt_methods.
    *  CLEAR ls_methods.
    *  ls_methods-refnumber  = 1.
    *  ls_methods-objecttype = 'SRULE'.
    *  ls_methods-method     = 'CREATE'.
    *  ls_methods-objectkey  = '%00000000001'.
    *  APPEND ls_methods TO lt_methods.
      CLEAR ls_methods.
      ls_methods-refnumber  = 1.
      ls_methods-objecttype = ''.
      ls_methods-method     = 'SAVE'.
      ls_methods-objectkey  = '%00000000001'.
      APPEND ls_methods TO lt_methods.
    * Fill header
      CLEAR ls_bheader.
      ls_bheader-orderid    = '%00000000001'.
      ls_bheader-order_type = 'ZM02'.
      ls_bheader-funct_loc  = 'FERBL_TD5C_DER'.
      ls_bheader-planplant  = 'B006'.
      ls_bheader-sales_ord  = vbeln.
      ls_bheader-s_ord_item = '00010'.
      APPEND ls_bheader TO lt_bheader.
    ** Convert the internal WBS to an external WBS element
    *  SELECT SINGLE * INTO ls_prps
    *  FROM prps
    *  WHERE pspnr = ls_vbap-ps_psp_pnr.
    **   Fill settlement rules
    *  ls_srule-objnr =   ls_item-aufnr.
    ****    ls_srule-sales_ord = caufvd_imp-kdauf_aufk.
    ****    ls_srule-s_ord_item = caufvd_imp-kdpos_aufk.
    *  ls_srule-wbs_element = ls_item-projn.
    *  ls_srule-settl_type = 'FUL'.
    *  ls_srule-percentage = 100.
    *  ls_srule-extnr = 1.
    *  APPEND ls_srule TO lt_srule.
    *  ls_srule_up-wbs_element = 'X'.
    *  ls_srule_up-sales_ord = 'X'.
    *  ls_srule_up-s_ord_item = 'X'.
    *  ls_srule_up-orderid = 'X'.
    *  ls_srule_up-settl_type = 'X'.
    *  ls_srule_up-percentage = 'X'.
    *  ls_srule_up-extnr = 'X'.
    *  APPEND ls_srule_up TO lt_srule_up.
      CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
        TABLES
          it_methods              = lt_methods
          it_header               = lt_bheader
    *          IT_HEADER_UP            =
    *          IT_HEADER_SRV           =
    *          IT_HEADER_SRV_UP        =
    *          IT_USERSTATUS           =
    *          IT_PARTNER              =
    *          IT_PARTNER_UP           =
    *          IT_OPERATION            =
    *          IT_OPERATION_UP         =
    *          IT_RELATION             =
    *          IT_RELATION_UP          =
    *          IT_COMPONENT            =
    *          IT_COMPONENT_UP         =
    *          IT_OBJECTLIST           =
    *          IT_OBJECTLIST_UP        =
    *          IT_OLIST_RELATION       =
    *          IT_TEXT                 =
    *          IT_TEXT_LINES           =
    *     it_srule                = lt_srule
    *     it_srule_up             = lt_srule_up
    *          IT_TASKLISTS            =
    *          EXTENSION_IN            =
             return                  = lt_return.
    *          ET_NUMBERS              =.
      IF sy-subrc = 0.
      ENDIF.
    Edited by: Niels Ruelens on Feb 20, 2008 4:58 PM

  • Saving a Sales Order

    Hi All:
    How can we save a sales order in WebUI without submitting it for processing. The idea is that a person can come back to the saved and not submitted sales order and can work on it befor doing the final submission to the system(ECC)?
    Regards

    hi,
    with help of workflows you can trigger order to other system on status change. Eg if your order is in open state and saved it will not hit other system. But when you change status to in process then it will hit other system.
    Not sure how can you achieve the same with ecc and middle ware.
    Best regards
    Pankaj Kumar

Maybe you are looking for

  • How to populate a field in a standard SAP screen through FMs and Workflows

    Hello Everyone, I have a requirement in which I have to populate a field in an standard SAP Screen.The logic for finding the value of the this field will be done in a new FM and this value has to be passed to this field on the standard SAP screen thr

  • How to Activate Extended Rebate Agreements

    HI All Gurus, We are using the SAP ECC 5.0 Version. My Client Requires certain features which can be handled through Extended rebate agreements. As per the documentation. Can Anyone help in how to activate the Extended Rebate Agreements. Thanks in Ad

  • Error log during transport(SE09) DEV to Quality

    Hi, I am facing issue while transporting object Development to Quality, please find below the details. I have created one class. 1. Created one(first) method and calling new method(which is doesnt exist as of now). 2. Created another(second) method w

  • Shopadmin not working

    Hi All, I am working on creation of B2B webshop through CRM 7.0 webchannel. I have defined a new customer application configuration for crmshop & attached a jco component (http://<host:port>/shopadmin/admin/xcm/init.do). But when i try to login into

  • Workforce Business Rule

    Hi All, Transfer BR is not updating the Action. (2= Transfer out and 3=Transfer in) Var SavedAction=0; FIX ([Scenario], [Version], [Employees], [FromDepartment], [Year], [Division],"BegBalance",Jan:Dec) "Action" IF ("Fiscal TP-Index" == [Month]->"Fis