Pack an Unassigned HU , assign it to a delivery

Hi Friends,
I have an assignment of giving the following sequence.
1> Pack an unassigned HU
2> Assign it to the delivery
3> Change one of the field in header table of HU (VEKP-VHILM_KU)
I did complete the following sequence in module pool facing initial problem with updating the customer field
in the end with all the function module examples u know or can find in SDN but at the end had to directly do
database update on VEKP.
Now the issue is when a more than one line tems of an delivery are assigned to the same HU.
I am using WS_DELIVERY_UPDATE_2 how do i go with this also my sequence has got
BAPI_HU_PACK then the above FM which gives me an error occasionaly that HU is locked.
when i tried WS_DELIVERY_UPDATE_2 assynchronus it does it properly but then the field updation
VEKP-VHILM_KU does not happen.
Please provide me any FM sequence if any body has already faced the same problem i have already tried with
n no of options.
Thanks & Regards,
Narottam

Try using HU_PACKING_AND_UNPACKING. SAmple code
    LOOP AT it_comp_hu INTO wa_comp_hu.
      l_packing_req-venum = wa_comp_hu-venum.
      l_packing_req-exidv = wa_comp_hu-exidv.
      l_packing_req-veanz = '1'. "PACK
      l_packing_req-velin = '1'.
      l_packing_req-belnr = w_sto_delivery.
      l_packing_req-posnr = l_vepo-posnr.
      l_packing_req-altme = w_lips-meins.
      l_packing_req-meins = w_lips-meins.
      l_packing_req-matnr = l_vepo-matnr.
      l_packing_req-quantity = '1.000'.
      CALL FUNCTION 'HU_PACKING_AND_UNPACKING'
        EXPORTING
          is_packing_request = l_packing_req
        EXCEPTIONS
          missing_data       = 1
          hu_not_changeable  = 2
          not_possible       = 3
          customizing        = 4
          weight             = 5
          volume             = 6
          serial_nr          = 7
          fatal_error        = 8
          OTHERS             = 9.
      IF sy-subrc <> 0.
        hu_create_flg_2 = 'X'.
        EXIT.
error
       CLEAR: v_msgv1, v_msgv2, v_msgv3.
       v_msgv1 = text-031.
     PERFORM display_message USING v_msgv1 v_msgv2 v_msgv3.
       LEAVE TO SCREEN sy-dynnr.
      ENDIF.
    ENDLOOP.

