Sales order- Quantity Contract

I need your expert advice.
When we generate a sale order (using T-code VA01) against a quantity contract system will givee error message if you exceeds quantity  contract's order quanity.
How can SAP generate error message (pop-ups) in this situation. where can we have these control in configuration.
Similarly i want this control between our cistomized sales documents.
Regards,
Sumith

Hi,
Its very normal that you can enter order quantity more than the reference contract quantity flowing from the contract. This is standard functionality.
Additionally it is not recommended that you change the standard SAP standard messages from warning to error etc.
Better you should go for an exit. Use following details:
Goto SE38 & enter include MV45AFZZ
Then goto user exit "USEREXIT_SAVE_DOCUMENT". In this you should tell your ABAPer to write code such that it compare the previuosly refered quantity & hence does not allow to enter quantity more that that in contract. You will get error message while saving the document & system will thus prevent extra entry of quantity in sales order.
Hope this solves your requirement
Regards,
Dhananjay

Similar Messages

  • Open sale order quantity in VA05

    hi all,
    can anyone please tell me the function module or bapi or Table to find out open sales order quantity coming in VA05.
    regards.

    First of all define what is open , is it created but notdelivered , or delivered but not invoiced.
    The table VBUP has flags for statuses eg
    A     Not yet processed
    B     Partially processed
    C     Completely processed
    A for open , B for partial C for complete , so by checking this table you will find which are actually delivered or invoiced completely.
    Tcode V.02 gives u this option.

  • Open Sales Order quantity & value

    Hi,
    We have a requirement here of report to show open sales order quantity & value for any month (monthend). There is a datasource 2LIS_11_V_ITM which gives Open order quantity. I have created an ODS with 2LIS_11_VAITM & 2LIS_11_V_ITM which can give me desired qty & value, but only for date of last data upload and not for date in the past.(and to get that, I have to sumup all open orders quantity without using any date filter)
    I am thinking of creating a Infocube over this ODS to update the Open Order qty & value at the monthend (Snapshot scenario). But to update this, I am not able to get the logic for date to be used in time dimension.
    If anyone can think of the solution or any alternate way to develop this kind of report, your help/suggestions are most welcome.
    Thanks,
    Vikram.

    Hi Vikram,
    Find the link, which solves u r requirement
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/bi/arobustdesignofopensalesorderdataflow
    Thanks & Regards
    Ramakrishna Kamurthy

  • SALE ORDER QUANTITY LESS THAN DELIVERY QUANTITY ? NO CECK IN SAP ??

    Hello friends,
            I created a sales order of quantity  10 , having two material codes each having quantity 4 and 6 . i created delivery for the one by putting delivered quantity 4 and save , then i created delivery for second and put delivered quantity 8 which was greater than the sale order quantity left ,system saved the delivery and didn't popped any error message.  
                                     Does SAP have options to over come this mistake by end users.
    regards

    Dear Joshi,
                      Please get in touch with your abap er as there user exits which can be written to avoid this situation.
                      Let me explain you further one more situation.
    First one, Your query is if for  item A ord qty is 6 the system saved the delivery with 8 qty which is greater than ordered quantity.  I know the gives a warning doing this.
    Second Situation :
    Say item A ordered qty is 5, and i made a delivery for 3 and saved it. Now the open quantity on the order is only 2. (5 -3 =2).  But one of our users reduced the ordered quantity to 2 despite saving a delivery with quantity 3.
    so the situation is ord qty is 2 and delivered is 3 qty. which is again wrong. But while reducing the ordered quantity less than the delivered quantity the system gives a warning message telling "  ORDERED QUANTITY IS LESS THAN DELIVERED QUANTITY ".
    Also just imagine we made delivery for qty 5 and invoiced it.After which you reduced the delivered quantity to say 3. So delivered is 3 but invoiced is 5.
    Hence for these kinds of practical problems we have addressed them through user exits with the help of our ABAP'ers by turning those warning messages into error messages by selecting the suitable message class.
    Hope the explanation helps you. And thanks for all your patient reading.
    Reward points if useful.
    Thanks & Regards
    Sadhu Kishore

  • Open Sales Order Quantity

    Hi,
    Does anyone know what table & field is the open sales order quantity stored?
    Thanks.

    Hi Marc,
    U can get the open order quantity like this.
    First go to VBFA table. Give sales order number, item and document category as J(for delivery) in the fields VBELV(Preceding sales and distribution document), POSNV(Preceding item of an SD document), VBTYP_N(Document category of subsequent document) respectively. If an entry exist then that means the order has subsequent document created(Delivery in this case). If not  then that order is open.
    if it is open order then u can get the quantity from
    VBAP-KWMENG.
    Here subsequent document to the order depends on customization of ur system. In general subsequent to order will be delivery. But there is a possibility to have other than delivery as subsequent to order. So contact ur functional for more inputs on this.
    Thanks,
    Vinod.

  • Tracking the actual sale order quantity

    Hi Friends,
    How to track the actual sales order quantity given by the customer.
    Ex: we assume the customer has placed an order of 100 units and stock is only 90 so we create the sales order for 90 units only.
    How to find out the difference of 10 units as a report in standard sap system.
    Thanks
    AJ

    Dear AJ,
    This is how normal sales process works.
    You create Sales Order line item for the quantity that customer has requested. (eg: 100)
    Then you do a ATP for that Line item. Let's say you have only 90 in the stock. In that case system will confirm 90 for the sales order line item. (You can see the confirmed quantity in the Schedule line tab)
    Normally we don't change the LI quantity as per the ATP confirmed quantity (i.e 90). Because then we loose the visibility to the customers original requested quantity (i.e 100).
    Say you don't change your Line Item Order quantity to 90. Then your delivery & billing will be for 90.
    So you can see in VA05, Order quantity as 100 and confirmed quantity as 90.
    Your sales reports will show delivery & billing as 90. So that you have a clear visibility to the original order quantity, delivered quantity & billed quantity.
    Further if remaining (open) quantity 10 is appearing your MRP & creating troubles, please use Line Item Rejection Reason as Completed. So that everything is perfect.
    Coming back to your issue.
    Since your changing LI quantity to 90, you cant see 100 in the VA05 report. It always show the existing sales order line item quantity, which is 90 in this example.
    Only way you can find your original sales order quantity is in the Line Item / Change Log.
    This can be view by selecting below Menu option.
    Environment -> Changes
    If you execute it for the relevant Line Item, you can see the Change log. In that by double clicking relevant quantity change line, you  can see the old value & new value. (In this example 100 & 90)
    But that is not a good practice to do as changes will show all quantity changes that you might do based on  customer request. (Imagine if you customer ask to change it later to 95 not 100).
    In that case change log will display 100 to 95, then 95 to 90. So your loosing the required visibility.
    Hope this is helpful to you !

  • Link sales Order with contract

    Hi,
    We have created a sales orders using va01,but without referencing to contract.
    is there any way to link these sales order to the old contracts.
    Pls help,
    Thanks

    Hi,
    If your sales order has subsequent documents then it is not possible to link to your old contracts.For such orders this option will be disabled.
    For those order that don't have subsequent orders:
    Goto VA02 T.Code.
    Enter the order number.
    Enter.
    Ensure that the customer numbers are same in both.If not change the custoemr numebr in order.After that Click on Sales document-->Create with reference.While changing the customer the taxes will be redetermined.
    Enter your contract number.
    Click on copy.
    New material will be added here to your old one.If you want then you can keep this or delete the material of your order and then save.
    Or you can assign your sales order to contract also.
    Goto VA02,Enter your order number.Edit-->Assign contract.Her you can assign either Header or item also.
    Regards,
    Krishna.

  • Condion Type "VPRS" should not appear in Sales Order, Inquiry, Contract

    Hi Gurus,
    Normally when you create Sales Order/Inquiry/Contract,  in the Condition Tab VPRS Condition Type will appear and show the cost price of Materail from the Material Master.
    My Client requirement is, VPRS Condition type has to be calculated as "Statistical" Contion but IT SHOULD NOT APPEAR IN THE CONDITIONS TAB IN THE SALES ORDER/INQUIRY/CONTRACT.
    Thanks,
    Bala

    hello, friend.
    try sapnote 105621.  this is about restricting view of condition types (i.e. vprs) in sales orders by creating anauthorization object for cond types..
    i wish to discuss our experience with this, as we had the same business requirement.
    first, we simply deleted vprs from the PP.  this did not affect financial accounting, until the client decided to implement std cost estimates.  we had to bring back vprs.
    now, we did the sapnote, which required joint efforts among SD, ABAP and BASIS.  although we were able to restrict view of vprs in the cond tabs at itm level, this was still visible at header level.  also, a resourceful data encoder can always find ways to view the same in, for example, the document flow or materials movement data.
    however, try this and maybe you will get it right.
    regards.

  • Sales order quantity billed instead of delivered quantities?

    Hello.  I am having an issue with billing delivered quantities.  This is the scenario:
    3rd party, non stock materials, are assigned to a network activity in cj20n.  These items generate a PR which is then converted to a PO and goods receipt is posted to the network activity. A sales order is created and assigned to this wbs.  Delivery from project is then carried out in CNS0 and picking and goods issue is posted in vl02n.  If full quantity received to project is not issued out in vl02n, upon billing in vf01, the total sales order quantity is billed.  How do I alter my configuration such that only delivered quantities are billed?

    Hi
    Its seems that your sales order quantity billing issue has been solved.If it is solved then kindly share with us,how the problem has been solved.As there prices are not picking in the billing document, so please check the pricing type that has been maintained in the VTFL copy control.Secondly also check in VOV7 wheather item category is relevant for pricing has been maintained or not.
    You get the delivery document to determine prices from sales order to delivery through copy controls.
    NOTE:If the issue(Sales order quantity billed instead of delivered quantities) has been solved then kindly close the thread and  post your issue through new thread
    Regards
    Srinath

  • Sales order quantity in MD04

    Hi Gurus,
    This is my problem -
    51 links (Base UoM) = 2.5 feet (Sales & Production UoM)
    Delivery unit = 53 links
    In VA01 -> when I entered Sales order = 12 feet system automatically rounded it to 12.990 feet.
    I also received a pop up showing "Item 10 rounded to 265 lk. Rounding reasons 1,2,8 -> long text"
    In MD04 -> when I look at the Sales order quantity = 264.996 links.
    Ran MRP and the planned order quantity = 265 links
    There is a surplus inventory of  ------------> 0.0004 links
    Settings in CUNI: (due to business reasons - Links can NOT be in Decimals. Feet has to be in decimals)
    CUNI
    Decimal places
    Decimal rounding
    Link
    0
    0
    Feet
    3
    3
    Please help

    Thanks a lot Dave. You are the only guy who really understood my issue in the first place.
    And you asked all the right questions.
    Just for the sake of our discussion - I created a brand new material (material setup is same as production client). MRP settings- Proc type E, PD, EX, no rounding profiles, strategy 40, Collective.
    Material master sales view
    Rounding on Sales order
    MD04 before MRP run
    MD04 after MRP run
    MD04 in Feet
    Production order conversion
    Please let me know if you can not see these images.
    I really appreciate your help.
    Sorry for the delay in reply. I was travelling.
    Thanks

  • Third Party Sales - Billing Error - Sales Order- PR- Contract- PO

    Dear Experts,
    I came across this scenario where the order related invoice was not getting created.
    Regular Scenario : Sales Order ->PR->PO->MIGO->MIRO and SD Invoice : This is working absolutely fine.
    New Proposed Scenario : Sales Order -->PR->Contract->PO->MIGO->MIRO and then SD Invoice. The problem is that in document flow of the sales order, the PO created with reference from the contract (contract is created with reference from PR) is not showing up in the document flow. Since it is not showing in the document flow, the qty to bill is zero (billing relevance is F). The log in VF01 tells that there is qty to bill.
    Can you help.
    Regards,
    AHD

    Enter PR no  In PO while creating it with refereence to contract.  Po will get updated in SO doc Flow.
    In future do not convert PR into contract as it does not have scdedule lines to be sent to vendor, you need to release po for it to send schedule, as the result there is break betwween relationship chain as PR no is not copied into PO.
    Regards
    Sanjay Kohli

  • Purchase Order quantity must not Exceed Sales Order quantity

    Dear Experts
    My requirement is when i am creating PO in me21n and taking Document type as Domestic PO and giving account assignmnet as "C" Sales Order, must have to enter Material and quantity and must have to Give Sales Order number and item no in account assignmnet tab , the quantity i am entering in PO must not exceed my Sales Order quantity that is my requirement.
    Regards
    Abi

    Hi,
    You do not create a PO with reference to sales order. In PO you enter sales order number for reference. A purchase requsition can be created directly from Sales order or through MRP depending on the system settings. Then this PR can be converted to PO. here you can restrict the quantity. As in order to change the quantity in PR also you will have to change the quantity in sales order.
    Regards
    Raj

  • Sales Order quantity Must not exceed Purchase order quantity

    Dear Experts,
    My requirement is when i am creating a Purchase order giving referenece as Sales Order .. system must not allow the user to enter  more than Sales order quantity.
    Ex : Sales Order 1234
            Material : AAAA
            Quantity : 100
    while creating a Purchase order for Mat AAAA giving  reference of Sales order i.e 1234 and quantity 150 system must not allow user to enter more than sales order quantity . If user wants to create PO for 150 he must have to ammend the sales order from 100 to 150  is it possible.
    Kindly do the needful
    Regards
    abhi

    Dear Abhinav,
    First of all, Purchase Order will get created with reference to Purchase requisition (T. Code: VOV7 --> Item Cat.: TAS --> Tab: Transaction Flow --> Field: Automatic PO Creation), and not with reference to Sales Order.
    This is Purchase requisition, which gets created with reference to Sales Order; based upon settings in:
    T. Code: VOV6 --> Schd. Line Cat.: CS
    Order Type            NB    Purchase Requisition
    Item Category         5     Third-party
    Acct Assgt Cat.       X     All aux.acct.assgts.
    Now, coming to your requirement (based up on my inputs),
    My requirement is when i am creating a Purchase order giving referenece as Sales Order .. system must not allow the user to enter more than Sales order quantity.
    To Restrict Purchase requisition quantity in PO, then in T. Code: OMCQ
    Or, Path: SPRO > img > MM > Purchasing > Environment Data > Define Attributes of System Messages
    Here make following messages as Error;
    06 076 Materials of requisition & item & alr. ordered in full
    06 254 Order quantity greater than requisition quantity
    Now,  in Purchase Requisition, if it is created for 100 qty (with ref. to Sales Order) and if you adopt the same in Purchase Order and try to change the qty to 150, then system will not allow you change and throws the error.
    Best Regards,
    Amit

  • Function Module or BAPI to update Sale Order Quantity (VBAP-kwmeng)

    Hi,
    I have a requirement to use a Function Module or BAPI to update Sale Order Quantity (VBAP-kwmeng), which one (Function Module or BAPI) should I use? is there any sample codes?
    Thanks a lot!!

    Hi,
    *& Report  ZTEST
    REPORT  ztest.
    DATA : wa_header TYPE bapisdh1x,
                i_item TYPE TABLE OF bapisditm WITH HEADER LINE,
                i_itemx TYPE TABLE OF bapisditmx WITH HEADER LINE,
                i_return TYPE TABLE OF bapiret2.
               wa_header-updateflag = 'U'.
               i_item-itm_number = '000010'.
               i_item-target_qty = '4'.
               APPEND i_item.
              i_itemx-itm_number = '000010'.
              i_itemx-updateflag = 'U'.
              i_itemx-target_qty = 'X'.
              APPEND i_itemx.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument               = '1234567890'
        order_header_inx            = wa_header
      TABLES
        return                            = i_return
        order_item_in                 = i_item
        order_item_inx               = i_itemx
    Hope this will help you.
    Regards,
    Anand.

  • Sales Order Quantity in Base unit of measure

    Hi All,
    I have a requirement in which I need Sales Order quantity in base uom. However, I noticed that 2lis_11_vatim doesn't extract this figure but instead has numerator and denominator in the extractor by which we would be able to calculate it. But, I am bit reluctant to do so as it might have an issue with rounding values.
    I know that there are some standard function modules in R/3 which do this conversion. Is there any such FMs in BW to do this conversion? If not, is there any other way to get the sales order quantity in base uom other than calculating it using numerator and denominator?
    Any help would be highly appreciated.
    Rgds,
    James.

    Hi Ajeet,
    Just to confirm, is this the formula you normally use?
    Quan * N/D
    Quan = Quantity to be converted
    N = Numerator
    D = Denominator
    Rgds,
    James.

