Sales order quanity in multiples

Dear All,
I have maintained minimum order quantity for a mterial in material master so that I should not raise sales order less than that quantity, it is also fine we are able to succeed in that.
But my requiremnt is I should put the sales quantity in multiples of minimum order quantity which I have maintained in the MMR.
Say for an example for Material A, I have maintained miimum order quanity as 4. If I rasie sales order for less than 4 it will through error, this has ben done. But next quanities I can be maintianed as 8, 12, 16, 20....... like this.
Currently system is throwing error ir I put quantiy less than 4. But error message need to through if I put quanity as 5,6,7,9,10,11,13......... like this, HOW CAN I ABLE TO DO THIS?
Kindly provide me any user exit is there for this issue to get resolve.
Rgds
Srini

I did this once, but I think it was in SAVE_DOCUMENT_PREPARE in MV45AFZZ.  That may not be the ideal spot for you, since you're at SAVE button press when that is invoked (last thing you can do to the data in the order).  Check various subroutines in includes beginning with MV45AF*Z...look at the includes for SAPMV45A with the SE80 tool...you'll see the possible exit includes listed in the includes folder/list.  Unlike CMODs or enhancement points, etc., in SD these exit routines are already "activated".
Essentially, what I did was divide the quantity by the min order quantity, and then look for a remainder....something like:
f1 = vbap-(quantity field) / mm-minorderqty.  (gives me a type I value)
f2 = f1 * mmminorderqty. (another type I value).
If F1 <> f2... "there's a qty that is not exact multiple.
message about exact multiples of order quantity with the POSNR value (VBAP item row).
Don't forget to enforce a vbap qty that is at least minimum order qty.

