Change (convert) delivery quantity

Dear all,
Does anyone know how I can change the delivery quantity ?
What we ant to achieve is the following:
- an order has been created with a quantity in sales units for example 10 BAG
- at creation of delivery, we would like to convert the sales order quantity to the unit of issue (MARC-AUSME) if this one is different from the sales order sales unit (for example PAL iso BAG) ...
I tried a few things yet to change the quantity (and unit) to the converted one, but it all didn't work ...
Any idea how this can be done ?
Thanks in advance !
Greetz,
Kurt.

  select single kwmeng vrkme into (lv_kwmeng,lv_vrkme)
                             from vbap
                             where vbeln = lips-vgbel
                               and posnr = lips-vgpos.
  select single ausme into lv_ausme from marc
                                    where matnr = lips-matnr
                                      and werks = lips-werks.
  if sy-subrc eq 0 and lv_ausme is not initial.
    call function 'ZCF_UT_UNIT_CONVERSION'
      exporting
        matnr_imp      = lips-matnr
        unit_new_imp   = lv_ausme
        unit_old_imp   = lv_vrkme
        value_old_imp  = lv_kwmeng
      importing
        value_new_exp  = lv_lfimg
      exceptions
        invalid_input  = 1
        invalid_output = 2
        overflow       = 3
        others         = 4.
    if sy-subrc <> 0.
*     message id sy-msgid type sy-msgty number sy-msgno
*             with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    lips-lfimg = lv_lfimg.
    lips-vrkme = lv_ausme.
  endif.

