2006 Aug 07 4:04 AM
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
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
2006 Aug 07 4:09 AM
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
2006 Aug 07 4:18 AM
Ravi,
I am new to HU. Could you please let me know what Transaction is used to create?
Thanks
2006 Aug 07 4:29 AM
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
2006 Aug 07 11:52 PM
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?
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |