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

Similar Messages

  • Issue in Handling Unit creation.

    Dear All,
    We are using Handling Units functionality in the process order.  We are doing packing after confirmation, at the time of packing system is creating HU for those quantities which were confirmed at the last operation.  E.g. Confirmation quantity is 90 and order quantity is 100 then system is creating HU for 90 quantities. This is working absolutely fine.
    If confirmed quantity is greater than Order quantity, then system is packing the quantities as per the order header quantity only. E g. Confirmation quantity is 110 but Order quantity is 100 then system is creating HU for the 100 quantity only. In this case system should create HU for all the confirmed quantities.
    How to solve this issue. Thanks in advance.
    Regards
    Amit

    Hello Amit,
    Can you please provide the step you are doing in this process. Hope packing is being done automatically during confirmation.
    Regards,
    Sana

  • Handling Unit creation

    Dear Friends,
    I am able to create the Handling Units using BAPI_HU_CREATE but not able to assign the HU to delivery.
    I can see the HUs are created in VEKP tables correctly.
    I am using the FM 'HU_ASSIGN_HUS_TO_OBJECT' to assign this to delivery ( LIKP-VBELN ).
    See the code below, in debugging all the values gets filled correctly including lt_hu_units but HUs are not assigned.
    I can not see those later on in VL02 & then clicking on Pack from menu bar.
    Not sure why the below FM not working correctly?
    Pls. see portion of code below for your referance:
        ls_hu_units-top_hu_external = lv_hukey.
        ls_hu_units-venum              = ls_huheader-hu_id.
        ls_hu_units-rfbel                 = gs_header_details-vbeln.
        ls_hu_units-rfpos                = 10.
        APPEND ls_hu_units TO lt_hu_units.
        ls_object-object = 01.
        ls_object-objkey = gs_header_details-vbeln.
        CALL FUNCTION 'HU_ASSIGN_HUS_TO_OBJECT'
            EXPORTING
              is_object                 = ls_object
              it_handling_units      = lt_hu_units
            IT_HUM_QM              =
           IMPORTING
             et_messages             = lt_messages
    My Regards,
    Prashant

    Hi David.
    There are two areas for creating packing instructions
    Packing instructions and then packing instruction determination
    Transaction POF1 and POP1 (Cannot remember which is which)
    You will need materials set up to represent packing items such as pallets etc, and these are then included in the packing instruction.
    Config in HUM will allow you change the level of determination, plant etc
    Good luck

  • Handling unit creation in the out bound Process

    Hi All,
            If we are not activate Storage Unit management/HU management in the warehouse and still create HUu2019s during outbound process via packing transfer order? We donu2019t want to manage stock at SU/HU level but create handling unit for material during outbound process. Is it possible?
    Please give me the suggestions.
    Thanks
    Prasad

    Hi Prasad,
    Yes it is possible. You will have to use handling units only as shipping units in the outbound delivery packing function. The handling unit can be defined during the transfer order confirmation (you have this in LT12 as packing) or in the delivery after the TO confirmation. You can only perform packing before goods issue.
    I hope i'll helps you lot
    Regards
    Madhu

  • Handling Unit creation at Sales order Level

    Hi Experts ,
    Please let me know,how can a handling unit be created at sales order level.
    Your comments will be appreciated
    Regards
    Albert

    Albert Ackerman wrote:>
    > Hi Experts ,
    >
    > Please let me know,how can a handling unit be created at sales order level.
    >
    > Your comments will be appreciated
    >
    > Regards
    >
    > Albert
    Hi Albert,
    I am not sure if i got your requirement correctly.
    Nevertheless if you are asking where do you maintain Handling Type HT in sales order:
    Choose the line items double click (goto details of line items)
    Go to Excise Duty tab and put the required Handling type.
    If you want to know where do we configure Handling types.
    Goto
    SPRO->Industry Solution Oil&Gas(downstream)->TDP(Tariffs, Duties & Permits)->Global Settings->Parameter Definition->Set Handling Type.
    If you want to know the related tables for Handling type they are
    OIH07, OIH27
    Hope i addressed to your expectation.
    Post for furthur clarification
    Regards
    Abhishek Swarup

  • Handling unit creation in existing shipment via BAPI or IDOC

    Dear all,
    Dose any one tried and succeed packing deliveries items in an existing shipment in the shipment level via BAPI or IDOC.
    I tried to use IDOC massage type SHPADV. The problem was that it's creates a new shipment with the same deliveries and pack their items, although I entered the existing shipment number.
    With regards to "BAPI_SHIPMENT_CHANGE", it is seems like this BAPI is not an option. It is update the shipment in any shipment field but not creating HU in shipment level.
    Dose there any solution via those options or there is any other solution.
    Thanks in advance,
    Itai

    I tried simulating this LSMW (message type-  PREQCR1, Baisc type -PREQCR101) and it is working fine. I used creation indicator = R in item segment - E1BPMEREQITEM and have not updated value for this field in Header. So try without any value for CREATE_IND in HEADER and just pass R in item.
    yogesh

  • Issue: Handling unit creation

    Hi,
    While creating u2018Handling Unitsu2019 in transaction MFPP1 system creates it successfully in back groung BUT while trying u2018Onlineu2019 it ask for u2018Packing Instructionu2019, after giving input of same u2018Packing Instructionu2019 (Which system fetch in back ground) it gives error u201CMaterial doesnu2019t maintain in packing instruction ##u2019.
    Request  you to suggest possible reasons.

    dear friend, do you have correct determination record ?
    as far as i know  system starts packing instruction determination when you enter a quanitity of a material to be packed and choose Pack automatically.
    Prerequisites as follows:
    You have created a packing instruction/reference packing instruction for packing with packing instructions.
    You have made the settings for packing instruction determination in Customizing.
    Customizing for packing instruction determination is preset in the standard system. However, you can extend the settings in  the customer name range. You need the following for packing instruction determination:
    - condition table
    - access sequence
    - determination type
    - determination procedure.
    You have also defined determination records.
    just in case look here:
    http://help.sap.com/saphelp_47x200/helpdata/EN/e5/de47aba71411d2b44e006094b9b9dd/frameset.htm
    good luck

  • 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

  • Automatic creation of TO's for Handling Unit Inbound Delivery -del type HID

    Hi Guru's,
    I would like to create the putaway TO's for a Handling Unit inbound delivery automatically (delivery type HID). This means at the moment of the creation of the Inbound Delivery. The packing is also automatically done by the customizing of the delivery type. Did somebody faced this requirement before?
    Thx,
    Carl

    I found the solution:
    Choose Customizing activity Define Output Types for Inbound Delivery, and define output type WMTA. Enter the following values in the detail view of output type WMTA under General Data:
    Enter an existing Access sequence. Access sequence 0001 is predefined in the standard system.
    Set the indicator Access to conditions.
    Set the indicator Partner-indep. output.
    Save your entries.
    In the menu tree, choose the entry Processing Routines in the Customizing activity Define Output Types, and enter the following values:
    Choose entry 8 (special function) for the indicator Transmission Medium.
    Enter RLAUTA20 in the field Program.
    Enter ENTRY in the field Form Routine.
    Save your entries.
    Choose the Customizing activity Maintain Output Determination Procedure.
    Define a procedure and enter the output type WMTA in the control view of the procedure. The procedure E10001 is predefined in the standard system.
    To define a suitable condition record for inbound deliveries,
    choose Logistics -> Materials Management -> Purchasing -> Master Data ->
    Messages -> Inbound Delivery -> Create from the SAP menu.
    Enter the output type WMTA.
    Enter output medium 8 (special function) for delivery type Inbound Delivery.
    Select the desired Date/Time.
    Select the desired Language.
    Cheers,
    Carl

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

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

Maybe you are looking for