Similar Messages

  • How to block change of delivery quantity in VLO1N

    The system should not allow the change of delivery quantity in VLO1N, say if in sales order the quantity is 10 & they change in VLO1n as 12

    Hello Prem,
    What I understand from your post is that you want that a delivery document created for a Sales order should not allow the quantity to go beyond the Sales Order Quantity.
    You can do this by going to the following customizing entry.
    First determine the item category relevant to you here:
    LE -> Shipping -> Deliveries -> Define Item Category determination in Deliveries
    Then go to "Define Item Categories for Deliveries". Open the relevant item category. In the field "check overdelivery" Provide value "B" and save.
    Hope this helps.

  • Change in delivery quantity for batch managed items.

    30.09.2010
    Hi friends,
    We have activated batch management. During delivery after the batch is determined and if i want to change the delivery quantity say for example from 50 to 30 then first i have to go and adjust the quantity in the batches to toal 30  and then come back and change the delivery quantity from 50 to 30.
    After searching the forum i have found  user exits, but other than the user exits is there a standard configuration wheren if i change the delivery quantity the quantity is adjusted in the batches.   Please advise.
    Regards,
    Udaynath.

    Udaynath
    Did you try working with the batch strategy config?
    Try working with fields a) Over Del allowed, and b) Qty proposal.
    Path: SPRO/IMG/Logistics - General/Batch Management/Batch Determination and Batch Check/Strategy Types/Define Sales and Distribution Strategy Types
    Hope this helps. Let me know.

  • System doesnt let me change the delivery quantity greater than sales order

    Hi,
    In delivery document , when I change delivery quantity greater than related sales order quantity , system just show the Message no. VL363 but let me change the quantity.
    Is it any way that system do not let me to change delivery quantity greater than its related sales order?
    thanks.
    Lida.

    Is it any way that system do not let me to change delivery
             quantity greater than its related sales order?
    Go to zeroVLP,  select the item category and maintain "B"  for the field  Check overdelivery

  • VL32N Change inbound delivery quantity after a partial goods receipt

    Dear.
    I have created an inbound delivery using VL31N from a purchase scheduling agreement.
    I have executed a partial goods receipts using MIGO for the inbound delivery.
    I need to reduce the delivery quantity for the inbound delivery using VL32N but the system donu2019t allow to change the delivery after a goods receipt.
    How can I proceed ?
    Thanks for your help.

    Hi,
    When a (partial) goods receipt has been posted to an inbound delivery item, the possibilities to change this item are restricted.
    If the delivery quantity is the same as the goods receipt quantity, then the item is fully posted goods receipt. No change of quantity is possible.
    If the delivery quantity is still higher than the goods receipt quantity, you can create one or several new TO's for the rest and
    confirm, if needed, with differences.
    You have also the chance to adjust the delivery quantity to the picked (and already posted) quantity with VL32N and menu:
    Edit => Copy Putaway Quantities as Delivery Quantities
    Please also have a look at note 796053.
    Hope this can help
    Regards
    Mauro

  • FM to convert Delivery quantity value from Sales unit to Base Unit

    Hello,
    Is there any Function Module to Convert the Delivery quanitityt(LFIMG) value form Sale unit of Measere to Base Unit of  Measure?
    Regards
    Irfan

    HI
    Use this FM
    call function 'CF_UT_UNIT_CONVERSION'
          exporting
           matnr_imp           = wa_z3iexdoc-matnr
    *   MEINS_IMP           = ' '
           unit_new_imp        = 'EA'
           unit_old_imp        = wa_z3iexdoc-vrkme
           value_old_imp       = value_old_imp                  "1.000
         importing
           value_new_exp       = value_new_exp
         exceptions
           overflow            = 1
           others              = 2       .
    Here
    wa_z3iexdoc-matnr  is material No
    unit_new_imp          is new Price Unit
    wa_z3iexdoc-vrkme is Old Unit
    value_old_imp         is Old Value
    value_new_exp       is converted value

  • Change delivery quantity from VL10B

    Hi.
    We are trying to change the Delivery quantity while creating outbound
    delivery from purchase orders using VL10B. I see that the program hits
    the exits of MV50AFZ1 and we have tried overwriting the fields LFIMG
    and LGMNG of LIPs in the exits. However, the values are not getting
    changed.
    Can you please let us know whether changing the delivery quantity in
    the Overview screen is at all do-able?
    Thanks.
    Anuradha SenGupta.

    Hi Monica.
    No this field is not getting up, However if I change fields like LFIMG and LGMNG then these fields get changed in the Picking screen in the item level. This screen shows up when I double click on the Quantity in the Overview screen and it takes me inyo the details for the item concerned. So I dont think this is an issue with COMMIT WORK as the information in the PIcking screen does get updated. I however want this to be reflected in the Overview screen - is that possible?
    Thanks.
    Anuradha.

  • How to Change Delivery quantity after creating Transfer order

    Hi
    I created a transfer order for my delivery with LT03. There is already non-ordered quantity in my delivery.
    delivery quantity is 5 but transfer order's quantity is 4.
    i want to change my delivery quantity without confirming the transfer order.
    Is it possible
    is there any customization or function for that work ?
    in se37, i tried BAPI_OUTB_DELIVERY_CHANGE. it returned the error "there is an unconfirmed transfer order"
    Moved to SD froum from LE forum at the request of OP
    Edited by: Csaba Szommer on Apr 18, 2011 1:21 PM

    If you set "Copy WM quantity as delivery quantity into delivery" for your WH/wm-mvt combination in WM/Shipping interface, the delivery quantity will be always adjusted to the picking quantity ("1" in field V_T3333-WMMUE).
    The same can be achieved manually as it was told you by Andrzej.
    There's no separate function modul to do this.
    When system is processing FCODE "KOMU_T" (manual process) the delivery quantity will be changed in include MV50AF0F_FCODE_KOMU in internal structure "lips":
          IF xlips-pikmg > xlips-lfimg OR likpd-kzebu IS INITIAL.
            PERFORM check_and_set_pikmg_lfimg CHANGING lf_subrc.
            CHECK lf_subrc = 0.
          ENDIF.
    But this is one thing, there's some preparation before this step and and the change in "lips" will cause the change of "xlips" later on, etc.
    So, it is related to several programs (includes) and forms.
    Please contact your ABAPer if you are not familiar with technical things.
    Edited by: Csaba Szommer on Apr 18, 2011 10:55 PM

  • VL02N-Delivery Quantity can be changed in standered by the user

    Hi Gurus
    In STO Scenario After Making The Delivery VL10B Replenishment Delivery in Background
    In Change mode Delivery VL02N Delivery Quantity can be changed in std by the user how can i stop the changing the delivery quantity what should i do
    please its my client requirement
    Thanks in advance

    Dear Balarengan
    I have searched in MM forum and found this thread which is relevant to your requirement
    Forum post in ERP - Logistics Materials Management (MM): STO - How to control Over delivery ?
    STO - How to control Over delivery ?
    hope this helps you
    SAP has a logic for not controlling the over delivery in STO  in standard (unlike sales order  to delivery we have the controls in Zero VLP or 0VLP for this) because STO happens between plants of a same company code or different company codes .The movement of stocks are between plants But in a normal sales the delivery happens to a customer who is actually a third person and hence a user can misuse the delivery quantity
    A plant and an external customer cannot be treated as same
    Hence in SAP standards over delivery is not controlled in standard settings like item category etc
    Regards
    Raja

  • Change Delivery Quantity in BADI

    Hi Friends,
        I am working on  a BADI and there is some requirement for which I need to change
        the Delivery Quantity. 
        Can you please tell me which structure finally updates the TABLE LIPS so that I can change the
        delivery Quantity.
    Regards,
    Arpit

    HI Arpit,
    Please go through the post given below which can resolve your question on updating LIPS table using BADI.
    Re: user exit for LIPS table update
    Best Regards,
    Krishna

  • Inbound Delivery quantity tolerance does not work while receiving goodsLM01

    Hi Friends,
    Please help me in filding solution to the below issue.
    A PO created with 100 quantity having tolerance limit of 25 %. A corresponding inbound delivery document created
    against the PO for 110 quantity. Now user wants to receiving the actual quantity i.e 120. While receiving system throws an error
    "Maximum open quantity 110 can be packed". I provided a solution that the user need to change the delivery quantity from 110 to 120 and than do the GR using LM01. User does not agree to do it as the inbound delivery document created automatically through
    SNC system. User want to make it automation like the inbound delivery document tolerance % should work for the difference quantity between inbound delivery quantity and actual goods receipt quantity.
    Thanks in Advance. Any solution highly appreciated.
    Thanks
    Santosh

    LM01 is a dynamic screen which is easily configurable with simple logic and coding. I'm not sure whether any standard configuration to activate the message for LM01.
    But how it works for us. We've defined the messages for tolerance "Entered Quantity 1200 Plus previous received
    quantity 0 is greater than over delivery tolerance 3.0% " in message class. And system pulls all the messages related to LM01 from this message class. Check with your developer how your LM01 is customized. They can help you.

  • Sales BOM - Delivery Quantity check during post goods issue

    I am working on a problem in my company.  We are running ECC6.0 ehp 4.  We are using standard ERLA functionality with sales bom (5) for product kits.  Delivery manager has requested that we investigate a system check during delivery post goods issue.  THe problem is that when shipper processes delivery, if they have to backorder they update pick and delivery quanity on the TAE item.  They should also update TAQ delivery quantity, so that backorder amount is correct.  If they make data entry error, backorder quantity is incorrect.  The delivery manager has tried a number of attempts to re-train and correct mistakes.  He is now asking that SAP issue a hard error if TAQ and TAE delivery item quantities are not the same.
    I have searched on SAP Notes, Forms, and Google and do not see solution.  I know that at delviery item category there is a minimum qty check for the item category.  I've not found a user exit or configuration point that checks quanities.  Does anyone know of out of the box solution?  Or where would I put in custom user exit?
    Test Case
    Create Standard Order
    Enter Material with Sales BOM
    ITEM A     Qty 10
    BOM explodes with Item categories
    ITEM A     TAQ parent
    ITEM B     TAE child
    Create Delivery
    Delivery has item categories TAQ and TAE
    TAE is pickable, TAQ no pick
    Process TAE
         Pick quantity of 5 items
         Change delivery quantity to 5 items
         Forget to change TAQ delivery quantity
         Pack 5 items
    Post Goods Issue the delivery.
    Is there are requirement/routine than can be run at time of PGI that checks TAQ delivery quantity is the same as TAE delivery quantity.  If quanities are not the same, show hard error and message do not allow PGI to complete.
    Thank you
    Tony Romain

    I tried setting that field in the sale order this morning.  By defaulting it to "C"; I was able to get warning message for TAE line.  I was able to post goods with TAE and TAQ, being different quantities.  I need the check to determine if TAE and TAQ delivery quantity are different.  Using this fields seems to be line specific.  Thanks for the suggestion.  I now know what that field does to the delivery.
    I rewarded points.
    Thanks,
    Tony

  • Changing the Delivery

    Hi..
    if we create a delivery for a sales order and also do the PGI, can i go back and correct the quantity later or do i need to cancel the delivery and then re-post with correct units?
    Also, can you please tell me the transactions/steps to change / cancel the delivery?
    E..g: If you have an order for 50 units, and you created a delivery/ PGI  for 45 units and later can we go back and change the quantity to 50 units with out cancelling the delivery/PGI? If not, what is the standard way to handle this issue?
    Also, what is the back order processing? Can it be used in these scenarios?

    Hi,
    If you have an order for 50 units, and you created a delivery/ PGI for 45 units and later can we go back and change the quantity to 50 units with out cancelling the delivery/PGI? If not, what is the standard way to handle this issue?
    There are two ways
    A. If you want the goods to go in the same delivery, reverse (VL09) the existing delivery and change the delivery quantity as required and do PGI
    B. If the goods can go in a different delivery, creata a new delivery with the remaining goods and do PGI.
    And if the invoice has alreday been created , Cancel invoice (Vf11/Vf02) -- VL09 -- VL02 -- VF01.
    In the second case you can club both the deliveries into a single invoice.
    Backorders
    Orders for which goods are still pending to be shipped, this occurs when the quantity is insufficent.

  • Delivery quantity need not be exceed, After creating STO-PO in TCODE  VL02N

    Hello Gurus,,
    Greetings!!!!
    Tcode- VL02N...
    While we do PGI / SAVE after the changing the delivery quantity in Tab "Picking", it need to be checked that delivery quantity not be exceed then quantity entered while STO PO has been created for that particular PO.
    Means, in transaction VL02n  when we changes the Delivery quantity of tab "Picking" it should be equal or less then PO quantity,...
    When user put more picking quantity then it shows error that "it has been exceed" and it is working properly as well......
    But Problem I do have that user increase the Delivery quantity and put the picking quantity in terms of it so system is accepting this things..... but the Stock transport Order (STO) of that particular Purchase Order quantity is same as when created....
    And the requirement is that it is not increased then STO PO quantity.....
    So please please help to find out this solution whether this is solved using  BAdI or USER_EXIT....or any other solution please gurus ....I am facing this problem since long but can not find the solution ....I dont have that much experince in SAP-ABAP

    Hi,
    See Note 415716 - User exits in delivery processing. I think that USEREXIT_READ_DOCUMENT can work for your requirement. The question is fix a good filter to avoid problems in performance. For instance:
    CHECK ylikp-lfart = 'NL'.
    CHECK  t180-trtyp = 'V' .   "ONLY CHANGE
    and so on.
    Set the check:
    IF xlips-lfimg > ylips-lfimg.
      MESSAGE e(xxx)yy with....
    ENDIF.
    Remember check the UoM. If you don't have experience with ABAP, look for an ABAPer.
    If you don't have experience with userexits, please read carefully notes 381348 Using user exit, customer exit, VOFM in SD and 178328 Problems due to incorrect user exits in SD.
    I hope this helps you
    Regards
    Eduardo

  • Delivery Quantity in VL02N

    Dear All
                    I have  created an Intercompany STO . Created the delivery in background using VL10B with refernce to PO. Now in VL02N, system allows me to change the delivery quantity . Say for example, in my PO the STO quantity is 10. System allows me to change the quantity to 100 in VL02nN.
    I want to have a check in VL02N, so that system should not allow to change the quantity . Or if the quantity in VL02N is changed system should throw an error message .
    Thanks
    MKS

    sir,
    goto spro -
    > delivery item category, then there you find option name as check over delivery and the options are: -
         No dialog
    A     Note about the situation
    B     Situation rejected with an error message,
    here you select option B if you dont want to exceed the delivery quantity,
    hope this will be helpful,
    regards,
    kapoor

Maybe you are looking for