RFID-Alternatives to Handling Units in ERP?

Hi,
During inbound and outbound delivery in SAP ERP, the Ids identifying the items can are stored in Handling Units in ERP. Our customer at hand uses an SAP Industry solution where Handling Units are not supported.
My question is, are there other data containers in SAP ERP to store the required IDs which would be supported throughout all processes?
I do understand that through ERP customizing several ID types are mapped through bit offsets. What I do not understand is where this data ultimately is stored if a document is created and how this data container could be changed
Your support is highly appreciated!
Cheers, Andi

Hi Andreas,
The EPC (IDs) information created in AII is stored in AII only. It is not sent to ERP system with the delivery information. Refer to tables /AIN/DM_OBJECT  and AIN/DM_OBJ_CTX in AII where Ids are recorded. Document information is stored in table /AIN/DM_DOC.
Before flexible delivery scenario was intorduced by SAP, this information was stored in ERP in table AIDIDDATA. This has now been discontinued.
You can refer to flexible delivery scenario in service.sap.com/scm for more information on how delivery information is sent from ERP and the ASN is enriched with Ids from AII.
Hope this information helps.
PS: Reward points if helpful.

Similar Messages

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

  • Handling unit with serial numbers in return delivery

    There is a handling unit (HU),whose system status is PSTD(goods issue posted). The delivery is posted. The billing document are issued. Handling unit was packed with materials with equipments and serial numbers.
    Now I am creating another sales document(I want to return the good) and return delivery. No handling unit is attached to return delivery.  (Why not?  Returning original sales document is created with reference to original sales document)
    Now I attach the serial numbers to the return delivery. (the same serial numbers which are included(packed) in the above mentioned HU).  The return delivery is successfully posted. The status of equipment/serial numbers is on stock.
    The problem is that this serial number with equipment is still packed in the original HU.
    How can unpack the equipment from HU?   I think the problem is the status of HU which is PSTD(goods issue posted).
    Or alternative: can I move the HU unit from original delivery and attach it to return delivery?
    The changing of the status of HU is not posssible because the original delivery is posted and I do not want to change this original documents anymore too.

    I am afraid you are right
    - The return delivery was created without HU. ( i mean HU which was originally sold in original delivery. )
    Do you think I should create HU for return delivery with the same/different ID?  How can I transfer equipment from original delivery HU to return delivery and HU ?
    The problem seem to be that the original delivery and HU is locked (sytem status= posted )after posting.  If I cancel posting of return delivery then I can attach a new HU. But the equipment is still part of the original HU.
    Can I move equipment/serial numbers from original to returned HU? Is that possible at all?
    I am talking about phisical  same HU, so I guess there should be not 2 different HUs in the SAP system created.
    I am looking for the scenario to sell equipment in one HU and return it in the same HU with return delivery.
    thank you for your effort and responses

  • LT12: how to manipulate the handling unit

    Dear all,
    This is my first message on this forum and I've seen many bright lights on this forum so I have high hopes of your response to my question : )
    When I want to confirm a transfer order with trx LT12, 2 Handling Units (HU) are assigned (which can be seen in the lower part of the screen). I have 2 items in my active worklist (different storage units) and can modify some fields, including the HU. For some reason both items have the same HU (the upper one of the assigned HU). I would like the first item to have the first HU and the second item to have the second HU.
    My question is simple (and I had thought this would be possible but I've tried a LOT and did not succeed, hence my cry for help here): is there a possibility to manipulate the Handling Unit before it is shown on the screen? I did not seem to find a suitable BADI/user exit.
    Any help would be greatly appreciated. Thanks in advance for your efforts!
    With kind regards,
    Roel van den Berge

    Dear Roel van den Berge
    if iam not wrong you can achieve the same by  TO split
    Transfer Order Split
    Use
    To optimize processes in the warehouse, it often makes sense to split up putaways and stock removals into smaller packets according to certain criteria. In doing so, it is important, for example, to:
    •     Distribute the workload equally amongst the warehouse workers
    •     Optimize stock movements in the warehouse according to certain criteria.
    The transfer order (TO) represents a work package and determines the actual workload for a putaway or stock removal. It can therefore make sense to split a single, extensive transfer order into several smaller transfer orders. During the TO split, the system creates several smaller packets from one large one.
    During the TO split, the TO items are divided up between one or more TOs. A TO split does not however mean that the system divides individual items of a TO into smaller TO items.
    Prerequisites
    1.     You define the criteria according to which the TO split is to occur in the Customizing for Warehouse Management under Activities  Transfers  Processing Performance Data/TO Split  Define Profiles.
    a.     To define a TO sort profile, choose Sort profile for TO splitting.
    In the sort profile for the TO, you define the criteria according to which you want to sort the items in a transfer order before the actual split.
    For each of these sort criteria, you define whether the system is to sort the transfer order items in ascending or descending order.
    Before the actual dynamic TO split, you must sort the corresponding TO according to certain criteria. By sorting the TO items, you ensure that the TO split is sensibly executed and that no nonsensical TO splits occur.
    b.     To define a TO split profile, choose Profile for Transfer Order Splitting.
    c.     You assign your sort profile to the TO split profile by entering it in the field Sort profile.
    2.     You determine when the TO split should take place in the Customizing for warehouse management under Activities  Transfers  Processing Performance Data/TO Split  Control for Performance Data Processing/Define TO Split.
    You also assign a key to the TO split profile, consisting of a warehouse number, movement type, source storage type and destination storage type.
    Features
    Standard Sorting of TO Items
    Control of the TO split occurs on the basis of the sort. The system defines the sequence of the items in the transfer order before the actual TO split via the sort, so that the sequence of the TO items corresponds to an optimal sort sequence for later processing.
    Since the system always executes the forced split of the transfer order items according to the forced split criteria, the system always sorts the TO items in the standard sort in accordance with the forced split criteria in the order that the forced split criteria are processed.
    Forced Split
    Even if you have not set any user-defined criteria for the TO split, the system always executes a TO split according to the following forced split criteria:
    •     Planned data is required
    The TO split first divides the TO items for which planned data creation is required, from the TO items for which planned data creation is not required.
    The TO split also causes a further division for all TO items with planned data creation, according to the source storage type and destination storage area criteria.
    •     Per split profile
    As soon as TO items differ from one another in the split profile to which they are assigned, a TO split occurs according to the split profile criterion.
    •     Per performance data profile
    As soon as TO items differ from one another in the performance data profile to which they are assigned, a TO split occurs according to the performance data profile criterion.
    •     Per staging area
    The TO split divides the TO items according to the staging zone to which they are assigned.
    •     According to mixed pallets
    The TO split then separates the TO items containing mixed pallets from those containing no mixed pallets.
    The TO split also creates a further division of all TO items with mixed pallets according to the storage unit that is to be moved.
    •     According to queue
    The TO split divides the TO items according to the queue that these TO items are assigned to.
    If you work with queues, you can assign each work area to its own printer. That way, all materials that are to be processed in a specific area can be combined in one list and printed on the assigned printer.
    •     According to handling unit items
    The TO split then separates the TO items containing handling units from those containing no handling units.
    •     Separate confirmation of the withdrawal step and the transfer step is necessary
    The TO split divides the TO items with split confirmation from TO items for which split confirmation is not planned.
    The system transfers the information on the forced split to the header via the transfer orders, which are created as a result of the TO split.
    The forced split criteria are obligatory. You cannot influence the forced split via the user exit. The system does not adopt any changes to the forced split criteria.
    Dynamic Sorting
    Before you can execute a dynamic TO split controlled via the Customizing settings, the TO items should be sorted according to the split criteria. In doing so, you ensure that the TO split is sensibly executed and that no nonsensical TO splits occur.
    You can define the sequence of all the storage bins in the warehouse based on a specific sequence and sort the TO items according to this sequence. The system sorts according to the Sequence indicator in the warehouse master data.
    Dynamic Split
    You can define several criteria for the TO split in the Customizing for Warehouse Management.
    •     Split according to movement unit
    On the basis of this split criterion, you create a new TO for each movement unit. In doing so, you create TOs with one item for exactly one movement unit.
    You use this split, for example, during goods receipt when a whole pallet is moved from the GR area into the warehouse.
    You define the split according to movement unit in the Customizing for Warehouse Management under Activities  Transfers  Processing Performance Data/TO Split  Define Profiles  Profile for performance data with the indicator Split single TO.
    •     Split according to picking area
    You divide up the items to be picked according to the areas of responsibility of the picker.
    •     Split according to target times in the TO
    You determine, for example, how long the picking for a transfer order is allowed to take.
    •     Split according to scope (weight or volume)
    You determine the total weight or volume that a transfer order can cover for putaway or stock removal.
    Note that the volume is calculated based on the alternative unit of measure. A box with 10 bottles, for example, can have a different volume than 10 times the volume of one bottle. If the volume for the alternative unit of measure has not been defined in the material master record, the system uses the volume from the base unit of measure for its calculation.
    Activities
    Note that you have no influence over the TO split according to forced split criteria.
    You can, however, define your own criteria for a dynamic TO split via user exit MWMTO012. For more information, see the system documentation on this user exit

  • Handling Unit - COP2 error

    I create a Production order for a material
    When we create a Production order for 30 numbers and execute cop2 the transaction code is working fine , Handling units are created , confirmations and goods receipt also happening
    When we create a production order for 60 and execute cop2
    For first 30 there is no issue Handling units are created , confirmations and goods receipt also happening ,
    But when we execute the cop2 transaction code handling units are generated , when i press the confirmtion and goods reciept i get the error as below
    Error
    No alternative unit of measure specified
    Message no. MM108
    Diagnosis
    You want the system to convert from the base unit of measure to an alternative unit of measure for the current material. However, this alternative unit of measure is missing.
    System Response
    The system cannot carry out the conversion.
    Procedure
    This is due to a program error that should not occur. Please contact your system(s) administrator.
    I have checked the material master Alternate UOM is there
    I tried this for  6 different materials this error is coming .
    BUt still Handling unit , confirmations and goods receipt is happening even though  i get the error .
    Recently we had a servie pack update , is there a possibility that it is becuase of the service pack update
    Please advice

    Dear,
    Please refer OSS note 988697

  • Output determination for Handling units

    Hi
    In logistic execution, where should handling unit out put determination procedure be assigned pls ?
    Thanks In Advance

    Dear Jaya,
    Once, Configuration settings done, go to  T. Code: Nace  and select Application as V6 - Handling Units and click Tab: Procedures. Now select Procedures, as available, and double click Control.
    Here, maintain, Condition type: and Requirement:
    Now go back, and again select Application as V6 - Handling Units and click Tab: Output Types.
    here, select the Output Type and maintain entries for Mail title and texts, Processing routines and Partner functions
    Hope, this may help you.
    Best Regards,
    Amit
    Note: Alternatively, T. Code: VHAR, and select Packaging Material Type, and double click.
    On to next page, under Tab: Packaging Material Type, key-in entries in to Fields: OutputDet.Proc and Output Type

  • Packing setup with handling Unit Management

    Dear Experts,
    I would like to know in the ERP if you have any steps guide to configure
    two step picking, packing and Handling Unit management.
    You help is very appreicated.
    Thanking you

    Hi,
    I would recommend to check the help.sap.com documents first for an overview.
    Regards,
    Ely

  • 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

  • Simple Storage unit management by using of 'real' handling unit data

    Hi all,
    actually we have a WM setup to use the full handling unit management in Warehouse. After some years we detected that the HU managed
    Warehouse is not the best solution for our business.
    Inside of WM we do no more want to have the Handling units. The assigned storage location is not HU managed.
    Now to my question:
    We receive from other plants finished goods via inbound delivery. All goods are packed on Handling Units.
    When doing the good receipt, Is it possible to use the HU data (vekp, vepo) and create according to it the WM storage units? So one Handling unit
    from the inbound delivery will become one storage unit.
    thanks in advance for your answers.
    Michael

    Hi Patrick,
    we actually have SAP WM with HU management running. but we want to go back to WM without HU management - only with the storage unit management.
    when getting an inbound delivery from another plant (in the same client) goods are batch managed and packed on HU´s. i am searching for a possibility to use the HU data from the inbound delivery to create the WM storage units. So one HU should become one WM storage unit.
    so i will post to an ERP comuity.
    thanks
    Michael

  • 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

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

  • Line items are clubbed in Handling Unit's

    There are two line items in delivery for same material , while packing  I am selecting single line item  and packing it . But when I select line item 10 and try to pack it, line item 20 also automatically getting clubbed with line item 10 and getting packed together .
    For this material , rounding profile has been maintained .I canu2019t delete this rounding profile because when we process single line item for this material , system has to round off . Suppose , material is rounded off for 30 units in material master and  rounding profile has been assigned for this material.
    My requirement is handling unit need to be created for single line item , system should not consider 2nd line item while creating handling unit for first line item even though first and second line items consume same material .
    In delivery, suppose , there are two line items for same material . for first line item quantity is 20 and  for second line item , it   is 23 .  
    When I try to pack it manually , system should create 2 handling units with quantity of  20 and 23 nos .  System   should not create handling units with quantity of 30 and 13 .
    What configuration change I need to make in handling unit management .
    Thanks In Advance
    Jaya

    Hi Pratyush
    I have checked up in  both the places, POP2 and POF2,  target quantity was mentioned as 1 only for this material  .
    still ,Why is system not considering only one line item's quantity while packing . why is it clubbing both line items .
    Pls help me ........

  • Deriving/ change the item category from handling unit

    Hi SAP GURUS,
    In vl01n I want to derive the item category based on the handling unit. Hnadling unit is derived from the payment terms.
    Please let me know the required configuration or the development for this.
    Thanks

    i need ur help regarding the Sales order item category redetermination.
             we are having two item categories YNAE and YNAG and it contain schedule  line categories CP and CB ( i.e for item category  YNAE schedule line category is CP and 
             for item category  YNAG schedule line category is CB), for YNAG Purchase Requisition is automatically created becz of functional setting on save and it is working fine.
             For every line item in sales order line item level item category YNAE will be determined by default as per functional settings.
             Now my requirement is that, if sales order line item doesn't contain 100% confirmed quantity, than i needs to change the default line item category YNAE to YNAG
             which i am trying to do it in USEREXIT_PRICING_PREPARE_TKOMP becz in this exit i am getting the values in XVBAP and XVBEP and  it is working fine .
             But schedule line category is not getting redetermined automatically what i mean is, if i change the item category to YNAG from YNAE in user exit corresponding schedule line category CB of YNAG is getting determined automatically at the schedule line level and if ichange the schedule line categories in XVBEP in exit USEREXIT_PRICING_PREPARE_TKOMP, changes are reflecting at the schedule line level but Purchase requisation is not getting created for schedule on SAVE and its delivary dates are also not getting determined properly. If press the option ATP check at the schedule line level than very things will getting corrected in the order.
    i am using UPDKZ = U  in both xvbap and xvbep for changes
    I feel that i am not doing this in proper way, do u have any idea about how to redetermine item category. please let me know if u have any idea .
    Regards,
    Vaddepally Manoj

  • Line item wise Qty in Handling Unit Management

    Dear All,
    I am working and testing Handling Unit Management. As per the client requirement, he wants Multilevel Packaging (Manually) for materials as-
    E.g. 100 Pieces will be packed in 1 Small Carton.
           100 Small Cartons will be packed in 1 Big Carton.
           10 Big Cartons will be packed in 1 Pallet.
    Now while creating delivery I packed 2 materials separately. And in the item level it is showing as a whole, means total 1100 PC packed in 11 Small carton, 11 Small cartons packed in 5 Big cartons and 5 Big cartons packed in 2 Pallets. Please find the below screen shot.
    Now when I check this delivery number in tables LIPS-VBELN, it is showing the entire qty of Small carton, Big carton and Pallets as 11, 5, 2 respectively. But actually it has show each material or line item wise No. of Small carton, Big carton and pallet used.
    E.g. For 1st material Small Boxes = 5
                                   Big Carton = 2
                                   Pallet = 1
          For 2nd material Small Boxes = 6
                                   Big Carton = 3
                                   Pallet = 1
    My question is, is there any table or logic where I can fetch all these details for all material that how many packaging material and qty has been used. Because in packing list the same needs to get printed each line item wise. I checked in VEPO and VEKP table as well but not getting any input.
    Kindly help.
    Regards:
    Abhishek

    First of all, why you don't have any quantities assigned against Small cartons, big cartons and pallets?
    Well, for your requirement. As functional consultant, you should be smart enough to interpret & analysis the data when you have tables and data in hand. Anyways, in your case,
    As Pallet is the highest level pack material.
    Pass HU no of pallet in VEKP- EXIDV, in your case for one of the pallet, it is 1000013558.
    For that you will get, Internal HU no. VEKP-VENUM, say, 86.
    Pass VEKP-VENUM = VEPO-VENUM.
    With that you will get Lower-level HU, VEPO-UNVEL, that will be internal HU No for Big Cartons & VEPO-VEANZ for packing material quantity.
    Then pass VEPO-UNVEL = VEPO-VENUM, by this you will get internal HU No for Small Cartons in VEPO-UNVEL & VEPO-VEANZ for packing material quantity.
    Again, pass VEPO-UNVEL = VEPO-VENUM, by this you will get following info:
    Table - Fields
    Field Desc
    VEPO-VEPOS
    HU item
    VEPO-VBELN
    Delivery
    VEPO-POSNR
    Delivery Item
    VEPO-VEMNG
    Packed quantities
    Try and share your feedback.
    Thanks, JP

  • Create and Pack Handling Units in the Sales Order Using HU_CREATE_ONE_HU

    Hello Experts,
    I am trying to use HU_CREATE_ONE_HU function module to create a handling unit and pack it with specific line items in the sales order program in the background.  I am able to create the handling unit and pack it but it does not get associated to the sales order / line item.  If you look at the sale order's packing proposal, it does not show it packed.  If I look at VEKP / VEPO, I see where it was created but there is no value for vbeln or the posnr I proposed.  Below is the code, I am using.  Does anyone know what I am doing wrong or is there another function module I can use?
    LOOP AT t_vbap.
        CLEAR:   is_header_proposal, it_items, es_header, et_items, et_messages, t_vbap2.
        REFRESH: et_items, et_messages, t_vbap2.
        is_header_proposal-exidv          = '$1'.
        is_header_proposal-exida          = 'A'.
        is_header_proposal-vhilm          = 'UNIBOX'.
        is_header_proposal-hu_status_init = 'A'.     "planned
        is_header_proposal-status         = '0001'.  "planned
        "get the components that make up this subassembly including the parent.
        SELECT * FROM vbap
          INTO TABLE t_vbap2
         WHERE vbeln = t_vbap-vbeln
           AND posnr = t_vbap-posnr. "parent
        SELECT * FROM vbap
          APPENDING TABLE t_vbap2
         WHERE vbeln = t_vbap-vbeln
           AND uepos = t_vbap-posnr.  "children
        "now load the items to be packaged in the proposal
        LOOP AT t_vbap2.
          CLEAR: it_item.
          it_item-velin    = '1'. "material item
          it_item-belnr    = t_vbap2-vbeln.
          it_item-posnr    = t_vbap2-posnr.
          it_item-quantity = t_vbap2-kwmeng.
          it_item-meins    = t_vbap2-meins.
          it_item-matnr    = t_vbap2-matnr.
          it_item-werks    = t_vbap2-werks.
          it_item-lgort    = t_vbap2-lgort.
          APPEND it_item TO it_items.
        ENDLOOP.
        CALL FUNCTION 'HU_INITIALIZE_PACKING'.
        CALL FUNCTION 'HU_CREATE_ONE_HU'
          EXPORTING
            if_create_hu       = 'X'
            is_header_proposal = is_header_proposal
            it_items           = it_items
          IMPORTING
            es_header          = es_header
            et_items           = et_items
            et_messages        = et_messages
          EXCEPTIONS
            input_missing      = 1    " Data that is Necessary for Creation is Missing
            not_possible       = 2    " HU Creation not Possible
            header_error       = 3    " HU Header Data Contains Incorrect Data
            item_error         = 4    " Items Cannot be Created
            serial_nr_error    = 5    " Serial Number Error
            fatal_error        = 6    " Internal Error
            OTHERS             = 7.
        CALL FUNCTION 'HU_POST'
          EXPORTING
            if_synchron = space
            if_commit   = 'X'.
      ENDLOOP.
    Thanks for the help.
    Laura

    The abap statement does not make sense.
    xlips_high_posnr = ( lips-posnr / tvlk-incpo ) * tvlk-incpo
    posnr & incpo are both type numc length 6.
    Here is my recommendation to catch the divide by zero error.
      data: l_oref    type REF to cx_root.
      data: l_text    type string.
      TRY.
            clear l_text.
             xlips_high_posnr  = lips-posnr / tvlk-incpo.
            CATCH cx_sy_zerodivide INTO v_oref.
              l_text = l_oref->get_text( ).
            CLEANUP.
    *      Put your code to do further processing if it is divide by zero
      ENDTRY.

Maybe you are looking for