Assigning Handling Unit to Inbound delivery

Hi Guys,
My requirement is i need develop program which will t program which will take the  mutliple Purchase orders/STOs and create a single inbound delivery.   Acutally this will be done SAP transaction VL31N.  But as it has sap enjoy transaction we can run write a bdc for this transaction.   So I found one transaction VL34, which is taking the multiple POS, but..creating  multiple deliveris i.e. a inbound delivery for each PO.  So I copied this code in Z program and did the modifications to create a single inbound w.r.t. given purchase order numbers.  But I found packing details are not getting updated. 
So, now i need to assign the packing details (HU numbers) to created inbound delivery . 
Any idea on this ?
Best Regards,
Ganesh Nama

Any body knows...solution for above question ?

Similar Messages

  • Handling unit in inbound delivery

    Dear all
    creation of handling uinit for inbound delivry are optional in standard as we can create H.U or without H.U for inbound delivery
    please guide me how can i customize sysytem as creation of handling uinit for inbound will be mandatory in other words we can't create inbound delivery without handling unit number.
    best regards
    R.T

    no comment

  • Function Module for UNPACKING Handling Unit from Inbound Delivery

    Hello Experts,
    I am working on a RFID program to Receive goods from vendor...
    One of the steps of the program should CHANGE the quantity inside a received batch.
    To do so, I need to UNPACK the Handling Unit first... then change the quantity.
    I am using the following Function Modules to do so:
    - 'HU_GET_HUS'
    - 'V51P_FILL_GT'
    - 'HU_PACKING_AND_UNPACKING'
    - 'HU_POST'
    First 2 FM works fine...
    But when I get to the 3rd one, I keep getting "NOT_POSSIBLE" error...
    Have anyone done this before??
    Here's the code I've done to do some testing before putting it into my code...
    PLEEEEEEEEEEEASE HELP.
    TYPE-POOLS: vsep. PARAMETERS: p_venum LIKE vekp-venum.
    DATA: wa_object LIKE hum_object,
          it_object TYPE TABLE OF hum_object.
    DATA: wa_v51vp LIKE v51vp,
          it_v51vp TYPE TABLE OF v51vp.
    DATA: flag LIKE v51p_select_flags.
    DATA: it_venum            TYPE STANDARD TABLE OF hum_venum,
          ef_rcode            LIKE sy-subrc,
          et_vekp             TYPE STANDARD TABLE OF vsep_s_vekp,
          et_vepo             TYPE STANDARD TABLE OF vsep_s_vepo,
          et_vevw             TYPE vsep_t_vevw,
          et_highest_level    TYPE vsep_t_venum,
          et_messages         TYPE huitem_messages_t,
          is_packing_request  TYPE vsep_s_pithu,
          es_p_request        TYPE vsep_s_pithu,
          es_item             LIKE vepovb,
          cs_header           LIKE vekpvb,
          ef_number           TYPE vpobjkey,
          et_header           TYPE STANDARD TABLE OF vekpvb,
          et_items            TYPE STANDARD TABLE OF vepovb,
          et_item_serialno    TYPE vsep_t_rserob,
          et_history          TYPE hum_history_t,
          et_highest_levels   TYPE hum_venum_t.
    DATA: wa_venum            LIKE hum_venum,
          wa_vepo             TYPE vsep_s_vepo,
          wa_vekp             TYPE vsep_s_vekp,
          wa_items            TYPE vepovb,
          wa_header           TYPE vekpvb.
    START-OF-SELECTION.
      wa_venum-venum = p_venum.
      APPEND wa_venum TO it_venum.
      CALL FUNCTION 'HU_GET_HUS'
        EXPORTING
          it_venum          = it_venum
        IMPORTING
          et_header         = et_header
          et_items          = et_items
          et_item_serialno  = et_item_serialno
          et_history        = et_history
          et_highest_levels = et_highest_levels
          et_messages       = et_messages
        EXCEPTIONS
          hus_locked        = 1
          no_hu_found       = 2
          fatal_error       = 3
          OTHERS            = 4.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE et_header INDEX 1 INTO wa_header.
      CALL FUNCTION 'V51P_FILL_GT'
        EXPORTING
          it_venum         = it_venum
        IMPORTING
          ef_rcode         = ef_rcode
          et_vekp          = et_vekp
          et_vepo          = et_vepo
          et_vevw          = et_vevw
          et_highest_level = et_highest_level
          et_messages      = et_messages
        EXCEPTIONS
          hu_locked        = 1
          no_hu_found      = 2
          fatal_error      = 3
          OTHERS           = 4.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE et_vepo INDEX 1 INTO wa_vepo.
      READ TABLE et_vekp INDEX 1 INTO wa_vekp.
      MOVE-CORRESPONDING wa_vepo TO  is_packing_request.
      is_packing_request-belnr    = wa_vepo-vbeln.
      is_packing_request-quantity = wa_vepo-vemng.
      is_packing_request-veanz    = '-1'.
      is_packing_request-meins    = wa_vepo-vemeh.
      is_packing_request-exidv    = wa_vekp-exidv.
      CALL FUNCTION 'HU_PACKING_AND_UNPACKING'
        EXPORTING
          is_packing_request = is_packing_request
        IMPORTING
          ef_rcode           = ef_rcode
          es_p_request       = es_p_request
          es_item            = es_item
        CHANGING
          cs_header          = cs_header
        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.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'HU_POST'
        EXPORTING
          if_synchron = 'X'
          if_commit   = 'X'
        IMPORTING
          ef_number   = ef_number.
      break nunfx004.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Thanks in advance,
    Fernanda

    Hi ,
    Check this code.
    Pack componet HU to Overpack HU. *
        l_packing_req-venum = g_ovrp_venum.                  "Overpack Internal HU
        l_packing_req-exidv = g_ovrp_exidv.                  "Overpack External HU
        l_packing_req-veanz = '1'.                     "PACK Constant
        l_packing_req-sub_hu_venum = l_int_venum.
        l_packing_req-sub_hu_exidv = l_int_exidv.       "Componet External HU
        l_packing_req-velin = '3'.                      "HU Type Constant
        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.
    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.
    No Errors --> POST HU
        call function 'HU_POST'
          exporting
            if_synchron = 'X'
            if_commit   = 'X'.
    plz write what you are passing to 'HU_PACKING_AND_UNPACKING' and hu_post fm.
    Regards
    Mohinder Singh Chauhan

  • Putaway of Handling units via Inbound delviery

    Hi,
    I have configured HUM for my warehouse & am putting away my handling units via Inbound delivery.
    The system currently generates a transfer order for each & every HU/ storage unit that is created.
    But i would like to create one single transfer order for every storage type. In other words one transfer order will contain all the storage units that are to be put-away per storage type.
    Is there a setting to make the above mentioned possible. Do let me know if more clarity on my question is reqd.
    Thanks
    Kiran

    Hello,
    You could check the To split functionality to see if this can help you complete your requirements.
    http://help.sap.com/saphelp_erp60_sp/helpdata/EN/c6/f83df24afa11d182b90000e829fbfe/frameset.htm
    Further documentation is available if you click the IMG documentation in LE>WM>strategies--> Define stock sequence for stock removal (picking)
    Hope this helps
    Thanks,
    Edited by: Abhijit Sadhu on Jun 8, 2009 4:14 PM

  • Archiving Non Assigned Handling Units

    Hello Experts,
    I have a large number of Non Assigned Handling Units (Object 12) in my Production system. I want to archive them. I understand that if I delete these HU's in HU02 then their status will be updated from 0020 to 0060 and they can be archived. But what is the implication of this? Can Non Assigned HU's be used at a later stage?
    One more thing I wanted to clarify is that suppose I have a HU in my Delivery. It will have object as 01 in VEKP. Now can I delete this HU after PGI or Invoice is created and once it is deleted from delivery then will it be updated to 12 object is VEKP? Basically I want to understand how Non Assigned HU's are created. Is it by just deleting from Delivery or is there any other way also.
    Appreciate your inputs.
    Thanks,
    Karan

    Hi,
    a non-assigned handling unit is a free HU that is not assigned to any document and you can assign it to documents (outbound deliveries f.e. to post it to customer).
    You can only have/store free HUs in your system when handling unit management is activated in your system (TVSHP-EXIDV_UNIQUE is set).
    You can create non-assigned handling units with transaction hu02 f.e.
    You can check in table VEKP if the HU is a free HU or not (if VEKP-VPOBJ is 12, it is a free HU).
    Regards,
    Ely

  • Error:Assign handling Unit from one Process order to another process order

    Hi Experts,
    I am facing different issues in assigning handling unit from one process order to another.
    Business process:
    1. Two similar Process Orders are existing in the system
    2. Delivery is created for first process order using LP10 for one or more components
    3. TO is created in foreground using VL06P
    4. TO is confirmed by providing in stock available Handling Unit (HU) / storage Unit details Using LT12
    5. Customized transaction is used to reassign newly created HU (created in previous step) from first process order to second process order. As a result many steps are performed in background for delinking the HU from first process order to second process order (including creation of different TOs)
    I am facing different issues in the process:
    1. Sometimes while confirming the TO in step 4: error is received as "Reservation item 0065 with material 4013959300300 does not exist" OR "Reservation item with material does not exist"
    2. If the TO is confirmed in step 4. I am facing error in step 5 as "Warehouse number  does not exist (new selection required)"
    Both these errors are standard errors and I could not find much information on them in SCN also.
    If anyone can throw light on any of them then it would be great.
    Please let me know if any additional information is required.
    Thanks
    Harsh Aggarwal

    Hi Manish
    Thanks for your response. Actually, the customized program is used only in fifth step and not till TO confirmation so that error is not related to Customized program. However, in some cases I am able to do the confirmation but the error is received in 5th step i.e. Warehouse number  does not exist (new selection required)"
    Any further guidance you can provide. I will ask ABAP to check the customized program but the error seems to be a standard error.

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

  • Assigning Handling Unit to the Inbound Delivery

    Could anyone please give me an example of code (using FM 'ws_delivery_update' and probably others) to assign a HU created by transaction HU02 (status PLND)to the inbound delivery (like VL32N).
    After such assignment I want to create an appropriate Transfer Order to move the HU to the warehouse. In my case ws_delivery_update doesn't update the HU positions table VEPO-VBELN.
    When tried to use FM 'L_TO_CREATE_DN' it just showed an error saying that 'No items or handling units to be placed in storage could be determined'.

    What parameters have I missed? Please, help!

  • Assigning Handling Unit(HU) to Inbound Delivery.

    I have Created Inbound Delivery and HU and I want to assign HU to Inbound Delivery.
    I want to develop Z transaction to assign HU to Inbound Delivery.
    Please tell me any Function Module or BAPI to assign HU to Inbound Delivery with the parameters.

    Hi,
    Try with PROCESS_HU_INBOUND_DLVRY, WS_DELIVERY_UPDATE, SD_DELIVERY_UPDATE_PACKING
    Thanks,
    Abhijit

  • Assigning batch and handling unit  tio an delivery

    Hello friends,
    Is there any FM/BAPI to update handling unit and batches to the delivery line item. for tcode VL02n
    Thanks

    unfortunaltey to archive boms you have to archive alle predecessing documents before you can start this one.
    go to transaction SARA for object MM_SPSTOCK and click the button for 'Network Graphic'. it will tell you very colourfull what you have to do before attempting to archive boms.
    same goes for handling units, object LE_HU. Check in SARA.

  • How to unassign handling unit in outbound delivery?

    (Don't Want to delete HU onlu unassign it from delivery: WM requirement)
    I would like to unassign HU in an outbound delivery.
    code i'm using make the handling unit disappear in the overview of HU.
    but corresponding line in the "item overview" are still existing.
    And when I want to copy pack quantities as delivery quantities, system tell me that "50.000 M have already been packed. Quantity cannot be changed. "
    How can I do, to do as if i pushed button "delete assignment" in HU overview?
    Here the code I'm using:
    CALL FUNCTION 'HU_PACKING_REFRESH'.
    CALL FUNCTION 'HU_GET_HUS'
    EXPORTING
    if_lock_hus = 'X'
    it_venum = I_VENUM "it_venum contains l_venum
    IMPORTING
    ET_ITEM_SERIALNO = o_item_serialno .
    CALL FUNCTION 'V51P_DELETE_RELATIONSHIP'
    EXPORTING
    IF_CONTROL = 'X'
    IT_HUS = i_venum
    IMPORTING
    ET_NEW_HUS = LT_HUS
    et_messages = lt_messages
    EXCEPTIONS
    FATAL_ERROR = 01 .
    CALL FUNCTION 'HU_POST' .
    call function 'BAPI_TRANSACTION_COMMIT'.
    Please let me know the function module if anybody has idea to unassign from delivery.
    Edited by: Akshay Kale on May 4, 2010 7:04 AM

    Hi Akshay,
    This question is marked as Answered , can you please let me know how you have resolved this error .
    My Requirement is to remove HU assignment from inbound Delivery . If possible can u provide me the code snapshot to remove assignment for inbound delivery.

  • Re-using Handling unit. Inbound deliver has unpacked materials

    Dear All
    We're running the process that inbound delivery is created automatically once goods issue for outbound delivery is done.
    We're also running the process when handling units created in outbound delivery are re-used in Inbound delivery.
    The problem we've got is that from time to time we have situation when part of materials in inbound Delivery are unpacked, while these materials were packed in handling units. There are no errors appear, and Inbound Delivery is created, but materials are unpacked.
    In humo for such handling units, which are not created in Inbound Delivery i can see that the status was not updated and still remains "LOAD PHEX WHSE" and such HUs are assigned to plant where goods issue was done.
    Whille for handling units which were created in Inbound Delivery the status is updated to "PHEX" and HUs are assigned to recieving plant.
    Please advise if you have any idea on the root cause and solution.
    Thanks in advance.
    Best Regards
    Andrey

    HI Andrey,
    Wanted to know if you have recd the solution for this old thread. We arefacing a similar kind of problem wherein we get the status as 0020 when we pack for Returns Delivery. This status is like the Goods are already posted and hence we cant do PGR.
    Please suggest.
    rgds..Ameet

  • How to inventory packing material on Handling Units frm Inbound Del @ PO?

    I am receiving raw material against a PO via VL31N, where I pack into handling units. When I post GR for this inbound delivery, the Raw Material is getting a 101 but the packaging material is not being considered. Is there a way I can get the packaging material into inventory? I did verify the following settings as suggested in a different post here and yet the Packing materials are not considered. Any help is appreciated.
    1. there is a plant in your HU (you can control this in your packing material type in transaction VHAR; set plant determination either to A or B).
    2. there is an item category in your HU (you can control this in transaction 0184; create the following entry: EL / VERP / PACK / / ELP. If you now create an inbound delivery type EL and your packing material has item category group VERP the system will assign item category ELP to your HU.
    If both requirements are met the system will generate an item in your inbound delivery after packing.
    Then make sure that the item category of the HU (ELP for example) has movement type 501 assigned to it in transaction 0VLP.
    If you then post the GR for your inbound delivery, the packing material will be posted on stock.

    Hello,
    It is well described in:
    [Note 831204 - Delivery items for packaging materials|https://service.sap.com/sap/support/notes/831204]
    pay atention on this prerequisit
    For the relevant delivery types the 'ItemRequirement' routines
      have to allow items which does not refer to a sales order.
      Standard routine 202.
      [Customizing path: Logistics Execution --> Shipping --> Deliveries
       -->  Define Delivery Types]
    Andrzej

  • 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

  • Packing handling units to outbound delivery with batch management

    Hello all,
    I am packing an outbound delivery with a material that has batch management active. The packing is from a storage location that manages handling units (HU-managed sloc).
    My problem is u2013 before entering the HUs to the delivery u2013 the system asks me to enter the batches (in the batch split function). Only then I am allowed to enter the HUs in the packing function.
    What could be the reason for this preliminary batch entries ?
    How can I set the system not to do that, i.e., I would like to be able to enter the HUs directly without entering the batchs separately.
    Thanks,
    Isaac

    Dear Isaac,
    this system behaviour can not be changed in standard and is also not recommended to change it via a modification. The reason for this system behaviour is to avoid inconsistencies in the system. The HU that you assign to the delivery, should exactly fit to the delivery. In case if the material is batch managed, you should specify the batch first, and then add the fitting HU with exactly that batch.
    I suppose you checked the longtext for HUDIALOG102, that you get in the described case, but I copy it for you, in case if you did not read it:
    "Diagnosis
    There are items to be handled in batches which have not yet been
    assigned to a batch.
    Batches must be recognized for items with HU-managed storage location
    For items at a storage location that is not HU-managed, the item type
    determines if packing will take place at cumulated item quantity level
    (meaning that the batch is not recognized at any point in the handling
    unit) or if packing must take place at batch level.
    System Response
    If an item requires batch identification, that item will not be
    suggested for packing as long as the batch is not recognized.
    Procedure
    Go to the maintenance of the delivery item and assign at least one batch
    to the item."
    Regards,
    Ely

Maybe you are looking for

  • How can I convert a String into an int?

    I need to use command-line args. So I enter "java Main 123" and I want to use 123 not as a String but as an int. How can I convert it into an int? Thank You!! Sprocket

  • Margins problem when printing to PDF (Pages '09 v4.0.3 build 766)

    Hi, I don't know if this is connected to the latest Mac OS X v10.6.4 update, but some of my machines exhibit a very curious behaviour. + multiple pages A4 document + choose File > Print, click on "Save as PDF", under the PDF button ++ set pages 6 & 7

  • Connecting to a database

    I made a program work while my database was in /var/mysql/lib directory...But now I need to make my project work from another computer, so I have to save that database with my project. Where do I save it? What would be the line instead of con = Drive

  • Passing items from one tab to another

    Hi there, I have two reports, each on a seperate tab, I would like to pass values from one tab to another, anybody know how I can achieve this. Thanks... Edited by: user9129179 on 10-Mar-2010 04:21

  • Material Management-Consignment

    What are the Business benifits for Stock Transfer(<b>STO</b>) on Cross-Company-Code  for <b><b>Consignmen</b>t</b> material?