Minimum and maximum quantities in sales order

Hello friends,
Can anyone tell me how to maintain minimum quantity in sales order, (Not Minimum order quantity of material master) as only maximum (target) quantity is maintainable in sales order at Item level? So after this development in sales order, one can enter two quantities (minimum and maximum) so that sale can be done between this quantity range.
I know this is not possible without exits or developments, but please tell if someone has came across the same scenario which exits used by you.
Thanks in advance
Warm regards
Amit

Min/Max quantity by sales order line items, but not by material?
You can have your abapper code the Additional Data B screen user exits at the line item level.  You will add two quantity fields - min qty and max qty.  You will also have to code USEREXIT_CHECK_VBAP to enforce the rule that order quantity is between the limits.

Similar Messages

  • Minimum and maximum allowed order qty

    we want to configure minimum and maximum allowed order qty in STO for  our internal stock transfers.
    plz suggest the config steps to be follow for deploying this activity.

    Hi
    I think this requirment is for  Retail industry, like stock transfer between stores, clarify
    Its not possible in standard I hope, because its purchase order related, check with ABAPer you can implement BAPI and control this setting error message if quantity is differ from Min and max you entered. system should not save the STO if quantity is mismatch, you can achive this through User exist or BAPI.
    regard
    Satish

  • Minimum and maximum order qty

    we want to configure minimum and maximum allowed order qty in STO for our internal stock transfers.
    plz suggest the config steps to be follow for deploying this activity.

    My requirement is for intercompany stock transfers scenario.
    assume that there are plants 101 and 102, when ever STO through ME21N is occuring system should cross check with minimum order qty for given materials failure of which system should give error message, same way from supplying plant system should check minimum delivery qty for receiving plant failure of which system should give error message and should not allow for outbound delivery.
    suggest the process need to configure.

  • Changing quantities in sales order with reference to quotation

    Hi,
    Quotation has been created for Product -- A, 10 quantities.
    Sales order created with reference to quotation, system copies 10 quantity in sales order.
    How do you restrict in sales order end user should not change quantities, system should not allow for changes by end user. If end user changes Qty system should give an "Error message", so that sales can not be saved.
    Could you suggest solution ASAP.
    Thanks in Advance.
    Regards,
    vamsi.

    Normally You will have a warning message set for this. under class V1. if you want the error to be hard error then you would have to hard code it in a user exit under mv45afzz "userexit_save_document_prepare" where u can check if the quantities in the quote and sales order are different and create a hard error.
    the other option which I am not sure if it is possible is to propose the eror in message class v4 which you can control thru customisation under SPRO>SD>message settings
    reward points if it helps
    regards
    Biju

  • Query for calculating raw material requirements for the remaining quantities in sale order.

    Dear SAP Experts,
    Clients requirement :
                                         Client wish to know the quantities of raw materials needs to run the production order inorder to complete the remaining quantities in sale order.
    Need Clarification:
                                  I"m using the below query for this requirement. I wish to know whether this query suits for my clients requirement or not. If its so, I need to know how to group by T4.[Code] (Raw material Name)   and need to get the sum of    T4.[Quantity]  (BOM quantity)      and  (T1.[OpenQty]*T4.[Quantity]) as TOTALQTY under each raw material group
    SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode],T0.[CardName], T1.[ItemCode], T1.[Dscription], T1.[Quantity] as salesorderQty , T1.[OpenQty], T2.onhand, T4.[Code] as Raw material Name,T4.[Quantity] as BOMQTY,  (T1.[OpenQty]*T4.[Quantity]) as TOTALQTY FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.[DocEntry] = T1.[DocEntry] INNER JOIN OITM T2 ON T1.[ItemCode] = T2.[ItemCode] INNER JOIN OITT T3 ON T2.[ItemCode] = T3.[Code] INNER JOIN ITT1 T4 ON T3.[Code] = T4.[Father] WHERE  T0.[DocStatus] ='o' 

    You're posting in the Portuguese B1 space.
    You might want to post in the English one: SAP Business One Application

  • Opening and closing stock with sales order and with out sales order

    hello,
    any body please help me my client want to check opening stock and and closing stock in areport.
    material contains batch and some material with sales order and some are with out sales order. my client is asking this in a single layout. please tell me isthere any teport or bapi or function module to get this report.
    this is very uregent. and layout is requesting like opening stock, production stock, sales stock and closing stock.
    please guide me to get this report.
    Thanks & Regads
    Bhakta

    Transaction MB5B
    For sales order related use specila stock as E and use radio button indicator in stock type
    For stock w/o sales order, use special stock indiactor as "space' and stock type valuated stock.
    to get a perticular month,opening stock/closing stock enter the start date/end date as month start and end date.
    See the o/p which will give the stock as required by you

  • Difference B/W Delivery plant  and item plant in Sales Order

    HI,
          May i know Difference between  Delivery plant and item plant in Sales order and what is the use of those fields.What is the process of raising sales order for different plants.
    Thnks&Rgds
    NAG
    Edited by: NAGA SUDHIR on Apr 3, 2009 6:10 AM

    HI G. Lakshmipathi,
                                   Thnks for the reply.Yes i am comparing (DWERK (at header level) and WERKS (at item level)) these two fields.
      Any how we can give only one plant in Customer Master, we are not maintaining Customer/mtrl regard (Not required in our company scenario) and we have extended MMR to different plants.
    So as per ur answer u went me to change only WERKS (at item level) while raising sales order for different plants.Is it enough?
    Thnks&Rgds
    NAG
    Edited by: NAGA SUDHIR on Apr 3, 2009 6:46 AM

  • Cost Center and GL account in Sales Order / Delivery

    I have a requirement where we want user to specify what cost center and GL account should be used while posting goods issue.
    Currently GL account and Cost Center is automatically determined based on OBYC configuration.
    Is there a way  user can populate Cost center and GL account at Sales order or Delivery document level and what ever they have specified will be used for Posting Goods Issue.
    If user doesnt specify anything then standard OBYC determination should take place.
    I looked at OVF3 transaction which can default cost center (though no GL account) but its not useful in our requirement.
    I also looked at OKB9 transaction but not sure if we can use it either.
    Again we want user to enter Cost center and GL account at either SO or Delivery document level and then that should be used for Post goods issue.
    Thanks in advance.

    Hi,
    In delivery under tab GOODS MOVEMENT DATA
    After valuation type column COST CENTER & G/L Account column available
    Now with the help of FI consultant make it change mode so user can maintain  also I observe that if delivery created without reference to order then that fields are in change mode means user cn maintain data for this but if with reference to order it is disable mode
    Check in t-code OMJJ FIELD SELECTION FOR MOVEMENT TYPE
    Put movement 601
    Then select movement type and double click on filed selection (from 201)
    Then go to additional account assignment and for cost centre make it optional or requirement
    or Else under field selection enjoy for movement type 602 indsert field KONT0 and KOSTL and check
    If this can not work there is option field selection for G/L account check that with FI
    Kapil

  • Custom program for availability check and update for existing sale order at Item level(VA02)

    Hi,
    I came to know Bapi_Saleorder_Simulate can be used for availability check and update an existing sale order.but there is no sample program explaining the process.I have tried this by passing parameters ORDER_HEADER_IN , ORDER_ITEMS_IN  ,ORDER_PARTNERS and ORDER_SCHEDULE_EX(for getting details),also i have assigned the sale document number ,custom document type(ZSO) in ORDER_HEADER_IN . while executing the BAPI I am getting the error external number range is not assigned for the document type ZSO . I am confused on seeing this error. It is possible to do availability check for existing sale order using this BAPI. Please explain how to achieve this.It will be really helpful if it is expalained with an example.   
    Regards,
    Shanmuga

    Hello, I think you may have been misinformed about this BAPI updating a sales order at item level. As far as I understand it this BAPI can be used to simulate the creation of a sales order which obviously would include and ATP check. This is why it is giving the error because it is simulating creation but you are entering a value in a field that should be automatically generated (i.e. the sales order number). For change the sales order at item level have you looked at BAPI_SALESORDER_CHANGE? I pretty sure this BAPI both updates sales order (header or item level) and can do an ATP first.
    Points are always welcome if you feel an answer has been helpful.

  • Change Datepicker Minimum and Maximum Value

    Hi everyone,
    I have a date item with minimum and maximum dates from 2 hidden items.
    The problem is that when i change the value of thos 2 hidden items , the minimum and maximum dates in my datepicker doesn't change.
    I've tried refreshing the date item but it still doesn't work.
    Kind Regards,
    Cearnau Dan
    APEX 4.0.1

    Geert,
    Thanks for your reply. I tried making the hidden item to not protected as you suggested. Changing it to not protected had no effect on setting the Min/Max values of the date picker.
    After reading the following thread I have had some success using javascript to the min/max option of the date picker.
    Re: Dynamic Action On Date Picker
    Documentation on jquery date picker.
    http://jqueryui.com/demos/datepicker/
    Thanks,
    Todd

  • How can we revise the pricing both at header and item level of sales order?

    Dear All,
      Now there's one issue of the pricing to me. i want to revise the pricing both at header and item level of sales order. but after i finished the cutomize and tested it, it's more different as i thought. i found that the pricing can revise at the one side only,for example, if i revise the pricing at item level and it's grey and can't be revised at the header. on the other hand, it's the same result what's happened at item.
      So, in my opinion, we can't revise the pricing both at header and item, right? if not, please give me more advices and teach me how to solve the problem. thanks a lot.

    Dear Lakshmipathi,
      Thanks a lot for your kindly and useful answer for me and I learn more for the pricing technology.
      I didn't notice the way that you reminded ago therefore I also saw the button at the condition tab. And your suggestion makes me know more.
      And I had tested the way that you said, I met with a question. Below is my opinion for my testing.
      I had created one SO and the pricing was $10, then I revised the pricing from 10 to 15 by VK11. It can't be updated automatically at SO and I must update it manually by clicking the "Update" button. This is OK for my testing, but I have another question to disturb you for the use of "Active" button. When I click the button and nothing is responsed, it's quite different what you said. So, please give more detail for the Active button. Thanks a lot.

  • Hide the cost and margin fields on Sales Orders and Invoices

    Hi all,
    I need to hide the cost and margin fields in Sales Orders and Invoices. We sell our products to our employees sometimes, hence we don't want them to know cost and margin information.
    Can this be done?
    Cheers

    Go to VOV7 & as per the Item category ,de - select the Check Box Determine Cost.
    Else remove the Condition Type VPRS & Margin Condition type from the Pricing Procedure
    Best Regards,
    Ankur

  • Userexit to Restrict the VIEW and MODIFY of the Sales Order

    Hello Everybody,
    I need to do the following task.
    I want to restrict to VIEW and MODIFY the sales order for particular sales office or sales group.
    I need  user exit for that.
    Please help me by providing brief information.
    Thanks
    M Rahman

    Hi Rahman
    Instead of changing the DISPLAY and CHANGE status of Sales Order,
    i think it would be better if u make a check at the time of SAVE.
    When the SO is being saved in VA02,check the sales office or sales group
    and then give a error message to the user, saying that he is not authorised to make changes to the
    SO for this particular sales office or sales group.
    For this you can use the inckude MV45AFZZ,and USER EXIT userexit_save_document.
    Sample Code:
    IF SALES_OFFICE EQ 'XYZ'.
    MESSAGE 'Change not possible for this Sales Office' type 'E'.
    ENDIF.
    Regards
    Hareesh Menon

  • How to set minimum and maximum X scale in the XY graph if i have a X scale time format ?

    Hi,
    i choose in the picture enclosed, a time format for the X scale of the XY Graph.
    The problem is that i am not able to set the minimum and maximum of the X scale: In fact the property nodes of the minimum and maxinum X scales ask for  double as input.
    But i need to set my minimum and maximum X scale to be a time (because I already set the X scale format to a time)
    Could u help me please ?
    Samer,
    Attachments:
    scale.JPG ‏8 KB

    please i have another problem:
    i put the XY Graph in a while loop with maximum and minimum Xscale as property nodes inputs.
    The problem is that when i make a zoom  i can just see the zoom for a little while and then (because of the while loop) the Xscale is updated.
    is there a method so that the Xscale be updated just when i change its value ?
    or Could u tell me how could i zoom properly ?
    Samer,
    Attachments:
    zoom.JPG ‏11 KB

  • Significance of Inboun and Outbound queue in sales order replication

    Hi CRM Leads,
    What is the significance of Inbound Queue and Outbound queue in saleas order replication from CRM to ECC.
    What exactly happens in Outbound Queue and Inbound Queue.
    Thanks,
    Sandeep
    What

    Inbound - Tcode: SMQ2 :  Inbound in the context of CRM and this queue shows the business transaction, master data and configuration data that are coming from ECC into CRM .
    Naming Convention for Queues
    The names of queues for data transfers from an ERP back end to the CRM server are made up as follows:
      R3A (from ERP back end to CRM)
        I for the initial data transfer / for Data Synchronization
        D for the delta data transfer
        U for loading to the ERP back end
        R for Defining Requests
        <Object> Name or part of object name, or the name of the higher-level independent object
        <Key> Only delta queues are subdivided by keys
    Outbound - Tcode SMQ1 - Outbound in the context of CRM and this queue shows the transactions and data that are going from CRM to ECC
    See more on [Using CRM Queues|http://help.sap.com/saphelp_crm70/helpdata/EN/49/2d9d9707361903e10000000a42189c/content.htm] following the link.
    Read the [CRM Adapter Framework|http://help.sap.com/saphelp_crm70/helpdata/EN/49/2e33a2a6c51d24e10000000a421937/content.htm] for advanced learning.

Maybe you are looking for

  • Circular linked list while loop

    i have a circular linked list and i'd like a while loop to iterate though all of them. my problem is that it always excludes the last node. i know why, it's due to the fact that "current.next != alive" skips it from ever accessing the last node. i ca

  • Just upgrade ipad 3 to ios 7.1.1 and i can't play videos on you tube using safari

    Hello, i just upgrade my ipad 3 to ios 7.1.1 and i can't see most of the videos on you tube. I use Safari and I don't have the you tube app installed. Videos that used to play without problems, now the screen goes black and that's it, without any mes

  • Changing selectindex in AS of a datagrid doesn't work!?

    I'm having a real problem changing the selectedindex of a datagrid on the fly after a re-sort (Using AS3 with Flex4). See below. Particularly the function call comments. My sort works and it gets assigned to ldimmer_checkChannel.selectedIndex with th

  • Lomboz J2EE View not working

    Lomboz J2EE View not working always give such type error java.lang.NoClassDefFoundError: org/apache/jasper/Options      at com.objectlearn.jdt.j2ee.core.Project.initContainers(Project.java:370)      at com.objectlearn.jdt.j2ee.core.Project.init(Proje

  • Pinned App Tabs will not shrink to flavicon. They stay large in width like a regular tab.

    On my Windows 7 machine, I can pin app tabs but they never shrink to a flavicon. They stay large in width and look like a regular tab so there is no space saving. I do not have this problem on either of my XP machines.