Similar Messages

  • STO - Unpack HU assigned to an outbound delivery

    Hi SAP experts,
    I'm trying to unpack a HU assigned to an outbound delivery created for a STO.
    The material packed is WM managed.
    I would like to know what are the steps to perform ?
    - I've created and confirmed a TO from 916 to 923 with LT09 transaction
    - What are the nexte steps ?
    I've read what's mentioned in this link Repacking Unpacking of Handling unit material but I don't succeed with HU02 ? How am I suppose to use it to unpack ?
    Regards,
    Bahia
    Edited by: Bahia M. on Jul 26, 2011 10:31 AM

    Hi,
    In VL02N, go to Edit--->pack.
    Select the HU and  "delete assignement" and save the delivery.
    Unpacking is done.
    Later put the HU back in the original storage bin by creating the TO in LT09
    please let me know if this is not what you are looking for
    regards

  • Unable to reuse the de assigned HU in Inbound Delivery

    Hello Experts,
    I have one issue with HU. The scenario is, Inbound delivery is created for the PO, Scheduling Agreement, then batch split done and packed the material. To created for the inbound delivery and confirmed, while confirming the TO, GR took place.
    Now I am reversing the inbound delivery in VL09 and in VL32N, deleted the HU assigned to it and deleted the batch split as well.
    Now the status of the inbound delivery is "A" Not for put away. We want to use the same HU which was assigned earlier.
    Could you please advise me whether is it possible? if so please guide me.
    When I try to reuse the same HU, I am getting error message.
    Regards
    Bala

    Hello,
    You can try and check out this in your steps.
    Created inbound delivery, batch split done, packed the material. TO created and confirmed while doing so PGR happened.
    Now I am reversing the inbound delivery in VL09, and then in VL32N selected u201CPACKu201D and now Processing of handling unit for inbound delivery so and so screen appears.
    I have selected the HU and in the header selected HU --- Delete Assignment. Now am getting u201CDocument assignment of handling units cancelled" message.
    Now save the delivery after you removed the assignment as per above steps.
    Again go to chnage mode and try to pack the material with the HU it will alow you to pack.
    Now coming back to the Inbound delivery overview screen. I have deleted the batch split. While deleting the batch split system gives the message u201C Item u201Cu2026u2026u201D has already been made available by a transfer order. But still I can delete that.
    Ideally if you have reversed the delivery, then you should get the message Item u201Cu2026u2026u201D has already been made available by a transfer order.
    Br,
    Tushar

  • Assigning HU to Inbound Delivery

    Hello everyone!
    Could anyone please give me information how to assign a HU created via transaction HU02 to an inbound delivery (like VL32N).
    I already tried some function modules (e.g. HU_DELIVERY_ATTRIBUTES_ADD, HU_ASSIGN_HUS_TO_OBJECT, etc). I think I just don't have the correct parameters.
    Thanks for your help in advance!
    BR,
    Alfons

    Hi,
    refer
    Function module for assigning a HU to delivery
    Hope this solves your purpose.
    Award points if it helps.
    -Gaurang

  • How to unassign(delete assign) Organization Unit to User?

    How to <b>Unassign Organization Unit to User</b>? Is there any furnction module to do this ? <b>What are the function modules to update org unit of the user & to update the attributes of the user</b>? Update org unit means we have to delete & recreate org unit or else directly to update org unit of User any function module existed? Please help me out asap. Thanks in advance.
    Thanks & Regards,
    Nagaraju Maddi

    Hi Cardo,
    I am developing a function module. In that one I have to write the code for the below case.
    Suppose user was assigned to 'XYZ' organization unit. Now I want to change his organization unit as 'ABC'. How to handle this programetically? Later I have to update that user attributes. I think now u understand my requirement. Please help me out.
    Regards,
    Nagaraju Maddi

  • Error while assigning Handling Unit to Delivery

    Hi Friends,
    I am facing the problem while assigning(manually) the HU to Delivey in VL02N.
    Plant/St.Loc are not manged by WM.
    It gives the following error:
    HU XXXXXXX is in the warehouse. Assignment only possible through transf.order
    Note:Warehouse Management is not active.
    kindly guide me..
    With Regards
    Azeez.Mohd

    Hi,
    Activate lean warehouse management,
    Logistics execution>>>shipping>>>picking>>>lean warehouse.
    kapil
    Edited by: Kapildev Farakte on Nov 24, 2009 9:56 AM

  • Assign pricing procedure to delivery type

    Hi All
    At the moment, my outbound delivery note doesn't contain the pricing condition in item level. what I am trying to do is to copy the pricing condition listed in Sale Order into the outbound delivery note automatically when I run the VL01N.
    The problem is that one of condition type in the pricing procedure is set to manual entry, therefore after I had assigned the pricing procedure to delivery type, only the manual entry pricing condition is not copied, I have to manually key in the price again.
    Does anyone know what can I do to copy overall pricing procedure listed in the SO into the outbound delivery note without manually entry.
    Thanks for your time
    Alvin

    Dear Lakshmipathi,
    As your suggested, I have 2 questions.
    1. The condition type is supposed to be set as manually entry, if I untick the Man. checkbox, would it create other problem in future.
    2. as you suggested, I did try to untick the three checkbox (Man. Mdt. Stat.) for the condition type. however, the rate of the conditoin type still can not be copied from Sale order to the delivery doc. Any idea?
    Thanks
    Alvin

  • Packing items to display in the Sales Order & Delivery

    Hi Experts,
    My client does not have HUM in SAP. They manufacture equipments & sell it to their customers.
    So in the Sales Order only the Top level machine number is entered & not the components that
    was used to built it.
    For example, let me say that to build a machine it requires 1000 components & out of which 50 are the
    1st level components as sub-assembly.
    Now there is a requirement from the Shipping dept, to list down only the first level components (in this case only these 50 parts) in the Sales Order as F.O.C so that the delivery will also show those individual items followed by the Packing List.
    But the billing document has to show only the top level equipment & not these 1st level components.
    Please tell me the steps to meet this requirement.  Is Handling Unit required in delivery to meet this?
    Regards,
    Pri

    Hi,
    If I have not misunderstood, u have a component(comprising of several sub assemblies) and you want to bill only the main item and for the sub items the billing should not be displayed.
    Well in that case you have to create a BOM of materials with usage 5 (Sales & Distribution)
    Then in the material master maintain the item category as ERLA ie Header level pricing. Do not explode the BOM if you do not want to see the sub items (ie do not maintain the structure scope in the item category ie TAQ)
    Regards
    Mahesh
    Edited by: Mahesh V Sandbhor on Mar 24, 2010 6:13 AM

  • Function module for assigning a HU to delivery

    Function module for assigning a HU in HU managed location to a delivery ??

    Hello,
    In FuGrp HU_BASIC_BAPIS               Basic BAPIs for Hus
    with F’tn BAPI_HU_CREATE  Create handling unit with items
    this creates HU's NOT yet assigned.
    After F'tn BAPI_TRANSACTION_COMMIT
    You can assign the HU via
    F'tn BAPI_HU_CHANGE_HEADER
    using the BAPIHUHEADER fields: PACK_MAT_OBJECT & PACK_MAT_OBJ_KEY.
    Dirk

  • Need to be able to Assign HU's to Delivery

    Hello ABAPers,
    I have a problem concerning how to assign an HU to a delivery (modifying a delivery ). My initial approach was to use a BDC of VL02N, and assign the HU’s that way. This works until I get a Delivery with more than 7 HU’s to assign. The BDC will not allow me to do a  page down. I have tried ‘=P’, ‘=P+’, ‘pplus’, and ‘pplusp’ all to no avail. I have a hard time tracking the number of entries in the control table as I am adding Parent HU’s , which will add multiple lines to the Control Table.  I can scroll when manually modifying the delivery, but the buttons on the top do nothing. (doing a recording did not shed any light on a solution)
    I did some reading, and people everywhere seem to recommend using FM WS_DELIVERY_UPDATE. If this will meet my needs, I am more than happy to us this. I have yet to figure out when fields/Tables need to be populated. I have tried numerous combinations with no success. Some times I get a “EF_ERROR_IN_GOODS_ISSUE_0” error. I removed the ‘X’ from VBKOK_WA- WABUC and that went away. I now get no errors, but also get no changes that I am looking for. I am populating VERKO_TAB as well as numerous import parameters.
    So I am trying to assign already created HU’s to a delivery. I think that WS_DELIVERY_UPDATE is the best option, but I need help in understanding what I need to populate to get it to update the delivery.
    Please help.
    Christopher

    1. Make sure you've updated the printer firmware and successfully printed the test sheet from the printer.
    2. Make sure that your iPad is on the same network as your printer.
    3. Try printing from an app. To print this page from Safari, for example, go to the rectangle with the right- facing arrow on the toolbar, choose Print from the drop down menu, select your printer, and click Print.
    Printing in apps is usually under the rectangle-arrow symbol, but is also sometimes found under the wrench- "tools" symbol.

  • Assigning Output Type to Delivery

    Dear all
    Is it possible to assign one Output type to Multiple Outbound Delivery documents?
    Thanks in Advance
    Nomi

    Hi!
    if you mean: several delivery types to have the same output type? Then yes.
    You need to maintain
    Logistic Execution-> Basic Shipping Functions->Output Control->Output determination->Maintain Output det for Outbound deliveries->Maintain Output types
    Here you have to specify your output type, print program, and the form name, and some other settings;
    then
    few rows lower you have "Maintain Output determination procedure", you have to copy the procedure V10000 Shipping output, then add your output type to the copied one
    then
    row lower
    "Assign Output Determination Procedure" (Assign deliveries (header)), and find the delivery types you want to assign the output types to, and just change the procedure assignment to them, enter Output type in the next column.
    To have the delivery output prined automatically, you just need to set up the output in VV21 with tim "4" "print immediately when saving"
    I hope this helps
    cheers,
    Bea

  • Unassignment of HU's from the Delivery Doc

    Hi all,
    I have to Remove the Picked Qty and delete  Hu Assignment. is there any function module for this requirement i tried with  WS_delivery_update_2, please help me to delete hus. has any one achived the same requirement.
    thanks,
    San

    Check below code
    wa_vbkok_wa-vbeln = '0800001263'.
    wa_vbkok_wa-vbeln_vl = '0800001263'.
    wa_vbkok_wa-vbtyp_vl = 'J'.
    i_verko-object = '01'.
    i_verko-objkey = '0800001263'.
    APPEND i_verko.
    CLEAR i_hus.
    REFRESH i_hus.
    CALL FUNCTION 'WS_DELIVERY_UPDATE'
    EXPORTING
    vbkok_wa = wa_vbkok_wa
    synchron = 'X'
    NO_MESSAGES_UPDATE = ' '
    commit = 'X'
    delivery = '0800001263'.
    UPDATE_PICKING = ' '
    nicht_sperren = ' '
    IF_CONFIRM_CENTRAL = 'X'
    IF_WMPP = ' '
    IF_GET_DELIVERY_BUFFERED = ' '
    IF_NO_GENERIC_SYSTEM_SERVICE = ' '
    IF_DATABASE_UPDATE = '1'
    IF_NO_INIT = ' '
    IF_NO_READ = ' '
    IF_ERROR_MESSAGES_SEND_0 = 'X'
    IF_NO_BUFFER_REFRESH = ' '
    IF_NO_MES_UPD_PACK = ' '
    IMPORTING
    EF_ERROR_ANY_0 =
    EF_ERROR_IN_ITEM_DELETION_0 =
    EF_ERROR_IN_POD_UPDATE_0 =
    EF_ERROR_IN_INTERFACE_0 =
    EF_ERROR_IN_GOODS_ISSUE_0 =
    EF_ERROR_IN_FINAL_CHECK_0 =
    TABLES
    VBPOK_TAB =
    prot = i_prott
    verko_tab = i_verko
    VERPO_TAB =
    VBSUPCON_TAB =
    IT_VERPO_SERNR =
    IT_PACKING =
    IT_PACKING_SERNR =
    IT_REPACK =
    IT_HANDLING_UNITS =
    et_created_hus = i_hus.
    <REMOVED BY MODERATOR>
    Thanks
    Pavan
    Edited by: Alvaro Tejada Galindo on Mar 19, 2008 1:09 PM

  • Table for storing serial number data assigned to material in delivery doc.

    Hi All,
    Kindly tell me the table name in which the serial numbers assigned to the material in the delivery document are stored.
    I have seen VBPM table, but it is not been updated.
    regards
    Ravi

    Hi
    There is no particular table wherin the serial number is stored for a material. A Ztable has to be created for the serial number to flow from the delivery.
    For a combination of material and serial number, there exists an equipment number. Go to IQ03 and enter the serial number and get the equpment number details. Go to table EQUI and enter the equipment number to get the serial number (SERNR field).
    Award points if the above info helps.
    Regards

  • Assign movement type to delivery document

    Hello Experts
    When i create DSI (Damage stock in) using pre defined Delivery Type (ZDI) with t-code vl01n system takes material automatically in quality stock in mmbe using movement type 655 (GD returns QI). Now i want to change this movement type with 653 (GD returns unrestr) because i want this material to bring in unrestricted stock. I have also closed the quality inspection lots. Please suggest me how can i assign this movement type to this delivery type?

    Hi,
    Please check schedule line that you have set for each line item in item category of SO. This caused to mov. type 655 has been picked. If you wanted to change mov. type 653 in future, then you need to do some additional settings;
    1. Goto SPRO - sales & distribution - sales - sales document - schedule line - define schedule line
    - create new schedule line category with mov type 653
    2. SPRO - sales & distribution - sales - sales document - schedule line - assign schedule line category
    - assign new schedule line to item category
    Then create SO, go to item category - schedule line view, change to new schedule line category before safe SO
    If you doesn't want use existing mov. type 653 then you may customize the movement type for exp. Z53. This can be copy from 653 in t/code OMJJ. Follow the steps the above & set mov. type Z63 into new schedule line category.
    Hope this could help you. TQ
    rgds,
    nanthakumar

  • Assigning custom form to delivery output

    Hi Experts,
    I have developed a custom smart form and I need to attache the same to delivery out put.
    Here my question is, How should i read delivery number entered in 'issue delivery output' and pass the same to my custom form.
    Based on this it will fetch the data...
    Appreciate your help.
    Thanks in advance.
    Indra

    Hi,
    You have to add the Output type in the Header-Output of the delivery.
    Go to NACE transaction-Select Application V2 - Select output type - Go to Processing routines- Give the Print Program, Entry point in the program (desired sub routine ) and then Smartform to print it.
    Generally, Functional Consultants set these.
    You can take their help.
    KC