Similar Messages

  • Open Sales Order  table with multiple schedule line....

    YUSUF BHORI wrote:
    Hi Experts,
    In Sales Order there are multiple schedule line for single item.
    Where and in which table i can find open qty for order ,material, item and schedule line items.
    I Want open items for each schedule line. For One vbeln, posnr there multiple etenr.
    Urgent,
    Yusuf.

    Hai,
    Join VBAK & VBAP and store data in an internal table GT_VBAP to get Sales order numbers, items, materials.
    Get Open Sales order items from VBUP into GT_VBUP  where VBUP-GBSTA  NE  'C'.
    LOOP at GT_VBAP.
    Read table GT_VBUP with key vbeln & posnr.
    If sy-subrc <> 0.
      delete GT_VBAP.
    endif.
    ****Fill your Final Report Internal table with required field values **Append into that internal table
    ENDLOOP.
    Now Select WMENG BMENG from VBEP into GT_VBEP for all entries in GT_VBAP.
    LOOP AT  GT_VBEP.
    *******Again Modify your Final Report internal table with these values
    ***VBEP-WMENG is Ordered Qty
    ***VBEP-BMENG is Confirmed Qty
    ************Open Qty     = Ordered Qty      = Confirmed Qty***
    ************Open Qty     = VBEP-WMENG = VBEP-BMENG.***
    ENDLOOP.
    Edited by: Eswara Rao Aakula on Dec 24, 2007 9:56 AM
    Edited by: Eswara Rao Aakula on Dec 24, 2007 9:57 AM

  • Create ecatt script for one sales order creation with multiple line items

    Hi ,
    I want to create a ecatt script for one sales order creation with multiple line items. Preferably SAP GUI.
    This selection of data will be from an external file/ variants which will have only one row of data in it.
    Firstly: I have to sort the external file having same PO Numbers in an order.Group them together.
    Second: I have to create sales order for those many line items having same PO Number.
    Best Regard
    Taranum

    Hi Micky
    Firstl you should upload the Line items for a particular sales Order in an Internal table
    and then pass that internal table to your BAPI during your coding corresponding to a particu;lar sales order
    In case of any issues pls revert back
    Reward points if helpful
    Regards
    Hitesh

  • Delivery is more than sales order quanity

    Dear all,
    i m able to create delivery more than sales order quanity i want to restrict that one for ex sales order is 1 and i m able to create 10 and i m doing batch split too plz help me to resove the proble it shouldnt cross sales order quanity
    regards,
    debesh

    Dear Debesh
    Go to TCode 0vlp, (zero VLP) select the item category and execute.  There maintain B  for Check overdelivery and save.
    Now retry to do overdelivery and post the outcome.
    thanks
    G. Lakshmipathi

  • APO gATP vs R/3 ATP - To check sales order ATP across multiple plants

    Hi There,
    I am trying to evaluate gATP functionality for SD sales orders.
    The primary requirement is to have sales order ATP checking take place across multiple plants.
    E.G.
    Sales order line is entered for qty 100
    60 is available in plant A, 40 is available in plant B
    System checks both plants and creates 2 lines - one for delivery from plant A and one for delivery from plant B
    (we are currently heading down the road of writing ABAP to do this 'multi-plant' check in R/3 but the more complex the requirements get the more interested I am in understanding more about APO/gATP)
    I would like to understand the benefit of implementing APO / gATP as opposed to using standard R/3 ATP and perhaps writing custom ABAP code to search for inventory across multiple plants.
    I would appreciate any insight regarding what is required to setp gATP to perform such checking and any other feedback regarding this issue - especially if you have had to implement something similar at your company.
    I have looked here but not much clear help:
    http://help.sap.com/saphelp_scm50/helpdata/en/26/c2d63b18bc7e7fe10000000a114084/frameset.htm
    Thanks,
    Niall

    Hi Niall
    you are probably looking at RBATP (Rule based ATP). Look at transaction /sapapo/rba04 in APO where you develop your own location and product substitution rules. Going down an ABAP road in R/3 may work short-term but not long-term as the requirements may get more complex.
    Regards
    Srinivas

  • Singles sales order shipping from  multiple plants in different lega entiti

    We are a global Mfg and distributor of scientific instruments. Due to the complexity and delicate nature of these instruments we may need to ship product from as many a three different shipping points / plants that are each owned by a different legal entity.
    Does SCM have any functionality to automate the co-ordination of the multi-plant shipment so that all the product can be shipped to arrive at the customer site at the same time ?

    Hi,
    How do you plan to make the order entries? What is the criteria to ship the product from different plants?
    Please clarify if you're talking about the same product being shipped from different plants or different products shipped from different plants? I can think of two scenarios because of  some ambibuity in your posting.
    1. Same product from different plants: If this is case, How do you plan to decide to split the order quantities  to be shipped from different plants into multiple lines in the sales order?
    2. Different products from different plants based on some criteria: If this is the case, I understand you will enter multiple order lines.
    In both the cases, there is something called 'Delivery groups' in ECC that is attached to Correlation Profiles in SCM GATP (though delivery groups can be used in ECC stand alone) which will make sure that all the items within the same delivery group have the same delivery date, ultimate delivery date will be the latest delivery date of all the items.
    Hope this is what you're looking for. If not, elaborate your requirement to help you better.
    Regards
    Mohan

  • Split one sales order line into multiple item line on invoice

    Hi,
    When create proforma invoice from sales order (TCode, VF01), we can have multiple batches for on sales order item line. On invoice, we have requirement to make each batch become a single invoice line. Any help on how to do the split?
    Thanks.
    --Wenning

    Are you talking about a report to show all the line items of the order. MAy be I didnt understand you correctly.
    The key to both the tables is VBELN.
    However for any Invoice the line item in in VBRP tbable and the corresponding Header in VBRK.
    You could write to query to combine the lines in VBRP to one line based on your requirement.
    Shreekant

  • Sales Order to have multiple currencies

    Hi experts,
    My client is selling the products in USD. But now they have a requirement to sell in SGD as well.
    So the same part if sold to say U.S customer Sales Order should reflect USD, if sold to Singapore customer then need to convert
    It into SGD price.
    The same part can be sold in USD or SGD.
    Please do let me know how to do this in config? Invoicing side, can still use USD. Is there any impact on it?
    Please advise.
    regards,
    pri

    Dear Lakshmipathy,
    Thanks so much for your reply.
    But just to tell you what I did. I have set my SP thru XD01 & the currency inside sales view in xd03 is SGD.
    Also we have maintained the selling price I have only 1 record & the amount is in SGD.
    But when I create a Sales Order, when I enter USD under currency column & calculate the USD amount equi to SGD, I am able to create the Order.
    However I didnot maintain another record in VK13 to have price conversion in USD.
    So how is this possible?
    Pls share,
    Thanks,
    Pri

  • Auto project triggering when multiple FG line item's in sales order

    Dear Friends,
    I am working on engineering project scenario mainly all are the Customer projects.
    Basically my client executes Customer projects for Establishing Dairy Plant, Pharma Plant, and Chemical Plant. For that they manufacture various FG assemblies & delivers to Customer site & accordingly Billing will be done to Customer.
    Here my area of concern is for any single customer project for Ex. u201CSetting up Dairy Plantu201D requires multiple FG assemblies. For example in this case 20 FG assemblies to be manufactured & delivered to customer & accordingly billing will be done.
    By using strategy group u201C21u201D Make-to-order prod. / Project settlement Can is it possible to trigger the project at sales order level with multiple FG assemblies as a multiple line items in sales order. For example, 20 FG assemblies.
    If it is possible then what are the prerequisite configurations needs to be done from PS, SD & MM module.
    I think strategy group u201C85u201D Assembly processing with network/project will not be applicable in above scenario. This strategy group is applicable for single FG line item in Sales Order not for multiple line items.
    Kindly guide me how to overcome from above scenario.
    Thanks & Regards,
    Prasad

    Hi Ahmed,
    Thanks for quick response....
    Can you explore about strategy u201C21u201D Make-to-order prod. / Project settlement.
    By using strategy group u201C21u201D Make-to-order prod. / Project settlement Can is it possible to trigger the project at sales order level with multiple FG assemblies as a multiple line items in sales order. For example, 20 FG assemblies.
    If it is possible then what are the prerequisite configurations needs to be done from PS, SD & MM module
    Thanks & Regards,
    Sandeep

  • Multiple PRs in Sales order item level

    Hi All
    I would like to know if standard SAP allows multiple PRs at the item level in the Sales order.
    These multiple PRs should be based on the outline agreement with the vendor for the material.Is this possible in standard SAP,else what would be the solution..
    Thanks
    Gobi

    I don't think it possible.

  • Multiple payer in Sales Order

    Dear All,
    Is there any standard functionality available to handle multiple payer in the sales order?
    Or multiple payer fro each line item?
    Regards
    Sam

    Hi SAm...
    YOu have to create the partner funciton for the payers... and this payers Partner fucnition should be assingned to the Sold to party...
    Once you enter the items in sales order sales order follow the parth Goto-Item-partner.. and enter your partner function there...
    Hope you find this informative..
    Thanks,
    Safeer Rahman

  • Creating multiple partner function for a sale order @ header level

    Hi All,
    I have a requirement where in i have to create more than one partner funtion for a sale order @ header level. But the system did not allow this sort of scenario and i got the error,
    Partner function ZZ can only occur  1 times in procedure TA (Sales Document Header)
    the function module that was giving this error was SD_PCHECK_PARVW_COUNT_OK
    here the function module checks if a partner function already exists if so it throws that error. This also updates the VBPA table where partner function is one of the key fields.
    Our issue is that we have to allow the system to enable posting 2 or more partner function for the same sale order. It was also verified that the unique key was unchecked during configuration.
    is there any other way of over coming this issue as we are updating the standard table. Is it possible??
    Thanks a lot in advance for your reply....

    I believe this is a configuration setting, based upon the details of your post.  Typically, a sales order can have multiple partner functions, but usually the partner type is not duplicated at a single level (header or one item).  For example, it would not be logical to have multiple ship-to partners at the header level...these would be unique at the item level, if required.
    Speak to your SD functional specialist about the configuration controls for partners, if you must have more than one partner with parvw = ZZ, for the entire order (header level).
    Edited by: DaveL on Aug 23, 2011 3:00 PM

  • Link between Prod Order and Sale Order schedule line

    Dear all,
    Ours is a MTO (81).
    In Scheduling Agreement / Sale Order , there are multiple schedule lines for a single item .
    Production Orders are generated for every schedule line of the Item.
    The client wants to know (for a custom developed report) , against which schedule line of the Sched Agreement/ Sale Order, the Production Order is generated ?
    This Information can be seen in MD04.But  I am not able to fetch from the tables .
    The schedule line field (KDEIN ) is not updated in AFPO table & the order no (AUFNR) is not updated in VBEP table .
    Say,
    Sale Doc No : 42000506
    Schedule line/Dely date            Order qty          Prod Order No
    06.10.09                                    500kg               100170
    15.10.09                                    300kg               100171
    Pls give your valuable inputs.
    Regards,
    Sheik

    Hi,
    Only Sales Order No & Sales Order Item No is updated in the table.
    Whereas , I want to know the Sales Order Schedule Line no.
    Regards,
    Sheiki

  • Sales Order User Exits - configurable materials !?

    I have been tasked with investigating the following issue and if it can be solved via ABAP/User Exits. Users in an already live system are entering Sales Orders ( VA01 )with multiple Configurable Material line items and have to repeatedly enter the same characteristic values in each line item ( by entering Item Details >> Configuration ). They want to enter a set of characteristic values in the first line item and then have them defaulted into any further items. I have looked at the standard user exits in particular USEREXIT_MOVE_WORKAREA_TO_SDWA. Has anybody attempted anything similar to this !? Any ideas ?
    Possible issues are:
    1. How do I find the characterictic values from the 1st line item. ie. they haven't been saved yet, are they in a temp area similar to XVBAP for normal sales order line items !?
    2. Are there are any suitable user exits in the Configuration side of things ( Function Group CEI0 !? ) to effect any changes the defaults. There are some BADIs in the code but they are not yet in use !?

    Hi Jonathan!
    I had a different requirement with sales orders and configuration, but this forced me into long debugging of behavior of all these exits.
    1) Characteristics can't be read.
    ad 1) in configuration it's possible to call function modules. Here (inside the configuration) values of characteristics are available and can be saved in global data of a Z-function module. This is later (in same transaction) available (like import/export).
    2) I would propose to use functions of characteristics (as mentioned, it's possible to execute own function modules in configuration). It's possible to default values (meaning: output of your function is only done, if characteristic is not set) based on global data of Z-function module.
    As long as a global memory is used, no interaction with other transactions has to be feared.
    You don't need user exits (but a lot of coding).
    You need to change the customizing of configuration - probably a huge task, because I guess you have a huge configuration (otherwise users wouldn't ask for maintenance help).
    Regards,
    Christian

  • FiX lot size & minimum sale order qty .

    hi all
    We maintained minimum order quantity  for material ; can we put massage sale oraganization wise
    ie for SO IN01 Massage type is 'E"
    & for IN02 massage type is 'W"
    If my minimum order qty. is 10 then SAP will accept the sale order qty. with multiple of 10 .
    Eg. If customer placed order qty. 15 Nos. Dose SAP convert  it into 20 automatically ?
    PL. suggest me how to configure this scnerio

    Hello,
    Min sales order qty is controlled through MMR Sales Org 1 - if you want it to round up or down to the correct order quantity then you will need to create a rounding profile (see below).
    Otherwise to change your message from a info or warning to an error goto transaction OVAH message V4 082 and change to E = error.
    Rounding Profile
    Key that the system uses to adjust the order proposal quantity to deliverable units.
    Procedure
    In Customizing, enter a threshold value from which the system should round up to the next value per deliverable unit:
    If the requirements value exceeds the first threshold value, the system always rounds up to the next multiple of the level found
    If the requirements value falls below the first threshold value, the system copies the original requirements value.
    Two other types of rounding exist:
    Dynamic rounding profile:
    These profiles are used to round up quantities to logistical units of measure (for example, layers). The contents of a logistical unit of measure does not have to be know when creating the rounding profile. It is determined by the master data from the material master.
    Rounding profile with quantity to be added/subtracted
    With these profiles, the given quantity is changed either by adding a percentage or subtracting a percentage.
    Only static rounding profiles are taken into account in requirements planning. Neither dynamic rounding profiles not quantity addition/ subtraction are taken into account.
    Examples
    A material's base unit of measure is 1 unit; the purchase order is to be delivered in layers (1 layer corresponds to 5 units) or in pallets (1 pallet corresponds to 8 layers which contains 40 units).
    You maintain the profile as follows:
    From a requirements of 2 units, the system is to round up to 5; from a requirement of 32 units, the system is to round up to 40.
    This results in the following order proposal quantities:
    Requirement from 1 -> 1 requirement from 31 -> 30
    Requirement from 2 -> 5 requirement from 32 -> 40
    Requirement from 6 -> 10 requirement from 74 -> 80
    Requirement from 7 -> 10
    Dependencies
    If no rounding profile has been entered, the system uses the rounding value entered in the material master record for the planning run
    Kind regards
    Sue

Maybe you are looking for

  • Can i plug a DVI-Video adapter when system is on?

    Apple manual says that i should shutdown my machine, but doing that many times a day is not very usable and since i have noticed huge GUI performance drop when using two monitors i cannot keep the DVI to Video adapter connected all the time. Thus i w

  • Applications not starting or loading

    Seems odd my safari, mail adobe reader apps do not open at all. The mail icon will jump up but will not load anything. Any ideas. Seems strange mostly apple apps. Is there an app or something that opens these and is not working.

  • Ruby PKGD Clone

    Note: by clone I refer to sharing packages over a network from a number of ad-hoc machines, this is not actually functionally compatible with Xyne's pkgD and other tools Hi all, I have written a Package Daemon "clone" in ruby. It relies on having ava

  • Install itunes without bonjour or apple mobile device support

    For my company having bonjour is not an option and is considered a security threat,even after uninstalling bonjour it still appears in the registry. Therefore it was nessesary to put on our company server the msi file for itunes. To install itunes WI

  • Exiting from a program

    I've created an exit button, but it's not working. Any suggestions? I've tried Java Script and No Action.