Problem in Creation of Handling Units through HU_REPACK and HU_POST FM

Hi Experts
        This is regarding the problem in creation of HUs with function modules HU_REPACK and HU_POST.
I am sending two Unique Sources HUs  with single destination HU for the same material and batch into HU_REPACK  and it shows that it is successfully repacked and soon as the HU_REPACK function module passess I have called HU_POST without any parameters except messages..As the data will be picked up auomatically from the internal memory as these function module are related same function group.
  Even the HU_POST FM passes successfully and also it creates a Transfer order but the problem is that THe HU is created with the MULTIPLE LINE ITEMS for the same material and Batch which should not be done at all .
Please find the example of the HU created in the system
    0     10020000038479     S-DISP     1     EA          S DISPNSARY
    1     0024632192 000004     810062     0.250     KG     L0533A4172     Lactose
    1     0024632192 000004     810062     24.900     KG     L0533A4172     Lactose
Material is 810062
Batch    is L0533A4172
Can you please assist me how to acheive single line item HU  when we are trying to repack the data for  same material and batch as it does while you create the HU through Manual processing i.e HU02 etc

*

Similar Messages

  • Creation of handling unit through VL01N

    HI ALL,
    i have a requirement like in vl01n we will give shipping point and sales order and we press enter and we will give picking quantity and we will press save button . here when ever i press save button i need delivery number with auto packing handling unit number also. how to do technically?
    thanks
    ram.

    Hi,
    In industry solution - automotive solution, this can be done by HUP12 - create planned HU's for sales order.
    In generic SAP, this can not be done.
    Hope this helps.
    Harry

  • Problem in creation of HUs through FM HU_REPACK and HU_POST

    Hi Experts
    This is regarding the problem in creation of HUs with function modules HU_REPACK and HU_POST.
    I am sending two Unique Sources HUs with single destination HU for the same material and batch into HU_REPACK and it shows that it is successfully repacked and soon as the HU_REPACK function module passess I have called HU_POST without any parameters except messages..As the data will be picked up auomatically from the internal memory as these function module are related same function group.
    Even the HU_POST FM passes successfully and also it creates a Transfer order but the problem is that THe HU is created with the MULTIPLE LINE ITEMS for the same material and Batch which should not be done at all .
    Please find the example of the HU created in the system
    0 10020000038479 S-DISP 1 EA S DISPNSARY
    1 0024632192 000004 810062 0.250 KG L0533A4172 Lactose
    1 0024632192 000004 810062 24.900 KG L0533A4172 Lactose
    Material is 810062
    Batch is L0533A4172
    Can you please assist me how to acheive single line item HU when we are trying to repack the data for same material and batch as it does while you create the HU through Manual processing i.e HU02 etc

    Hi Sailaja,
    I have similar requirements like this before with HU_PACKING_AND_UNPACKING FM. It was a tough debugging before I came up with the right solution. Unfortunately, I was not able to document that code..
    But here is what I have been doing.
    Youre on track with the solution below, never use BDC as it will only limit the Handling units that you wish to put into.
    The function modules that starts with V5_ plays important role as you need to initialize the global variables and table of this function group with values before calling HU_PACKING_AND_UNPACKING FM
    Debug inside the Function module, and look for the FM that returns SY-SUBRC <> 0 then set a breakpoint.
    Restart the program then debug inside that FM again (and I do not want to go further on the details, I give you the presumption of literacy)
    You will find some items that has no value, try to initialize everything by utilizing the FM for this function group V51S.
    Happy Debugging.

  • FM to get Handling Unit data (VEKP and VEPO)

    Hello experts,
    Is there any FM that returns data from Handling Unit tables VEKP and VEPO.
    Thanks,
    Rajat

    Hiii
    Try following Function module may help you.....
    HU_PACKING_DELIVERY     
    HU_PACKING_GENERAL      
    HU_PACKING_SALES_PROPOSAL
    HU_PACKING_TRANSPORT    
    HU_PACKING_WM           
    Regards
    Shambhu Sarkar

  • Problem while unpacking an handling unit using FM HU_PACKING_AND_UNPACKING

    Hi ,
    I want to unpack an HU from an outbound delivery and transfer to other storage location using FM 'HU_PACKING_AND_UNPACKING'.I could find out that only quantities are transferred but unpacking HU is not done.
    Below is the code  i am using for unpacking.
    CALL FUNCTION 'HU_GET_HUS'
            EXPORTING
              if_lock_hus = 'X'
              it_venum    = it_hu1
            IMPORTING
              et_header   = it_hdr1
              et_items    = it_item1
            EXCEPTIONS
              hus_locked  = 1
              no_hu_found = 2
              fatal_error = 3
              OTHERS      = 4.
          IF sy-subrc <> 0.
            l_error = 'X'.
            CLEAR: g_msgid, g_msgno, g_msgv1,g_msgv2, g_msgv3, g_msgv4.
            g_msgid = sy-msgid.
            g_msgno = sy-msgno.
            g_msgv1 = sy-msgv1.
            g_msgv2 = sy-msgv2.
            g_msgv3 = sy-msgv3.
            g_msgv4 = sy-msgv4.
            PERFORM message_scr USING g_msgid g_msgno g_msgv1 g_msgv2 g_msgv3 g_msgv4.
            EXIT.
          ENDIF.
          LOOP AT it_hu1 INTO wa_hu.
            CLEAR: wa_item1,l_error,l_post.
            READ TABLE it_hdr1  INTO wa_hdr1  WITH KEY venum = wa_hu-venum.
            CLEAR : g_venum, g_plant, g_sloc, g_whno, g_stype, g_sbin.
    *       get the warehouse details
              SELECT SINGLE lgnum lgtyp lgpla FROM lein INTO (g_whno,g_stype,g_sbin)
                WHERE lenum = wa_hdr1-exidv.
              IF sy-subrc EQ 0.
    * Get the plant and storage location for WM managed
                SELECT SINGLE werks lgort FROM lqua INTO (g_plant, g_sloc)
                                     WHERE lgnum = g_whno
                                       AND lgtyp = g_stype
                                       AND lgpla = g_sbin
                                       AND lenum = wa_hdr1-exidv.
              ELSE.
    * Get the Venum (Internal HU Number)
                SELECT SINGLE venum FROM vekp INTO g_venum
                WHERE exidv = wa_hdr1-exidv.
                IF sy-subrc EQ 0.
    * Get the plant and storage location for Non-WM managed
                  SELECT SINGLE werks lgort FROM vepo INTO (g_plant, g_sloc)
                    WHERE venum = wa_hu-venum.
                ENDIF.
              ENDIF.
              READ TABLE it_item1 INTO wa_item1 WITH KEY venum = wa_hu-venum.
              IF sy-subrc = 0.
                CLEAR :wa_pack_unpack.
                MOVE-CORRESPONDING wa_item1 TO wa_pack_unpack.
                wa_pack_unpack-venum = wa_item1-venum.
                wa_pack_unpack-vepos = wa_item1-vepos.
                wa_pack_unpack-velin = wa_item1-velin.
                wa_pack_unpack-belnr = wa_item1-vbeln.
                wa_pack_unpack-posnr = wa_item1-posnr.
                MOVE wa_item1-vemng TO l_vemng.
                CONCATENATE l_vemng '-' INTO l_vemng.
                CONDENSE l_vemng NO-GAPS.
                MOVE l_vemng TO wa_pack_unpack-quantity.
                wa_pack_unpack-altme = wa_item1-altme.
                wa_pack_unpack-matnr = wa_item1-matnr.
                wa_pack_unpack-charg = wa_item1-charg.
                wa_pack_unpack-werks = g_plant.
                wa_pack_unpack-lgort = g_sloc.
                wa_pack_unpack-wdatu = wa_item1-wdatu.
                wa_pack_unpack-vfdat = wa_item1-vfdat.
              ENDIF.
    *          *Find the partner location
              CLEAR: g_hu_managed, g_partner_sloc.
              CALL FUNCTION 'V51S_HU_LGORT'
                EXPORTING
                  if_lgort         = g_sloc
                  if_werks         = g_plant
                IMPORTING
                  ef_hu_managed    = g_hu_managed
                  ef_partner_lgort = g_partner_sloc
                EXCEPTIONS
                  lgort_not_exist  = 1
                  OTHERS           = 2.
              IF sy-subrc <> 0.
              ENDIF.
              IF g_hu_managed = 'X'.
                wa_pack_unpack-umlgo = g_partner_sloc.
              ENDIF.
              CALL FUNCTION 'HU_PACKING_AND_UNPACKING'
                EXPORTING
                  is_packing_request = wa_pack_unpack
                IMPORTING
                  es_p_request       = wa_pack_unpack
                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.
                l_error = 'X'.
              ELSE.
                l_post = 'X'.
              ENDIF.
              IF l_error IS INITIAL AND l_post EQ 'X'.
                CALL FUNCTION 'HU_POST'
                  EXPORTING
                    if_synchron = 'X'
                    if_commit   = 'X'
                  IMPORTING
                    et_messages = it_messages.
            ENDLOOP.
    Please help if any parameter need to be set for unpacking of HU.
    Please suggest.
    Thanks in advance.

    Hi Sailaja,
    I have similar requirements like this before with HU_PACKING_AND_UNPACKING FM. It was a tough debugging before I came up with the right solution. Unfortunately, I was not able to document that code..
    But here is what I have been doing.
    Youre on track with the solution below, never use BDC as it will only limit the Handling units that you wish to put into.
    The function modules that starts with V5_ plays important role as you need to initialize the global variables and table of this function group with values before calling HU_PACKING_AND_UNPACKING FM
    Debug inside the Function module, and look for the FM that returns SY-SUBRC <> 0 then set a breakpoint.
    Restart the program then debug inside that FM again (and I do not want to go further on the details, I give you the presumption of literacy)
    You will find some items that has no value, try to initialize everything by utilizing the FM for this function group V51S.
    Happy Debugging.

  • Creation of Handling Units 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

    Hi,
    In industry solution - automotive solution, this can be done by HUP12 - create planned HU's for sales order.
    In generic SAP, this can not be done.
    Hope this helps.
    Harry

  • VL02N creation of handling units

    Hello,
    Is it posible to create handling units manually in the delivery? If yes, what is the procedure?
    Also, if handling units were done by clicking automatic packing, is it possible to edit the handling unit created? If yes, how?
    Thanks

    Hi
    I just want to add my input...hope this may fullfill ur query...
    steps:
    1. crate Material Packaging type
    2. Create Material Packaging group
    3. AllowPackaging type into  packaging group
    4. assign Material Packaging group into MM02
    then go to VL02N there you have handling unit icon..there u can play as much as u can depand on wt, vol.. of Materail
    correct me if went wrong..
    Thanks
    Mahesh

  • Sharing Handling Units between Inbound and Outbound Delveries?

    Hello-
    I could use some guidance with how to best setup a handling unit scenario for a Third Party Purchasing process.
    1.) Sales Order for Third Party Purchased Material (Vended Finished Good) is created in ECC.
    2.) Purchase Order is sent to supplier.
    3.) Shipping Label is generated in SAP and is assigned a Handling Unit.  Label is sent to supplier.
    4.) Supplier affixes this label to product and ships it to our warehouse.
    5.) Goods Receipt is performed via Purchase Order (MIGO). 
    6.) Warehousing activities and Post Goods Issue of Outbound Delivery are performed via this label and Handling Unit.
    We would like to do a few new things with this process.
    A.) We would like to have the supplier provide us with the HU on their ASNs and generate a Packed Inbound Delivery from it. 
    B.) We would like the same HU to eventually be associated with the Outbound Delivery to the end customer. 
    Is their a best practice to share a Handling Unit across an Inbound and Outbound Delivery? 
    Is EWM Cross Docking the best way to accomplish this? 
    Are there other proven approaches?
    Thanks for your time and help.
    -Ron

    hi friend
    Handling unit number for identity of packing materail , pallet material carrying the carton ,carton the carrying the  material
    like FG  material and tray
    identification number controlling the handling unit numbers.
    with regards
    dinesh

  • Handling Units Deletion from Shipment

    Hi,
        I got a problem in deletion of handling units using the FMs V51P_FILL_GT and then HU_PACKING_AND_UNPACKING. The FM HU_PACKING_AND_UNPACKING has got a structure gt_xvekp which gets populated dynamically when a HU is deleted from a shipment, but this is not happening when i call the FM separately in a program. Can any one help me or provide me a sample code in resolving this.  Correct answers would be rewarded.
    Thanks
    Abhishek

    Hi,
    LT06 is to create TO with reference to material document.
    I'm not sure what you want exactly. You marked creation of TR in customizing - in this case you have to create TO from LB10 from the automatically generated TR or you can create TO automatically with suitable reports (you have to run programs in background).
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/97/91cfd2571211d4b3210050045571f7/frameset.htm
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/c6/f8406c4afa11d182b90000e829fbfe/frameset.htm
    If you want to have immediate TO (you want to create the TO at immediately after GR si posted), you have to set it in customizing in WM-IM interface. Please read OSS note 566090 for details.
    Please also search on the net / forum.
    Regards,
    Csaba

  • Outbound Delivery Handling Unit HU material box pallet

    Business requirement.
    To create a delivery based on a sales order using a function module. To do this, users have an AbapWebdynpro application to collect data, 
    Handling units for boxes and handling units for pallets are creates as the user packs his materials in the application.
    Items are packed in boxes and boxes on pallets.
    Problem description: cannot pack boxes onto pallets.
    I can pack items in boxes no problems. Delivery gets created ok.
    How i do it:
    Step 1:
    At the end of AbapWebdynpro process and validations, if no errors occurs, a function module is called to format the data and call fm to create a delivery.
    This part works as expected and is all ok.
    Step 2:
    Then in the function module that will create de delivery, header proposal is filled for boxes and pallets. itemproposal is filled for items in boxes and pallets
    Step 3:
    then,
    FUNCTION 'BAPI_HU_CREATE' is used to create handling units for items
    This part works perfectly for boxes and items but not for pallets.
    then, delivery create
    CALL FUNCTION 'SD_DELIVERY_UPDATE_PACKING_1'
    EXPORTING
    delivery = ls_createditems-document_numb
    commit = 'X'
    synchron = 'X'
    TABLES
    verko_tab = i_verko
    verpo_tab = i_verpo
    prot = i_prot
    it_handling_units_1 = i_handling_unit
    EXCEPTIONS
    update_not_possible = 1
    OTHERS = 2.
    This part works fine also if not pallets HU are present in the data .
    The problem is when i want to create a pallet and add the boxes to it. I have tried about every thing i read but had not much success.
    The only thing that came close to doing the job is the following code.
    First i create the delivery with boxes and materials only and with the following FM, i create the pallet and attach it to the delivery line but then i can not assign the boxes to it.
    ls_handling_units-top_hu_external = ls_packed_pallets-hu_pallet.
    ls_handling_units-top_hu_internal = ls_hupallet.
    ls_handling_units-venum = ls_huboxes.
    ls_handling_units-vepos = ls_packed_boxes-posnr.
    ls_handling_units-rfbel = lv_vbeln.
    ls_handling_units-rfpos = ls_packed_boxes-posnr.
    APPEND ls_handling_units TO lt_rehang.
    Step 4:
    CALL FUNCTION 'SD_DELIVERY_UPDATE_PACKING_1'
    EXPORTING
    delivery = ls_createditems-document_numb
    commit = 'X'
    synchron = 'X'
    TABLES
    verko_tab = i_verko
    verpo_tab = i_verpo
    prot = i_prot
    it_handling_units_1 = i_handling_unit
    EXCEPTIONS
    update_not_possible = 1
    OTHERS = 2.
    Is anyone succeed to create a program to create outbound delivery where materials are pack into boxes and those boxes are packed on pallets.
    Regards
    dstj

    If the delivery document PGIed then you need to do VL09 transaction to reverse the PGI document.
    Then do in VL02N transaction  select Delete handling unit assignment icon it will remove all the handling units from delivery.
    Later goto EDIT option then selct copy pack qty as dlv qty then save.Later system will allow you to delete the document.

  • IDOC DELVRY03 (WHSCON) create Handling Units

    Hi,
    I am creating an inbound delivery from an IDoc.
    I now want to have the items packed on the delivery.
    Therefore the HU's need to be suitably created and packed into for the items.
    From investigating, SAP states use the 'WHSCON for creation of Handling Units for deliveries'.  Refer OSS note 792726.
    Can somebody please point me in the correct direction for performing this.
    So far all I have managed to find is that EXIDV needs to be present, which is the HU, which I do not have.  Unless I am missing some fundamental point that SAP has not pointed out to me yet
    As far as a BDC goes for packing, use the Single Entry tab, on VL32N anyway.
    I have a BDC to do this, so can fall back to that, but it would be preferred to create the delivery and then pack it right away, whilst creating/posting the IDocs.  The IDocs also provide tracking in case things go wrong, etc, hence, prefer the workflow rather than have another program to run, etc etc.
    Thanks
    Justin Mortlock

    Hi,
    Check out the qualifier in the E1EDL41 segment.
    It has following qualifiers.In your IDOC you should be having 002???!!!.
    If so update the mapping with the 003 qualf at the middleware/translator level.

  • Handling Unit Management

    Dear Gurus,
    In My Business Scenario,I made Handling Units For My Workorder(Process Order),in Transaction COWBPACK and Received Those Handling Units through COWBHUWE transaction.The Stock is Posted to Quality Stock.During Usuage Decision ,in the Stock Posting Tab Page ,I have Accepeted the Lot and Posted to my New Material ID,as the MIC Results Suits Closely to New Material ID.Now I do not Found any Handling Units Present For My New Material ID.Only the stock Exists For the New Material ID.
    No HU to HU Transfer Taken Place.
    Now my Quastion is How to Create HU'S For the New Material ID.The Process order Status Was DLV.Pl Guide.
    Note: Our Storage Locations  are not HU Managed Storage Locations
    Regards,
    PSV

    DEAR GURUS,
    PL PROVIDE SOLUTION.
    REGARDS,
    PSV

  • QA32 UD for Handling Units results in a transfer posting delivery?

    In our environment we have Handling Units,  Serial Numbers and QM.  In the mateial master the QM inspection types are set to inspecting by HU.  The inspection lot gets created correctly and it references all the HUs.  When we perform a usage decision and transfer the HUs to unrestricted stock in QA32.  The system creates a transfer posting delivery that I then have to go and pick the HUs onto and then PGR the transfer posting delivery.   It seems to me that because QA32 is working with the HUs it should direclty post the stock to unrestricted.  I don't understand why I need this Transfer Posting Delivery.
    Can anyone confirm that, yes indeed this is standard SAP behavior and we have to live with it  or Am I missing something and no the system can directly post an HU with serial numbers form 'Q' stock to unrestricted via QA32.
    Thanks for your help,
    Steve

    Hi,
    The Standard SAP process is as follows,
    1. GR --> Inbound Delivery created and stock is in 902Q
    2. QM processes
    3. Take Usgae Decision --> Transfer Posting Delivery Created
    4. Create TO and confirm TO with reference to step 3 Delviery (Sotck moved from 902Q to 922Q then 922 without Q to 902 without Q(Unrestrcited use)) (This TO Creation and confirmation can be automated)
    5. Now create TO and confirm TO with reference to Step 1 Delivery (Stock moved from 902 without Q (unrestriced)) to the permanent storage (unrestricted use stock).
    I hope this will help you.
    Regards,
    K.Annadurai.

  • Handling Unit - Storage Location

    Hi,
      Finished product is lying against sales order in a particualr
    storage location eg: 1000  . Is it possible to create handling
    unit through Outbound delivery in the same storage location .
    If it is possible is it the right method to do.
    Awaiting for reply
    Regds
    Tresea

    Well if you want to Pack HUs for Outbound Delivery in a HU managed Storage Location (SLOC 1000 for ex) then make sure that the SLOC is not Warehouse Managed with Storage Unit Management activated.
    Just performing HU operations at SLOC level is fine. But once you activate WM with SU Mgmt you need to create Partner Storage Location (virtual) to perform Pack-Unpack operations.
    Reason being - you cannot perform Pack operations on a SU but on a HU only.
    Read some more on the usage difference between SU-HU to help understand this.
    Let me know if u need some specific info.
    thanks.

  • SAP Handling Unit Managment

    Hi folks,
    I very urgently need some documents about SAP HUM.
    Can any one help me.
    Laxmanan

    SAP HU - SAP Handling Unit Management (HUM)
    The SAP HU is used for tracking the handling units used by the materials.  Some common handling units are packagings materials like cartons, pallets etc.
    In the SAP system, the handling unit (HU) expands on the shipping unit. Handling units can be nested and you can also create new handling units from several handling units as often as you like. At the material item level, HUs contain the complete material identification, the quantity, and, in the case of serial numbers, the respective object list. Handling units have unique,
    scannable identification numbers that can be developed according to standards such as EAN 128 or SSCC.
    Handling units contain all inventory management information of the materials they contain that are maintained in Inventory Management. There are also status messages that you can call up at any time that indicate whether a handling unit is only planned or if the ship-to party has been notified of the arrival of this handling unit, or whether it is in the warehouse or has already been posted to goods issue. The integrated history function also records each business process in
    the life cycle of each handling unit, meaning that you can track the handling unit’s path and development at any time.
    Refer to : Logistics -> Central Functions -> Handling Unit Management
    In HU-managed storage locations, all goods movements are executed through the specification of the respective HUs, and Inventory Management is performed through the handling units. If you are working without HU-managed storage locations, you can work with handling units (without stock information) as before in the delivery and in the shipment.
    In HU-managed storage locations, materials can be managed in HUs only. Mixed stock made up of packed and non-packed materials within the same storage location are not supported. HUs can also be managed in interim storage types. Unpacking a material from a HU means that the stock of the material is posted to a storage location that is not HU-managed.
    If you call up normal material movements in connection with an HU-managed storage location, a delivery is created, rather than a direct material posting, which has been the procedure up to now.
    Please note that if you want to use 311 to move the material already in stock, but in a non HUM Storage Location and you want to transfer those materials into a HUM Storage Location 304.  If this is the case you can use the transaction VLMOVE with the destination plant and storage location. Before that you have to create the HU with the transaction code HU02 Storage location: where the material is and the status: in stock.
    Handling units are unique at client level in at least one system. Using an indicator at client level, you can control whether you are going to work with the HU functions. Since the handling unit is a physical unit, the central logistics processes are controlled through the input of the handling unit identification. These processes include putaway, picking, and stock transfers, as well as goods receipts and goods issues.
    A handling unit’s mobility can be limited if quality checks are active. Changes in the stock category caused by a quality inspection are made using a posting change in the handling unit.
    There is also a report available that you can use to find and display handling units using different selection criteria such as material, packing instruction, or storage location.
    Although the handling unit is basically a unit that remains constant in the system, you can change it by repacking the materials it contains. All the packing functions, such as packing, repacking, and unpacking, are completely supported by the handling unit functionality. In this way, handling units can be created in production, during goods receipt, or in the packing areas of the warehouse. If you have automatic packing, the handling unit is created from the packaging proposals defined in the system (from the packing instructions, for example).
    Regards,
    Rajesh Banka
    Reward points if helpful.

Maybe you are looking for