BAPI of Handling Units

Hi,
Good day.
I need the following BAPI for Handling Units:
(1) One that will create an HU under a certain Shipment
(2) In the said Shipment, Pack HUs into an HU
These functionalities are similar to that of VT02N.
Please advise if you know the BAPIs that perform the said functionalities.  And if possible, kindly provide sample codes.
Thank you very much!
Best regards.
Brando

Hi,
I am using BAPIs to perform the following steps:-
1) Create HU (BAPI_HU_CREATE)
2) Add a single product (and its serial number) to the HU
Code:
pack1 =  hu_key.
item-hu_item_type   = '1'.
item-pack_qty         = '1'.
item-material           = p_matnr.
item-plant             = p_werks.
item-stge_loc          = p_sloc.
item-no_of_serial_numbers  = '1'.
SERIALNO-SERIALNO = p_serial.
append SERIALNO.
call function 'BAPI_HU_PACK'
  exporting
    hukey         = pack1
    itemproposal  = item
  importing
    huitem        = hu_item
    huheader      = hu_head
  tables
    serialnumbers = serialno
    return        = ret.
BAPI_HU_PACK

Similar Messages

  • BAPI/FM to add Items to Handling Unit

    Hello Gurus,
    Is there any BAPI/FM to add Items to existing HU.
    I could see many existingBAPI's like
    V51F_CHANGE_HU_ITEM,
    HUINV_ITEM_CHANGE,
    HU_ITEM_CHANGE
    but none has helped me as such and it goes into some kind of error.
    Hence it would be great if someone provides me code/mandatory inputs as well.
    Functionally speaking one can add items to existing HU by HU02 transaction and pack the same.
    Thanks,
    Vikram.

    Hi Vikram,
    This link may be helpful...
    [Creating Handling Unit;
    Regards,
    Sachin M M

  • Delivery Update: Handling unit : BAPI?

    Could not make BAPI_HU_CHANGE_HEADER to update the handling unit header field "INHALT - Description of Handling Unit Content". Also referred to SAP note  581282.
    It is required to update the handling unit of the delivery using remote FM. So BDC is not possible.
    Can someone share code of how to acheive this using WS_DELIVERY_UPDATE or other FM/BAPI? Thanks in advance.

    Does anyone found a FM to update this field ?  I have to update it in Batch.

  • Is there any BAPI or FM to pack Materials into Handling unit in INB Deliver

    HI,
      I would appreciate if any one can throw some light or  FM or BAPI with some sample data to pack material into handling units in a inbound delivery (VL32n).
    Regards
    PRasad

    Try BAPI_HU_CREATE
    SD_DELIVERY_UPDATE_PACKING
    HU_PACKING_DELIVERY
    HU_PACKING_AND_UNPACKING
    HU_PACKING_UPDATE

  • BAPI or Function Module to create Handling Unit at the delivery level

    Please send me the BAPI / FM details to create Handling Unit at the delivery level.
    Thanks

    Hi
    you can try below BAPI's.
    BAPI_HU_CREATE 
    BAPI_HU_PACK
    Hope this helps you.
    Rgds,
    Kris.

  • Handling units Shipment BAPI

    Hi,
    Can you please help me with the code for populating the Handling units while shipment creation using bapis.
    Thanks,
    Thomas Kash
    Moderator message: please (re)search yourself first.
    Edited by: Thomas Zloch on Dec 9, 2010 10:55 AM

    if we have the delivery with the packaging already done(VL02n) it should be present in shipment creation already ...better have the delivery with packaging already done and do that shipment .
    however if you are doing packaging(Handling Unit ) dusring shipment(VT01) i have not much clarity on that .
    Please refer below threads to gain some insights , We do not have much information on this in the Forum .
    mentors please help *
    BAPI_HU_CREATE
    BDC table control for handling unit
    http://wiki.sdn.sap.com/wiki/display/ABAP/UseofBAPI_SHIPMENT_CREATEconcerningshippingstatuses%28and+deadlines%29

  • BAPI to lock / unlock Handling Unit?

    Hello,
    Is there a BAPI or function module I can use to lock or unlock a Handling Unit?
    Thx.
    Andy

    Hi,
       Refer
    https://forums.sdn.sap.com/click.jspa?searchID=10463752&messageID=1578910
    Regards
    Kiran

  • BAPI Handling unit creation

    Hi Everyone,
    I am trying to create handling unit number using bapi
    BAPI_HU_CREATE.
    I am able to create the handling unit number.
    The problem arises in - no entry is getting created in line item table VEPO for the new handling unit number generated.
    Anybody having idea why no entry is getting created in VEPO table.
    Also, would like to know i want to update the inbound delivery with the new handling unit number generated.
    For that i am planning to use FM "WS_DELIVERY_UPDATE".
    Is this is the right approach to update the inbound delivery with this FM.
    Thanks in advance.
    Regards,
    Tarun

    Tarun,
    Here is the text from SAP Note - 581282
    You want to generate or change handling units for a delivery. You have planned to use the BAPIs for business object "Handling unit" for this purpose. (For example BAPI_HU_CREATE, BAPI_HU_DELETE, BAPI_HU_PACK, BAPI_HU_REPACK, BAPI_HU_UNPACK). Since these modules do not make updates on delivery, these cannot be used for packing in the delivery.
    In the same way it is not possible to pack deliveries with function modules of function group V51E (HU_CREATE_ITEM, HU_CREATE_ONE_HU, HU_DELETE_HU, HU_REPACK, HU_UNPACK).
    If possible, the packing of the delivery should occur via IDOC DELVRY03 (WHSCON). If this also is not possible, function module WS_DELIVERY_UPDATE can be used. Please note, however, that this function module is not released for customers. That is, it is subjected to changes via SAP. In case of changes it is possible that your program which uses this function module, does not run anymore after importing of a Support Package and that is is necessary to change your program.
    More options are currently not available.
    <b> That is why I am recommending not to use the function but to have a BDC on the non-enjoy transaction. </b>.
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • Which BAPI can Create handling Unit for VL02N.

    Dear All,
         Which BAPI can Create handling Unit for VL02N.
    The Business is: VL02N, click head toolbar PACK, then call up handling Unit.
    Thanks

    Hi sun!
    I'm facing the same requirement since three days and i'm not able to get it workin.
    Did you resolve the problem and if yes which function modules did you use?
    Thanks in advance!
    Florian
    Edited by: Florian Visintin on Sep 17, 2009 10:21 AM
    Edited by: Florian Visintin on Sep 17, 2009 10:22 AM

  • Goods receipt on a PO from handling unit

    I need to do GR on a PO from a handling unit. Basically i plan to create a handling unit when the goods are received, pack the materials that are received into this HU and post the GR with this HU against the PO.
    I want to avoid the inbound delivery for the PO.
    i planned to use VLMOVE but unable to add the movement type 101 to handling units tab. Can you please guide how to add this.
    The other option that we are considering is doing it through ABAP but we have not found any BAPI for this. Please help if you have some idea on this .

    Hi,
    You can not use VLMOVE with 101.
    If you want to avoid the inbound delivery, you need to :
    receive the materials on a MM storage location that is not HUM managed,
    create the HU with HU02 on the MM storage loc
    and then do a VLMOVE from this MM storage loc to your HUM storage loc with movement 311.
    I did it on one project. Works well.
    But inbound delivery is better from my opinion.
    Rgds,
    Philippe

  • Handling unit transfer (311 move) using bapi_goodsmvt_create

    MII is using bapi_goodsmvt_create to do a 311 type Handling unit movement. While BAPI is successful and returns a response back as "Delivery 80817152 created". But in ERP, this BAPI is creating a outbound delivery while it should be inbound delivery.
    So basically transfer is not happening there if I check in humo.
    If Movement Indicator is set to "I" in BAPI request than ERP sends error message " Update control of movement type is incorrect (entry 311 XX_I)
    I would like to know if some body has experienced the same issue & has any resolution and also want to confirm that handling unit transfer is possible with bapi_goodsmvt_create.
    Thanks a lot
    Regards
    Ram Upadhayay

    This BAPI only conducts goods movements. It does not affect the handling unit.
    If you want to process a handling unit you must use a different BAPI. Are you attempting to unpack the HU?
    Use BAPI_HU_UNPACK.

  • Problem in deleting Handling unit

    Hi,
      I have created a program in which I have to create a HU and pack a material into it. For this I have used BAPI BAPI_HU_CREATE. Then I am packing this newly created HU to another HU using BAPI BAPI_HU_PACK. In between these 2 BAPI calls I made goods movement using tcode VLMOVE. This I have done using BDC. This process works fine.
       After the creation of HU and Packing if I press a button to delete the HU, it should delete the selected HU. For the deletion of HU I have used BAPI_HU_DELETE. But it is not deleting. But when I start my program again and try to delete it is working.
      Deletion is not working only when I try it after creation of HU.(there is a button for creation too).
    For eg. If I have created and packed successfully a HU say HU1 and I try to delete it , it is not working.
    If I start the program and try, it deletes HU1.
    Could anyone please tell me the reason for this.
    Order of my BAPI call.
    BAPI_HU_CREATE
    BDC for VLMOVE
    BAPI_HU_PACK
    finally when pressing delete button
    BAPI_HU_DELETE
    Do I have to call some FM or BAPI to clear the memory or something like that. Please help me to solve this issue.
    Thanks & Regards,
    Jisha.

    Hi Preetham,
    Thanks for your fast response.
    Yes. There was an error message. The error message was the  u2018The handling unit contains items that cannot be deletedu2019. But if I start the program again it deletes correctly.
    The problem occurs only when I try soon after creating and packing the HU.
    After every BAPI call I am using BAPI_TRANSACTION_COMMIT with wait = u2018Xu2019.
    Thanks & Regards,
    Jisha.

  • Same Handling Unit in Return delivery

    we have a scenario which we are implementing for SAP's client DHL.
    The scenario is as follows:
    1. We have done the GI for the handling units.
    2. And we want to take the same handling units back.
    In order to do so, what we do
    1. We create a return order with original sales order
    2. This eventually creates a return delivery but does not get the handling units assigned.
    3. Hence the delivery needs to be packed with the same HU's with which the goods have been issued.
    Anyone has faced the issue earlier or any one aware of any Bapi or functional modules which will allow them to pack with the same HU.
    Thanks in advance
    Ajay.

    It's seems that you faced it a few years ago, could you please post what you did?
    Thanks

  • How to create Handling Unit using Process Order no. & Packing Instruction

    Hi experts,
    Please guide me how to create Handling Unit using Process Order number & Packing Instruction reference?Noramlly this is done using standard transaction 'COWBPACK'.
    ANY FUNCTION MODULE OR BAPI TO DO THIS.
    if any solution please explain with proper example..
    Thanks In advance
    Thanks,
    Yogesh

    Hi experts,
    Please guide me how to create Handling Unit using Process Order number & Packing Instruction reference?Noramlly this is done using standard transaction 'COWBPACK'.
    ANY FUNCTION MODULE OR BAPI TO DO THIS.
    if any solution please explain with proper example..
    Thanks In advance
    Thanks,
    Yogesh

  • Available Handling Unit

    Hi All!
    In T-Code VL02N we have the outbound delivery overview and we do the processing of handling units here.
    Now i have a requirement where in i have to suggest the user with the available Handling units which can be used for packing.This value i will display in a form.
    I am not able to identify this field and also not sure whether this is available in the DDIC or whether it has to be dynamically retrieved through BAPI's or FM's
    EXIDV gives the external Handling unit no but i want the collection of these available.
    Can anyone throw light on this.
    Regards
    Praneeth

    Hi,
    Check the tables VEKP(Header) and VEPO(Item) tables.
    Regards
    vijay

Maybe you are looking for

  • Mac Mini 1.66 Questions from an XP user

    Hi, Im currently thinking about purchasing the base model Mac Mini but with a GB of ram installed. I work with PC's all day and get tired of using one when I get home. I do not game on my PC as I have a 360 with a live account. However I do not have

  • SQL Query: How to pass list of values to the IN operator

    Hi, I'm trying to pass a list of values to the WHERE <a> IN <list> I dont want to use dynamic cursors (REF CURSOR). Is this possible using Oracle SQL? Please let me know. My program: DECLARE list_of_ids := '10, 20, 30'; SELECT MAX(sal) INTO max_sal F

  • Sub routine in Function module

    Hello i want to create a subroutin in a function module is it better to do like this FUNCTION TEST. perform f_routine using im_bukrs im_werks. ENDFUNCTION. form f_routine using im_bukrs im werks. // here i have to use using import parameter since i w

  • Combo Box Indicator: mouse wheel bug or feature?

    Both ring indicator and slide indicator works fine even when the mouse wheel property is enabled. But user can change value of the Combo Box indicator at runtime. Shouldn't it be disabled, by default, just like for the keyboard?  After all, it's an i

  • Web publishing

    hi, I need to publish a VI in the web, I did the settings as mentioned in the NI.com,After finishing the procedures,I'm seeing the result as shown in the attached document.basically I can't able to webpublish my VI. see my Attached VI as well. Need s