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

Similar Messages

  • One order type different number range for different company code

    Hi
    I have created one order type. Same order type I extended in another company code (plant).
    I required different number range for another company code.
    Can any give detail solution.
    Regards
    ARK

    Hi,
    In CO82, define groups of order types. Define number intervals and assign number intervals to groups. Organize order types that you want to assign same number interval under groups.
    Regards.

  • How to create a Sales Order with external number using BAPI

    Hi People,
    I am wonderning how to create Sales order using external number range by BAPI (SALESORDER_CREATEFROMDAT202).
    I tried search but could not succeed in finding the solution.
    Please share if anyone has some info.
    Thanks in advance.
    Regards,
    Praveen

    As per my understanding, the BAPI
    SALESORDER_CREATEFROMDAT202
    mentioned by you, is not BAPI. In fact, that is basic IDoc Type.  For processing an Inbound IDoc, we use FM IDOC_INPUT_ORDERS.
    If you want to create sales order other than IDoc, refer FM BAPI_SALESORDER_CREATEFROMDAT2. There you can provide external sales order no in SALESDOCUMENTIN. In addition to that check whether your sales doc type is relevant for external number range or not. If yes. then make sure you are providing external number according to the number range maintained.
    If you still have any concerns, please revert back.
    Thanks, JP

  • 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

  • Different number range for different  sales area but same order type

    i have 2 different sales area but i have assigned same sales order type for 2 different sales area,
    but i need the number range different for different sales area for that same sales doc type,
    is that there is any user exists for number range? if so how can i find the user exists

    Hi,
    You can surely have a different number range per Sales Area. For this you will have to make use of a User Exit (which would surpass the standard SAP functionality). Try USEREXIT_NUMBER_RANGE.
    Maintain the desired range in VN01 with the respective Range Keys.
    Make a custom table comprising of Sales Area and Number Range keys (same keys which you maintained in VN01).
    Now everytime, the system will check which sales area is used and accordingly, it will fetch the Number Range Key~Sales Area combination from the custom table, and will pick up the number range from VN01.
    Coding should done by a good technical guy to make this work nicely.
    Hope this helps you.
    Regards,
    Vivek

  • 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

  • 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

  • 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 for sale order material serial number change

    I am looking for User exit for changing the serial number for the saleorder material va01.

    Hey,
      Check the include program : MV45AFZZ. it will trigger at the of saving the sale order.
    IF SY-TCODE EQ 'VA02' OR SY-TCODE EQ 'VA01'.
    Endif.
    Note : Write your coding inside the IF clause to avoid affecting the other transaction codes.
    Regards,
    Saravanan M

  • Is it possible to create Order type with different number ranges-Plant wise

    Hi Experts
    Client wants to get the different number ranges for the order types created in the different plants. Is there any user exit for the same.
    I have assigned the order type to the different plants. And Order type is assigned to a no range. So whenever a order type is created in different plants; order types uses the same number ranges.
    so with this situation one cann't know the total no. of order created within a plant.
    Is there any solution for the same.
    Pease give your valuable solutions.
    Regards
    Pankaj

    Hi
    Best way is to create different order types for different plants.
    like we have order types OR15 ,OR20 & OR30 for different plants 1500 ,2000 & 3000 .
    you can assign different number range for different order type.
    this is simplest solution.
    Regards
    Sujit

  • 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

  • Single sales order to different ship to party

    Dear sd gurus very good mng
                         How to deliver single sales order to different ship to
    partys?
    thans in advance
    venu gopal reddy

    Hi Venu
    You have to create separate account group for Ship to Party customer XYZ
    Do the partner function determination & assign  SH for Ship to party customer
    Raise the sales order in VA01 & enter the Sold to Party Ex-  ABC & Ship to Party- XYZ
    Delivery will be done for the XYZ customer
    And also please check this below link it might be helpful for your issue
    http://forums.sdn.sap.com/thread.jspa?threadID=2081804
    Let me know if your problem is solved
    Regards
    Pradeep

  • 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

  • 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

Maybe you are looking for

  • Error while calling a web service from Entity CRUD methodes

    Hi All, I have created an entity service with remote persistency(web service).I have mapped the entity service create methode with the web service create method.Similarly entity service edit method with the web service edit method.But when i am testi

  • ITunes auth problem on Windows 7 64-bit

    Hi, I experience weird issues with the iTunes auth-process on a Windows 7 (64bit) machine. When I try to authorize my computer it results in a message telling me something about connection issues. Anyhow, it seems the computer is kind of activated si

  • PHOTOSHOP CS6 PLUGIN PROBLEM; I have PS CS6

    PHOTOSHOP CS6 PLUGIN PROBLEM; I have PS CS6 & a mac osx 10.7.5  I have downloaded the pluginhttps://sourceforge.net/projects/panotools/  I drag it to the applications folder  (applications/photoshop/plugins) and it shows up there, but it does not sho

  • Block GL account Listing / Report  T C plse

    Dear Experts can you please tell transaction code for Block GL account Listing / Report. Thanks B

  • What actions will trigger azure worker role reboot

    Hi team, we have a application host in worker role, the worker process will create a new process if it receive a request,  i we want to update the worker and keep new process still working smoothly, what we should do during the Udate. we did some tes