Maximum "Total weight" LIKP-BTGEW in delivery

The business requirement is as follows u2013 If the Total weight LIKP-BTGEW u2013 in the delivery, at header level - is greater than X kg. Then the user cannot save the delivery (i.e. create a delivery). The user shall get a popup saying u201CDelivery can not be created / saved because the Total weight is greater than X kgu201D
Which program and userexit can I use?
Many thanks, in advance!

Hi
Related with USEREXIT_MOVE_FIELD_TO_LIKP. It's true that this subroutine was designed to provide our own additional fields. If we modify standard field (not advisable), note says:
If standard fields of the structure LIKP are changed, you may have
to carry out determinations and checks that have already been
performed again to avoid data inconsistencies. Therefore, analyze
the dependencies before you change standard fields in the table
LIKP in this exit.
It goes on:
Data from preceding documents should be prioritized and transferred
using the copy control.
so, the solution to solve it in copy rules in my opinion is the proper solution. I'm not sure if LIKP-BTGEW is populated in this moment
So, create your own subroutine (999 for instance) with a coding as this:
FORM bedingung_pruefen_999  USING bp_subrc LIKE sy-subrc.
* Perform all checks as in routine 001
  perform bedingung_pruefen_001 using bp_subrc.
  check bp_subrc = 0.
  IF likp-btgew > your_weight.
    perform message_handling in program (programmname)
                                       using posnr_low
                                         '001'
                                         'E'
                                         'ZVL'
                                         'excess of weight'
                                         space
                                         space
                                         space.
    bp_subrc = 1.
    EXIT.
  ENDIF.
ENDFORM.
where you must create your own message ZVL in SE91 or other.
Other suggestion is set a warning message in copy rules, and set the error message when you save it (think that it could be modify in a future). So use the USEREXIT_SAVE_DOC_BEFORE_PREP
Purpose
This routine can be used for the final change of all delivery data. At the
time of the call, the delivery is complete and consistent; only the
document number has not yet been determined in the creation case and the
final processing of the requirements has not yet taken place. Therefore,
changes to the delivery at this time must be made with particular care
because no subsequent checks can prevent possible data inconsistencies.
Since requirements processing has not yet occurred, this user exit is, in
particular, suitable for changes relevant for requirements when the
delivery is saved.
Remeber to avoid messages during PGI. As it says:
Display of messages
With the output of messages or user dialogs, you must make sure that this
exit can be run both in the dialog and in the background. In particular,
during goods issue posting, messages or user dialogs must never be output
because this may result in incorrect material documents.
Regards
Eduardo
Edited by: E_Hinojosa on Nov 14, 2011 12:14 PM

Similar Messages

  • What is the total weight and dimentions of a Mac Pro with retina 13"? Including any extra delivery packaging (i.e box, bubble rap, etc)? Thx

    What is the total weight and dimentions of a Mac Pro with retina 13" including any extra delivery packaging (i.e box, bubble rap, etc)? Thx

    What is the total weight and dimentions of a Mac Pro with retina 13" including any extra delivery packaging (i.e box, bubble rap, etc)? Thx

  • Total weight in delivery document

    Hi gurus,
      1. how total weight in delivery document is determined when i am doing multiple orders in single delivery.
      2. My requirement is to delete a delivery documnet but it was not deleting, i analised that " total weight in delivery document " usually determined " as "KG" but instead of "KG" UOM is determined as 3"(cubic inches).
    anybody help me in this issue to solve this.
    regards,
    kishore.

    Dear Kishore
    Your UoM in delivery will always flow based on the weight details you maintain in material master Basic Data 1. 
    In Delivery, you cant change the weight but can change in sale order.
    Thanks
    G. Lakshmipathi

  • What INCLUDE calculates total Weight on Outbound Delivery?

    Hi,
    We have a bug in our Outbound Delivery "total weight" calc on the Item Overview tab.
    I need to locate the logic that calculates this value.
    Can someone please tell me the Include or Module where I might find the code that calculates this.
    The Delivery Program seems to be SAPMV50A, but I don't know how to locate the module or user-exit/enhancement within that program that calculates the value for this field.
    Hope that makes sense...thank you for your help.
    Andy
    Edited by: Andrew Brusko on Nov 17, 2011 2:48 PM
    Edited by: Andrew Brusko on Nov 17, 2011 2:49 PM

    Hi Andy,
    You may go ahead to find out what technical field that total weight belongs.
    Then either search that element in your program and put break point at every where it is used through out or crerate a watch point to trigger when the value at the total weight field gets populated.
    Please analyze this way to get your answer.
    Hope this helps.
    Thanks,
    Sourya Prakash.

  • FM to update delivery details LIKP-BTGEW and LIKP-ANZPK

    Hello All,
    Can anyody please tell me a fucntion module to update the fields LIKP-BTGEW and LIKP-ANZPK.
    I have checked BAPI_OUTB_DELIVERY_CHANGE and WS_DELIVERY_UPDATE. Both these FMs are not having these fields.
    Request you to please help me out..
    Regards,
    Danish.

    This solution is in kzapk and kzntg.
    Example:
    CLEAR ls_vbkok.
         ls_vbkok-vbeln_vl  = <ls_created>-document_numb.
         ls_vbkok-vbtyp_vl  = <ls_created>-document_category_sd.
         ls_vbkok-anzpk     = id_volum.
         ls_vbkok-kzapk  = 'X'.
         ls_vbkok-kzntg  = 'X'.
         ls_vbkok-wabuc  = 'X'.
         CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
           EXPORTING
             vbkok_wa       = ls_vbkok
             update_picking = 'X'
             synchron       = 'X'
             commit         = 'X'
             delivery       = <ls_created>-document_numb
           IMPORTING
             ef_error_any   = ld_error.

  • Total weight of the packed item at the delivery

    There is packing in delivery at our case and I have to have the total packed weight of the material. This means that the total weight of the material and the packing materail of the item. From which table I can have the total gross weight?

    Hi,
    Did you try with VEKP and VEPO?
    Regards

  • Reg:updation of likp-btgew field in vl02n transaction

    hi friends,
    in my requirement i have to populate the field likp-btgew in vl02n when the outbound delivery was created
    i have updated the field by  using user exits in program sapmv50a,
    now the field is getting updated but   my problem is  when i change the line items weight dynamically the total
    weight is not getting updated according to my change
    i have read the sap oss note-415716(for delivery processing) the user exit (USEREXIT_SAVE_DOCUMENT_PREPARE)
    is triggered only when i pressed save.
    but my requirement is when user change any of the line item quantity and press enter the total weigt field has to get
    updated bcz for multiple line items every time saving is not possible right? its bit lenghthier.........
    can anybody pls suggest is there any other way or any usrexit or badi available for this req to update the screen
    field likp-btgew dynamically.....
    pls help......
    regards
    babu

    hi khan,
        thank u for ur reply,
             the userexits i have choosen r working properly except in one case,when i remove or add  any of  the line items in my delivery total weigt is not getting updated,except in this case, it is working fine when i created the new order r if change the line items quantity it is working fine moreover i will check the userexits specified by u .
    if there is any other way pls let me know guys...
    regards
    babu
    Edited by: babu888 on Feb 10, 2012 3:59 AM

  • Changing Handling unit weight does not update delivery header weight

    Dears,
    when we pack an item on a palett, system calculates tara-weight + material weight = gross weight and inserts this value to the likp-btgew. this is correct.
    now it happens, that shipping departement uses a scale to get the 'real' weight of the handling unit. if the weigth differs, they change the loading weight of the HU. system calculates correct the new gross weight of the HU.
    But when going back to delivery view, the likp-btgew is not updated. Do we miss a setting?
    thanks a lot for your help!
    Michael

    wrong forum

  • Sales Order Total Weight Display in a report

    Hi All,
    Is there any way that i can display the total weight and Unit of weight of a sales order in a report. Please let me know all the possibilities..
    RV45A-BTGEW and RV45A-GEWEI are the technical names of the fields that i have to display..
    thank you in advance.
    Suresh

    Hi Suresh,
    After having selected the required fields and the corresponding values into an internal Table..
    do something like this..
    loop at itab.
    at last.
    sum.
    write : / 'TOTAL',itab-BTGEW.
    endat.
    endloop.
    the command sum adds up all the quantity fields..
    regards
    satesh

  • How can get total weight in shipment

    Hi,
    I want, How can get the total weight quantity in shipment (VT03N)? That is sum of delivery quantity of all line item.
    All ready, I have checked to table VTTP there only showing delivery number in field name VBELN.
    Is it possible please tell me which table through I can get the total weight quantity.
    Regards,
    Devendra

    Hi Prashanth,
    Thanks for reply,
    As suggested you, same think I used the logic and solved the problem.
    VTTP-TKUNM (Shipment Number)
    VTTP-VBELN (Pickup all delivery number)
    LIPS-VBELN (Give all delivery Number)
    LIPS-NTGEW (net weight) or LIPS-BRGEW (gross weight) sum up of all the quantities for the field.
    Regards,
    Devendra

  • Total weight of a post item in purchase order message

    Hello !
    I want to write in the sapscript form used to edit the purchase order the total weight of a post item.
    I found in the table EKPO the net weight, but iti is the weight of one article and not of the whole post item.
    Does someone know how I can get this information (in which table or structure that is filled the MAIN element of the form) ?
    I could multiply this weight by the ordered quantity but it seems not to be possible directly in the form and I want to use the standard program for my sapscript.
    I precise that my form is an copy of the standard form MEDRUCK.
    I thank you a lot for your help.
    Regards,
    Céline J.

    Any idea ?

  • Purchase Order total weight

    Hi Gurus,
    I am working on an enhancement to handle the total weight of the purchase order during creation.We need to validate with few custom fields in MARA table to handle small pack and large pack materials based on container group(ZCONGR) . Based on the materials quantity we need to calculate the total weight of the order and if it exceeds 50 tonnes then we need to trigger a warning message to the user who is trying to create.
    Please suggest me how can we handle this are there any enhancement where we can handle this requirement. Thanks.
    Regards,
    Sanjay

    Suggestion:
    Implement BADI ME_PROCESS_PO_CUST, put you logic in method PROCESS_HEADER.

  • Gross weight not picked in delivery created by vl10d.

    Hi All,
      I am creating background delivery for STO by tcode vl10d. For a particular material gross weight is maintained in material master but it is not geting displayed in gross weight field after creating delivery in loading tab. wat may the cause of this problem & how it can be removed???
    urgent help reqd....
    Thanx
    Deepak Kumar

    Hi Deepak
    It is flowing in sales order??
    Thanks
    G. Lakshmipathi

  • Need to find out department having maximum total salary among all depts

    Hi,
    I am new to oracle. I was wondering how would I create a query for following condition.
    I have a employee table. There are columns like emp_id, emp_name, emp_dept, emp_sal
    I need to find out department having maximum total salary among all departments .......
    This was asked in one of the interviews.............
    Thanks in davance,
    Abhijit
    Edited by: 833515 on Feb 3, 2011 4:11 AM

    Hi,
    You can use aggregate functions, analytic functions etc. Read up aggregate functions from the docs and try to write the query yourself. If you face any problems, post it in the forums.
    Happy learning!!
    Regards,
    Sujoy

  • Table to view Total Weight of Shipment

    Hi,
    Can anyone help in viewing the Table for the Total Weight of the Shipment(Shipment with single and multiple deliveries).
    Thanks in advance.

    I do not think there is any, you might need to create a Z field that. Get the help of your developer and do it. You might need to wirte a logic for the calculation...
    Thanks
    Chandra Kiran

Maybe you are looking for