Maybe you are looking for

  • Mac Pro DVD drive door sticking problems...

    Hi all... The aluminum drive door on one of my Mac Pro's 2 DVD drives sticks in the open ("down") position about 9 times out of 10 when in use. It has done this since I received it from Apple. Not a functional issue at all, so I didn't even think abo

  • How to install networked Epson Expression 10000XL?

    Hello, I have an Epson Expression 10000XL scanner with an ethernet card connected to my network. The scanner workes fine, but after makeing a clean install of OS X Mavericks I'm lost. The old drivers won't work, and the new ones are supposed to come

  • Windows Update = dead X

    I noticed that Windows Update had a new X-Fi driver so decided to allow it to install.... huge mistake. My sound cut out, and merely rolling abck the driver didn't cut it. I uninstalled all of the apps/drivers and reinstalled from the web download th

  • File attachments and Acrobat Reader

    I have prepared a PDF form that needs an associated Word document to be filled in as well. At the moment, I have done this by providing a hyperlink button on the PDF form and this works fine. However, it requires that both the PDF form and the Word f

  • SAP 9 pl 8 Instalado no W8 mais quando logo em umabase da Crash Error e Fecha o SAP

    SAP 9 pl 8 instalado no W8 mais quando se loga em uma das bases apresenta o Crash Error e fecha o Client.