Maybe you are looking for

  • Solaris 8 on Dell 7500

    Hi, Hope someone can help, I am having problems getting any usable CDE on my Dell Inspriron 7500. I can get the pannable VGA to work but nothing else. Are there any known fixes within x86 that will give me a decent resolution, if any one can help I c

  • Xslt with servlets

    i am trying to display a list of records from a from a query on a webpage using servlets. i need to create a link such as this: <a href = "/fic/main?task=viewPage&id=1">view page</a> the problem is the "id" field need be the value that is in that rec

  • Slow slider performance

    Computer specs: Intel i7 2600K overclocked @ 4.5Ghz GTX 570 GPU overclocked to 815 16GB DDR3 RAM @ 1866 1000W CM Silent Pro Gold PSU Installed on SSD Drive Windows 7 64-Bit I have used LR3 for a while now with great performance all around. I download

  • Licensing Stopped Working Error Message

    Can't launch licensed copy of Photoshop Elements 8.  Receive error code 150:30   Message says "licensing for this product has stopped working" and asks me to restart computer.  I have - same message!

  • Implementing Audit/versioning in ADF

    Guys, Consider our ADF applicaiton is used by couple of users. Consider we have data in adf editable table. Everytime an user makes any change in the table (to any cell) and save the data, we need to keep track of the changes. created by, last update