Application Development and Automation 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: 
Read only

Handling Unit

Former Member
0 Likes
773

Hi,

When I am doing goods movement for Handling units, i am getting an error: Handling unit is already assigned to another object.

Does anyone know how to correct this error?

Thanks

Hi,

When I am doing goods movement for Handling units, i am getting an error: Handling unit is already assigned to another object.

Does anyone know how to correct this error?

Thanks

4 REPLIES 4
Read only

Former Member
0 Likes
707

Every Handling unit will be allocated to oonly one goods movement. Looks like you are using a existing handling unit, so you might have to create a new one.

If you are doing this programmitacally, you can use BAPI_HU_CREATE to create.

Regards,

Ravi

Read only

0 Likes
707

Ravi,

I am new to HU. Could you please let me know what Transaction is used to create?

Thanks

Read only

Former Member
0 Likes
707

hi vamsee,

check the below link to create the handling unit

Handling unit creation:

At the minimum, we need the SSCC# (serialized shipping container# which is used for packing),

delivery doc#, line# and quantity. Populate VERPO & VERKO temp tables and then execute the

function module WS_DELIVERY_UPDATE. Sample code as follows.

Also needs some config for the HU number range.

REFRESH: T_VERPO, T_VERKO.

LOOP AT ITAB_PACK2.

CLEAR: T_VERKO, T_VERPO.

T_VERKO-EXIDV = ITAB_PACK2-SSCC.

T_VERKO-VHILM = C_pack_matl. "default matl# for packing

APPEND T_VERKO.

T_VERPO-EXIDV_OB = ITAB_PACK2-SSCC.

T_VERPO-VBELN = ITAB_PACK2-VBELN.

T_VERPO-POSNR = ITAB_PACK2_POSNR.

T_VERPO-TMENG = ITAB_PACK2-TMENG.

APPEND T_VERPO.

ENDLOOP.

    • Update Packing

CLEAR E_VBKOK.

REFRESH: T_VBPOK. CLEAR T_VBPOK.

E_VBKOK-VBELN_VL = WA_HDR-VBELN.

E_VBKOK-VBELN = WA_HDR-VBELN.

E_VBKOK-KOMUE = 'X'.

E_VBKOK-WABUC = ' '.

REFRESH: P_PROT.

CALL FUNCTION 'WS_DELIVERY_UPDATE'

EXPORTING

VBKOK_WA = E_VBKOK

SYNCHRON = ' '

  • NO_MESSAGES_UPDATE = ' '

COMMIT = ' '

DELIVERY = WA_HDR-VBELN

UPDATE_PICKING = ' '

  • NICHT_SPERREN = ' '

IF_CONFIRM_CENTRAL = SPACE

TABLES

PROT = P_PROT

VERKO_TAB = T_VERKO

VERPO_TAB = T_VERPO

VBPOK_TAB = T_VBPOK

EXCEPTIONS

ERROR_MESSAGE = 8

OTHERS = 9 .

IF NOT SY-SUBRC IS INITIAL.

error message.

ENDIF.

u can check the below link also

for general reference

http://www.sap-img.com/sap-hu.htm

if u find it useful mark the points

Regards,

Naveen

Read only

0 Likes
707

Hi,

There is an an inbound delivery assigned to this HUM.

How can I receive the handling units into a handling unit storage location in VL32n?