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

Similar Messages

  • Handling unit - Shipment

    Hi all,
    I would like to get the number of handling units in a shipment. I dont find VTTK or VEKP fulfils this requirement.
    Can you please suggest any idea ?
    Rgds,
    Seema

    Hi Seema,
    You can get the handling unit number from VBFA table.
    Hit the VBFA table by giving VBELV as delivery number and VBTYP_N as 'X' ( which is nothing but handling unit).
    In field VBELN you will get the handling unit.
    You can use this handling unit number an hit VEKP Table to get more details on handling unit.
    Regards.

  • Getting shipment number from handling units

    Hi Abapers,
    is there any bapi avaible to get the shipment number by passing handling unit identification number.
    Thanks & Regards,
    Swapna .

    Hi all,
    I found the solution to fetch shipment number based on handling unit.
    In table level, Go to SE11 transaction.
    Enter table name : VEKP.
    Pass VENUM(handling unit number).
    VPOBJ = 04
    and Execute.
    See the field value VPOBJKEY.
    This value is shipment number.
    If u got to table VTTK and pass this shipment number obtained previously. it will have entry with this shipment number.
    Thanks,
    Swapna p

  • 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

  • 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

  • Shipment cost information  - handling units

    Hello ,
    ( After reviewing notes 393849, 934370 , 746606  )
    i  have a problem with shipment cost information from sales
    order ( VA02 ; VICI ) when the shipment cost is calculated according to handling units.
    In our S.C.C regular scenario the shipment cost is calculated according to the packing materials in the shipment ( VT02 ) .
    The pricing procedure includes the follwing condition records :
    Condition y050 :  Calc.type - S ( number of shipping units ) ;
                      Calc.base - C ( Handling units ) .
    and a few conditions with the same definition as : 
    Condition y051 :  Calc.type - S  ( number of shipping units ) ;  
                      Calc.base - '' ( ALL ) .
    ( in order to overcome regular S.C.C customization the above  
      p.procedure is determined in exit -  shipment costing : configure 
      pricing - V54B001 - EXIT_SAPLV54B_001 ) .
    After filling the necessary fields in VA01/VA02 such as Material , volume , weight , packing proposal and then executing  the shipment cost information according to the planning profile we get error message
    ( VY-140 ) :
    " shipment cost not saved because they contain no items " .
    After debugging in   - EXIT_SAPLV54B_002  : none of the handling units in VA01/VA02  ( packing proposal )  is transferred to pricing structure "KOMP" and therefore the shipment cost calculation is
    not completed ( to my best knowledge . . . )  .
    when proccessing the transactions online VA02->VL02N the packing proposal is  transferred as expected .
    any ideas ?
    Regards
    ASA

    Hi Sudeer,
    Once again please check the configuration steps
    -->Define Shipment cost information profile
    -->Assign planning profile
    -->Also check the variants which you are maintaining in the planning profine.
    -->Check the input data in the variants which you have maintained.
    Go through this link about Shipment Cost Information in the Order
    http://help.sap.com/saphelp_47x200/helpdata/en/83/218ac8068a11d2bf5d0000e8a7386f/frameset.htm
    I hope it will help you,
    Regards,
    Murali.

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

  • How to Issue Output for a Single Handling Unit from Shipment

    Hi,
    I would like to know how to issue an Output for a Single Handling Unit from Shipment, i mean i have attached an output type 'ZPN0' (Customised) to a Handling unit in the Tcode VT03N to a Handling Unit.
    VT03N>click on Handling unit icon> select a handling unit --> go to Extras --> Output --> give the Out put type (maintained)) -- > saved.
    Once i come back --> i did not find any option / icon to issue the output from VT03N for handling unit. We have an option to issue output for the Entire Shipment.
    Tried alternative by going to VT70, give the shipment no, and output type for handling unit. When executed, Getting a message "No Messages Found".
    let me know how to issue the output for a handling unit of the shipment. Only Handling Unit & not the entire shipment.
    Regards,
    Swapna

    Dear Swapna ,
    maintain out put type for handling units in V V 61

  • 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

  • Output for a Single Handling Unit from Shipment

    Hi,
    I would like to know how to issue an Output for a Single Handling Unit from Shipment, i mean i have attached an output type 'ZPN0' (Customised) to a Handling unit in the Tcode VT03N to a Handling Unit.
    VT03N>click on Handling unit icon> select a handling unit --> go to Extras --> Output --> give the Out put type (maintained)) -- > saved.
    Once i come back --> i did not find any option / icon to issue the output from VT03N for handling unit. We have an option to issue output for the Entire Shipment.
    Tried alternative by going to VT70, give the shipment no, and output type for handling unit. When executed, Getting a message "No Messages Found".
    let me know how to issue the output for a handling unit of the shipment. Only Handling Unit & not the entire shipment.
    Regards,
    Swapna

    Hi,
    For VT70 transaction have entered the Print control and Output device.

  • Handling units in Shipments cannot be unpacked

    Dear All,
    In shipments, there are HUs which needs to be unpacked since user wants to delete the related deliveries. When he goes to Shipment change mode and tries to unpack the HUs, it is greyed out in and not able to delete or empty the HUs. System gives a message (green color) "The Handling units cannot be changed". Kindly help me to resolve this issue.
    Your efforts regarding this would be appreciated and rewarded.
    Regards
    Samier Danish

    Ok, just to be sure;
    1) did you pack in the deliveries? You're not trying to unpack these HU's?
    2) is there a user status scheme active?
    3) did you pack the deliveries and did you pack these HU's into a new HU in the shipment? And are you now trying to unpack the HU created in the shipment?
    4) is the packaging button itself greyed out?
    5) what is the status of the HU you're trying to unpack?
    MdZ

Maybe you are looking for