Summing the delivery quantity in Dialog Programming

Hello ppl,
I've to sum the delivery quantity for all the deliveries in the group from table LIPS.(LFIMG). How should I do it in Screen Programming. In the PAI, I receive the deliveries for the group(VBSS-VBELN). In other words, how to manipulate the records when i use only the TABLES statement.
Thanks.
Karthikeyan

Hi
U need to select the quantity from lips, u can use the SELECT stament with option SUM:
SELECT SUM(LFIMG) INTO V_QTA FROM LIPS WHERE VBELN IN .........
Max

Similar Messages

  • How to restrict the delivery quantity not more than target quantity?

    Dear Gurus,
    How to restrict the delivery quantity not more than target quantity in a scheduling agreement? I think there are 2 methods.
    1. I found that setting 0 in Overdelivery Tolerance Limit in Info Record is not effective. Why?
    2. I want to set E for the message but can't find the place. The message is generated when entering and saving quantity as delivery quantity that is larger than target quantity. How can I set E to a message (067, as I remember)
    Any other effective method? Please advice. Thanks.
    Regards,
    David

    Dear all,
    It is not OK after checking everywhere you mentioned. I tested in 2 clients. In the development enviroment client, it works whatever E or W. In test enviroment, it does not work (meassge is W).
    I think there must be somewhere besides of those you menetioned.
    I notes that SAP help for the overdelivery tollerance setting of scheduling agreement: 
    Overdelivery Tolerance Limit
    Percentage (based on the order quantity) up to which an overdelivery of this item will be accepted.
    Dependencies
    If you have set the indicator in the Partial delivery/Item field to 'D' (partial delivery allowed), this takes priority. It makes no sense to define a tolerance limit for overdelivery in such case.
    Where can I see: 'the indicator in the Partial delivery/Item field to 'D' (partial delivery allowed)'? I want to check it.
    Pls help! Thanks.
    Regards,
    David

  • Order item done depending on the delivery quantity tolerance

    Hi,
    I am looking for an opportunity to put SD items to Status done, although the delivery quantity is not the same. With the VD51, the tolerance can be controlled, but the status of the position does not affected. An example, SD order position has a quantity of 10 pc, delivery quantity of 9, tolerance 80%. In that case I need a completed order Position, no backorder quantities.
    Thanks.

    Hi Ueli,
    in the standard, if difference between requested quantity and confirmed quantity lies among over and underdelivery, you´ll be able to create the delivery and the sales order line ítem will be set as completed.
    It will be completed once you´ve created your delivery.
    Check in shipping tab in sales order that for your line ítem over or underdelivery have been copied from info record as already suggested.
    Regards,
    JM

  • Create TO for a quantity less than the delivery quantity

    If we have created an inbound delivery in MB1C, 561 movement to post an initial entry of stocks, and then packed the HU in Vl32N. Now, we want to create a TO for a quantity less than the delivery quantity.
    In LT03 I cant see any option to change the TO quantity. How can we actually change the TO quantity to be less than the Delivery quantity.
    Thanks
    -Mike

    Mike,
    I dont think that's going to be possible.  The TO gets data from the del qty which is in your embedded HU since you have packed the qty in the del in the HU,
    so if you are trying to create a TO with less qty means that you want a qty less that the HU in the del and this is not possible.
    Alternatively : 
    1) You can receive it in your warehouse.
    2) Move it in a re-packaging area
    3) break the HU and re-create a new HU.
    4) Pack the desired qty
    5) Move the 2 HU's back to their desired bins.
    Hope this helps and works!
    thanks'

  • 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

  • Is there a way to modify the delivery Quantity before Packing takes Place?

    Here is the story.
    ATP is currently allocating partial delivery unit qty's is the Sales order schedule lines. This is causing numerous problems from a business and logistical standpoint and I have yet after weeks of searching found a solution.
    The standard ABAP User exits all make the modifications before the qty is known, or after packing therefore making them not useful. I have debugged the enhancement points and those also seem to not allow for the modification of the delivery qty.
    Has anyone every successfully been able to do this.  Help is dearly needed at this point.
    Thanks in advance for any suggestions.
    Regards,
    Christopher

    Thanks for pointing me at those. Worked like a charm. My stylesheet ended up looking like this (in case anyone is curious later on):
    <?xml version="1.0" encoding="UTF-8"?>
        <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
            <xsl:template match="/">
                <xsl:text disable-output-escaping="yes">
    &lt;!DOCTYPE name SYSTEM "http://location/DTD/name.dtd"[]&gt;
                </xsl:text>
                <xsl:copy-of select="root node"/>
            </xsl:template>
        </xsl:stylesheet>

  • Delivery quantity can be modified independent of the confirmed quantity

    Dear SD Gurus,
    There is such a case as below:
    The sales order quantity: 100 UNT
    The confirmed sales order quantity: 100 UNT but manually decreased to 70 UNT
    The delivery quantity: 70 UNT but manually can be increased to 90 UNT.
    Is this above the standart behavior of the SAP? to block the manual increase/decrease, do we need to go on with user exit or something manual? (based on the confirmed quantity?
    Thanks
    Mary

    hi mary,
    this is possible because you are changing the order quantity in the sales order if stock is there then there is no issue on the same
    because when ever order quantity in sales order increases or decreases the system will check for ATP.
    yes its a standard process.
    User exits in the program FV45EFZ1
    USEREXIT_CHANGE_SALES_ORDER.
    but why do you want to block it this funcationality is good know.
    regards,
    balajia.

  • How to restrict the excess quantity delivery from the delivery note ?

    Dear All,
    As we know we make the delivery note with the reference of sales order so ordered quantity will be copied in the delivery note automatically. At the time of picking we can reduce the delivery quantity and make the partial delivery.
    But for example I have the sales order of quantity 5 and I make the delivery with refernce of same Sales order so my delivery quantity comes 5 and now if I make the quantity 7 instead of 5 in delivery note only and do the picking of 7 quantity yet system is allowing me then PGI is also possible. It means I delivering excess good than the ordered quantity. Which should not happen to make the cycle full proof.
    I dont what setting is required to avoid this major error. please Gurus Reply soon.
    regards,
    Vojas

    Hi,
    Use t-code 0VLP, select your item category which u determining in delivery >>> Go to details>>>in fron of Min/Max Qty put option B
    Check minimum qty   --- B (Situation rejected with an error message)
    Check overdelivery  --- B (Situation rejected with an error message).
    When user try to change qty,system will give error.
    Kapil
    Edited by: Kapildev Farakte on Dec 28, 2009 10:33 AM

  • 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

  • Delivery  quantity is greater than the open quantity  22

    Dear Experts
    I  want to close the  delivery. to close this delivery need to make  the quantity  as zero but system not allowing me to  make it as zero  iam getting the error open quantity is greater the delivery quantity .since i have checked the forum but i dont find any related  Please help me .
    Regards
    Raj

    Hi,
    What do you mean by close...iam assuming that you mean changing the Status of the delivery to completed.
    1. If certain qty has already been delivered (PGI)
    A. In this case do a reversal (VL09) and change the delivery qty to the correct quantity you want to deliver so that the system automatically sets the required status once all the qty is delivered. (PGI)
    2. If the delivery document has been created but no PGI
    A. In this case change the delivery qty in the main screen and make the relevant changes at the batch level also (if batches are applicable)
    3. If the delivery document has been created but no PGI
    A. If by close you want to delete then you can delete the delivery from the initial screen of vl02n.

  • Active E-mail address on the Dialog program Screen

    Hello all,
    I am displaying an E-mail address on the screen of a dialog program. The requirement is to open the Outlook addressing the Mail-id clicked. Is there any event driving this functionality or any FM to explicitly achieve this?
    Eg. [url]xyz @ abc. com[url].--> When this is clicked the Outlook mail editor should open. Similar to the Microsoft Word, if an E-mail address is clicked, 'mailto:' command will be executed.
    Please help me in this regard.
    Thanks,
    Vishnu Reddy

    You mean a Safari shortcut to her log in page on the web, I assume.
    Launch Safari and navigate to her log in page for her email. Then tap the arrow to the left of the URL field and select - Add to Home Screen. Name it as you see fit in the next window and tap the blue Add button.

  • 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.

  • Delivery Quantity is not equal to picked quantity.

    Hi all,
    I am having a issue related to VL02N VL01N.The issue is when we save the delivery which has materials with batch. and the batch quantity is less then the delivery quantity the system allows you to save the delivery with wrong delivery quantity that is the header quantity . and invoice is generated for the entire delivery quantity, Which is wrong.
    The delivery should be saved with sum of all the batch quantity of the materials.
    Could any one tell me how to save the delivery with the correct quantity.

    Hi ,
    Try adding the quantities of a item of the delivery and move this final quantity to the item quantity field  . Perfrom this in save_document_prepare form exit of include MV50AZ1....
    Hope this will solve your query... Award points if found useful...

  • 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

  • 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

  • Getting Error while running this query

    Hi, SELECT SUM(BATCHWISE_COUNT) TOTALBATCHCOUNT,      TO_CHAR(SUM(BATCHWISEAMOUNT),'9,99,99,99,99,99,99,99,990.99') TOTALAMOUNT ,      SUM(SLIP_RECORDS) TOTALSLIPCOUNT,      SUM(CHEQUEONLY_RECORD) TOTALCHEQUECOUNT from (SELECT COUNT(TI.FLDITEMINITIAL

  • New Blackberry Z10 User (Multiple Questions)

    1.  I used to be able to input all my email accounts online.  For example sprint.blackberry.com.  I tried att.blackberry.com; however, it indicates my operating system is no longer supported with my new device.  Does anyone know when this capability

  • Triggering BW Process Chain based on multiple conditions/events

    Hi all, We are facing a situation where we need to execute a BW process chain only if another process chain and two different R/3 jobs are completed. Could anyone give any inputs as to how to include multiple start conditions for a BW process chain.

  • Disconnecting display knocks Mac off network

    After the latest Tiger update (10.4.4) my PM G5 disconnects from the network (AirPort Extreme card connecting to a Linksys 802.11g router) when I unplug the monitor. I use a PowerBook for work, and when working from home I disconnect the display, Fir

  • Netting of GL in f.01 report

    Dear Guru's, in f.01 when we execute report we get group  total GL wise. but they dont want to view balances gl wise. single  line item should be there with gross balances. In short groupwise balances with out GL wise. I did confuguration in fse2 but