Sales order number range

Hi all,
When we save the sales order, One number will generate based on the sales document number range, client requirement was based on plant sales order number should be generate. So what are the configuration i have to do this?

Hi,
I would recommend what JP has mentioned in a previous thread.
But be very careful when you develop such an enhancement. Plant is in the sales order line item table (VBAP) But the sales document number (VBELN) is in the sales order header.
Imagine you have a sales order with 2 line items. One has "Plant 1" and this other line item has "Plant 2". In that case, how does your enhancement generate a number for your sales order? Either you should not allow users to create a sales orders with different plants in different line items (One sales order can have one plant)
Else the best way is to take any other combination in the sales header (VBRK) to design the solution. (Like Sales Org)
Thanks and best regards,
Rahal

Similar Messages

  • B2B Sales Order Number range

    Hi All,
    We have one requirement in Billing document number ranges in SAP CRM.
    For one Billing document type (ZX03) we need to assign two different number ranges , based on two different Sales Organizations.
    For Example if the Billing document is created with Sales Organization u2018ABCu2019 it has to pick the number range 0001000001-0001499999 and if the same Billing document is created with Sales Organization u2018XYZu2019 it has to pick the number ranges 0001500000-000299999.
    Does anyone have any idea how to get through with this issue? Which BAdi or Function Module can be used for this purpose? Any inputs on this will be highly appreciated.
    Thanks in Advance.
    Regards,
    Namita

    Cross post - Re: B2B Sales Order Number range

  • Sales order number range skipping..anyone faced this ????

    Hi all ,
    We have perculiar problem where Sales order document numbers are
    skipping/ jumping inbetween around 200- 250. And it is recurring.
    Anyone faced this problem ? Does any one has any clue on this ?
    we are in ECC 5.0
    Thanks in advance.
    Kb

    This is happening due to buffering in number range. If you write the same to SAP OSS, they will let tou know the note no to be refered to, which will resolve the problem.
    Regards,
    Rajesh Banka

  • SD Sales order number range external

    Normally it is possibly to have 1 internal and 1 external number range for a type of sales order.
    For setting the internal we found an userexit MV45AFZZ  FORM USEREXIT_NUMBER_RANGE .
    Who knows an userexit or something else for external to use 2 external number-ranges for one type of order?

    Hi
    You have chosen the right userexit. You have to create a ZTable and maintain the different number ranges - eg., different number ranges for different sales organisations. In the table you have to specify the number range to be used aganst the sales organisation. During order creation, the system picks number from this number range from this table when the userexit is triggered.
    Thanks,
    Ravi

  • Sale document number range

    Dear all,
    I've a small issue with sales document number range. I create a range 01 from 1 to 4999999 by tcode VN01. But when the first sale document is created, the system gets the number 1000001 & assign to this sale doc. (Not 1 as usual). Do you know the reason why ?
    Thank you very much for your help,
    Regards,
    Tweety.

    Go to VOV8, select the sale document type and execute.  There ensure that this 01 is assigned to Number range int.assgt
    If not, maintain 01 and retry to create a sale order.
    thanks
    G. Lakshmipathi

  • Generating next available Sales Order Number

    Hi experts,
    I have a requirement where i need to get to know the next available Sales Order Number in SAP for an SAP to  third-party system integration scenario.
    Is there any BAPI available which can list the next-available sales order number in the system?
    Kindly share your expertise on this one.
    Thanks in advance.
    Regards,
    Keerthi

    Hi
    You can use FM CVV8_GET_NEXT_NUMBER.
    Provide  Number range object as RV_BELEG.
    To get the number range interval you have to pick value of NUMKI field from table TVAK according to your sales document type.
    The function module will return the next available number.
    Regards
    Vijai

  • Sales order number user exit in Purchase order

    hi,
        There is a sales order number in Purchase order(item level/account assignment/sales order no)
      Now, i have to populate the SO no in  orders 05.
       Can any one say the user exit for populating the sales order number in PO.

    Hi
    Check the below exits related to purchasing in which the table EKKN is referenced
    EKKN will have VBELN (sales order No) and POSNR (item of sales order)
    M06B0001
    Role determination for release of requisitions
    M06B0001
    Changes to communication structure for release of requisitions
    M06B0003
    Number range and document number
    M06B0004
    Number range and document number
    M06B0005
    Changes to communication structure for overall release of purchase requisitions
    M06E0004
    Changes to communication structure for release of purchasing document
    M06E0005
    Role determination for release of purchasing documents
    ME590001
    Grouping of requisitions for PO split in transaction ME59
    MEETA001
    Determination of schedule line type (backlog, immediate requirement, forecast)
    MEFLD004
    Determination of earliest delivery date for checking at time of goods receipt (PO only)
    MELAB001
    Generation of forecast delivery schedule: realization via creation profile
    MEQUERY1
    Enhancement for document overview ME21N / ME51N
    MEVME001
    Calculation of default GR quantity and over/underdelivery tolerances
    MM06E001
    User exits for inbound EDI messages and outbound purchasing documents
    MM06E003
    Number range and document number
    MM06E004
    Control of import data screens in purchase orders
    MM06E005
    Customer fields in purchasing documents
    MEREQ001
    Customer's own data in purchase requisitions
    MM06E007
    Change document for requisitions when converting into POs
    MM06E008
    Monitoring of contract target value in case of release orders
    MM06E009
    Relevant texts for "Texts exist" indicator
    MM06E010
    Field selection for vendor address
    MM06E011
    Activation of requisition block
    MM06L001
    Exits for determination of ratings in vendor evaluation
    MMAL0001
    ALE source list distribution: outbound processing
    MMAL0002
    ALE source list distribution: inbound processing
    MMAL0003
    ALE purchasing info record distribution: outbound processing
    MMAL0004
    ALE purchasing info record distribution: inbound processing
    MMDA0001
    Default values for delivery addresses
    MMFAB001
    User exit for generation of releases
    MRFLB001
    Control items during release creation
    LWBON001
    Enhancement of LIS update through extension of the communication structure MCKONA (business volumes and rebate income)
    LWBON003
    Change settlement data for end-of-period rebate settlement before creation of settlement documents
    LWSUS001
    Customer-specific source determination in Retail
    LMEXF001
    Conditions in purchasing documents without invoice receipt
    LMEKO002
    Enhance communication structure KOMP for price determination
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Function Module to get sales order number

    Hi,
    In a custom program I am giving Material number and Plant as input in VBAP to find the Sales Order number. However this step is taking long time to execute and so getting dump with time out error.
    Please let me know whether there is any Function Module in which we can input Material and plant and get the Sales Order Number.
    Regards

    Hi,
    Rather than searching for a FM, you can get a small report developed to look up for VBAP for a given material, plant.
    Ensure that this report is always run in background. Also consider giving other parameters for faster processing like date range etc..
    Regards,
    RS.

  • Invoice numbers to generate Sales Order Number

    I work for a billing department and we use SAP to key our invoices however we have a sales order that has a different number that corresponds with each invoice.
    If i get a list from my manager that has a bunch of invoice numbers, is there a way i can load them into sap and have it create something where it tells me the sales order number that goes with the invoice number? If it can work with multiple numbers at once will be best..
    what if the invoice numbers have a customer name in the Bill To line that i want to see as well. can that happen?

    Hello,
    Yes, I'm struggling to understand what you're after too. You could create a z table to keep track of the number if it's bespoke. Otherwise try these tables: FBN1, NRIV (intervals), T161 (po) TNRO (linked to NRIV).
    Good luck!
    Ash Thomas
    http://www.ashthomas.com
    Sap Abap Developer & Sap Abap Programmer

  • How to look for sales order number if I know outbound delivery number?

    How to look for sales order number if I know outbound delivery number?

    Hi ,
        If you want to see the Sales order Number from Outbound delivery or invoice,go to their respective T-codes,say for example,
    for delivery,Goto Tcode: VL02N / VL03N.There you will find Document Flow Icon,click on that,or press F7.
    You will get a window,there you can see the Sales order Number before your outbound delivery Number
    With Thanks and Regards,
    Priya

  • How to update sales order number (KAUFN) characteristic in the profitability segment of the PA document created at the time of service entry sheet confirmation, as a result of shipment cost document

    Hi,
    We have a scenario wherein we create shipment cost documents against delivery. As a result of shipments fully transferred, a PO for freight vendor is automatically created and a service entry sheet confirmation happens. As a result of service entry sheet confirmation, we have Financial accounting, Controlling and profitability analysis documents created. We have a requirement wherein we need to have the characteristic “sales order number (KAUFN)” populated in the profitability analysis document created as a result of service entry sheet confirmation.
    Could someone please advice how could this be attained in COPA. Thanks for your help in advance.
    Regards,
    Sandeep

    Hi Ajay,
    Thank you for the quick update.
    The document is updated to COPA through OKB9 settings. The profitability segment is updated with fields like customer, product, company code, plant, sales area data, profit center, etc; however the sales order number is missing.
    Could you please elaborate further how could FI substitution be implemented to call for the FM COPA_PROFITABILITY_SEGMENT through user exit? Are you recommending the substitution through GGB1? What could be the possible validation to call for the user exit to be implemented?
    Regards,
    Sandeep Kulkarni

  • Fetch Sales Order number VBELN from Purchase requisition number BANFN

    Hi,
    I'm not able to find a suitable method to fetch the sales order number(VBELN) from the purchase requisition number(BANFN).
    I tried using VBEP table to fetch the data, but it is giving serious performance issues, as in for fetching one record it is taking approx 20 seconds!!!
    Kindly suggest a suitable method for this.
    I've used the query as folllows:
    select single vbeln banfn
    from vbep
    into (wa_vbep-vbeln, wa_vbep-banfn)
    where banfn eq wa_eban_zdd1_x-banfn.
    where: wa_vbep is the workarea having two fields vbeln and banfn, and wa_eban_zdd1_x-banfn is the reference preq number.
    Scenario in brief described below:
    Whenever a direct delivery sales order is created on a supply chain plant, a dummy purchase requisition without source of supply is created automatically at preferred supplying plant for the customer in the sales order. Direct Delivery Sales Orders which are still in Open status and for the associated dummy purchase requisitions with these sales order, the deletion flag set has to be unchecked.
    in this case, only one sales order is created corresponding to a preq..
    BAPI: BAPI_PR_GETDETAIL is not giving entries for the table as this is a special case of direct delivery from the production plant directly to the customer, bypassing the warehouse / distribution center...
    selection screen has input fields preq, matnr(product) and plant. we fetch entries depending on the data filled in selection screen and also they should be of document type(BSART in EBAN table) ZDD1 and deletion indicator is set(LOEKZ in EBAN).
    then we check if the sales order corresponding to the preq is in open status...
    for this i need to programmatically fetch the sales order number corresponding to the preq...
    this is causing a performance issue as i could find only one way -- fetching sales order number from VBEP table corresponding to BANFN... indexing for easier also didnt work...
    no other way i could find to fetch sales order number corresponding to the preq number....
    there is a bapi: BAPI_PR_GETDETAIL, but this is not fetching entries to the changing tables related to sales order...
    also EBKN table doesnt have any entries as this is a special case of direct delivery preq..
    Guess i couldnt find anyother way...
    Thanks.

    I'm not sure as to why the select query was still throwing performance issues. I could see that the index had been created on only BANFN in the DB. Prior to creating the index, it was taking approx 20 seconds per entry, but after creating the index, it took 13seconds approx.
    I used the select query as follows:
    select single vbeln banfn
    from vbep
    into (wa_vbep-vbeln, wa_vbep-banfn)
    where banfn eq wa_eban_zdd1_x-banfn.
    where: wa_vbep is the workarea having two fields vbeln and banfn, and wa_eban_zdd1_x-banfn is the reference preq number.
    I tried a few other combinations also, but  those also didnt work effectively:
    select vbeln banfn
    from vbep
    into (wa_vbep-vbeln, wa_vbep-banfn)
    where banfn eq wa_eban_zdd1_x-banfn.
    without using SINGLE in the select query as the select query would implicitly pickup only a single record,
    select vbeln banfn
    from vbep
    into wa_vbep
    where banfn eq wa_eban_zdd1_x-banfn.
    and another query where the INTO statement was directed directly to a workarea.
    But unfortunately, nothing seemed to be working.
    The index i had created was on BANFN alone in the VBEP table.

  • Sales Order Number in case of drop ship  in Standard PO Print report

    I want to print sales order number in case of drop ship in Standard PO Print report..But I am not getting any tag related to that..
    When I am checking the log file it is present in the log file but not in the Tags..Please help how can I get sales order number in case of drop ship..
    Here is the log file:
    Start of log messages from FND_FILE
    Entering Get_Order_Line_Info 2
    Entering Get_Drop_Ship_Line_ids...1
    no open order line
    line found now 18757558
    Exiting Get_Drop_Ship_Line_ids...1
    line_id 18757558om org 1274
    po org 1274
    from oe_order_lines
    got ship to ct name and location: GRUPO DE COMUNICACIÓN PROMECAL, S.L-1175623
    sales order info: 1.1-1-1-Closed-10000178
    ENTERING OE_SYS_PARAMETERS.VALUE
    Going to get the value for MASTER_ORGANIZATION_ID
    ENTERING OE_SYS_PARAMETERS_PVT.VALUE
    org_id has changed so delete the cache and reset the globals
    PARAMETER VALUE from the DB when org_id has changed : 1275
    ENTER GET_ITEM_INFO PROCEDURE
    ITEM_IDENTIFIER_TYPE : INT
    INVENTORY_ITEM_ID : 1695026
    ORDERED_ITEM_ID :
    ORDERED_ITEM : 40 x Battery 12HX330
    SOLD_TO_ORG_ID : 1684899
    EXIT GET_ITEM_INFO PROCEDURE
    got ct product and ship method: ES_40 x Battery 12HX330-
    Leaving Get_Order_Line_Info
    I am getting the sales order number 10000178 in sales order info: 1.1-1-1-Closed-10000178
    but how to get it in the report...

    Dear Nitishj,
    If the strategy is MTS then in my understanding you cannot get any sales order order number with reference to
    production made
    Reason is in MTS production will be made collectively without reference to sales order
    where as in MTO it does with reference to sales order
    Regards
    Madhu

  • SD-How to find table link of special delivery and sales order number?

    Hi Experts,
    I have a requirement as below.
    In LIPS table (SD document: Delivery: Item data), in this table has one kind data.
    One record has maintianed 2 fields PSPNR(Project definition (internal)) and PS_PSP_PNR(Work Breakdown Structure Element (WBS Element)).
    How to find sales order number of the above record? Could you tell me which table link the delivery item data and sales order number?
    Thanks a lot,
    Frank

    hi,
    check this.
    [https://forums.sdn.sap.com/click.jspa?searchID=20150250&messageID=3784069]

  • How to get sales order number when it is created in VA01

    hai experts,
    i have a requirement , when i create a sales order using transaction VA01 and save the transaction number , after saving i want to catch the sales order number and use in some other fucntion moudle, how can i do that  , should i use the events or any other methods to do the same
    regards
    m.a

    You can call you Z function module either from the workflow or from a BADI' where you can access the newly created sales order the BADi name is BADI_SD_V46H0001 and the method that you need to check is
    EXIT_SAPLV46H_003     Customer Function when Creating/Changing Header
    You can even call the FM from workflow too, but aganin for tht you need to create a ZBOR, if at all you are using a standard Business object and you hvae to create a new task and include that new task in the workflow by creating a new background Activity step. which I personally feel that you eed to put some more effort to fix the issue.
    Instead it is simple and sweet to call that function module from the Method which mentioned. where you can acess the sales document number tooo check int he method parameters.

Maybe you are looking for

  • Adding music to iTunes library - changes to files

    When I import music files into iTunes (always with the "Add Folder to Library" command), I've noticed some strange things. First, iTunes makes changes to the file by embedding the album cover. I don't really mind this, although I'd like to have the o

  • Web photo gallery, an algorithm?

    hi, im makin a site and i want a photo gallery to be on it. but id like to have an intelligent solution. so i thought about an algorithm, id select a folder (in code ofc) and it would automatically make a list of images being in it (not only once, bu

  • How to make a custom transaction..?

    Hello gurus, I have been given the task to make a custom transaction ZVA02.One the first screen there will be a field Order Number and then once we enter the order number it searches and find out whether that order exists or not...if it does then mak

  • Error Message after Closing Firefox

    Every time I close Firefox I receive an error message that the program stopped working. I have searched for a fix for this issue but I can't get it resolved. I have uninstalled Firefox and reinstalled it with no success. I am using Windows 8.1, 64 bi

  • CRM upload to R3

    Hi all, Does anybody know if it's possible to upload business activities (like calls or so) to R3 (yes, stupid, but my customer is...). I know there's an object to allow the initial load of R3 activities (made from VC01N) called SI_BCONTACT to CRM bu