Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_HU_PACK

Former Member
0 Kudos

Hi ,

Im working on ECC 6 and my requirement is to pack materials into HU thru RF device. Im using BAPI_HU_PACK to move materials from a given location to a HU managed storage location within the same plant. The FM works great, if the material is already there in the HU. Suppose 80010060 is my material and HU is 1000000700. If the material is available on the HU already , say for a qty 1, if I use the BAPI now, it will update the HU with one more qty. But if the material has to be packed for the first time into a HU, it does not work. It gives an error sying that the location is HU managed. Probably it is looking for an entry in the VEPO table.

Do any of you have an idea how to make this BAPI work. My HU is already available, so i cannot use BAPI_HU_CREATE.

Thanks

Shobana

3 REPLIES 3

Former Member
0 Kudos

Hi,

I think you need to pass a value to some parameters which you are missing out::

Example 1:

Creating a non-assigned handling unit with packaging material PALLET with a "Planned HU" physical status:

HEADERPROPOSAL: pack_mat = 'PALETTE'

hu_status_init = 'A'.

Example 2:

Following access of the above method (example 1), the return parameter HUKEY returns the ID of the handling unit that was created in the KEY = ID1 field. To pack the handling unit that was just created in another handling unit, call up the BAPI_HU_CREATE method again with the following import parameters:

IHEADERPROPOSAL: pack_mat = 'CONTAINER'

ITEMPROPOS AL: hu_item_type = '3'

lower_level_key = ID1

<b>look the FM documentation for more help.</b>

Thanks & regards,

Dharitree

0 Kudos

Hi ...

For your case the FM HU_CREATE_GOODS_MOVEMENT would be perfect.

Just take care of 1 thing......this FM is not rleased for customer, so make a copy of it and use it.

Regards,

0 Kudos

Shobna,

How did u solve this issue? I have the same requirement and same problem. I am using bapi_hu_create still teh problem is teh same. Did u use hu_goods_movement_create finally? Can u share a few tips.

Thank You,

-Priyanka