04-23-2007 4:01 PM
Hi ,
I am entering my delivery no in VL32n and trying to pack that with handling unit for the purpose i am using ws_delivery_update, but it works fine while when i use $1 which create a new handling unit and packs with that, but when i provide an existing handling unit, it doesn't pack ..neither returns any error..
any pointer on the same will be highly appreaciated..
Regards
Gunjan
04-23-2007 4:26 PM
Hi!
I used this function in the following way, and it packed the items into the existing handling unit without any problem:
DATA: vbkok_wa LIKE vbkok,
delivery LIKE likp-vbeln,
verko_tab TYPE STANDARD TABLE OF verko,
wa_verko TYPE verko,
verpo_tab TYPE STANDARD TABLE OF verpo,
wa_verpo TYPE verpo,
wa_id_tab LIKE zkomi_id_tab.
DATA: e_any TYPE xfeld,
e_item TYPE xfeld,
e_pod_update TYPE xfeld,
e_interface TYPE xfeld,
e_goodsissue TYPE xfeld,
e_fcheck TYPE xfeld.
UNPACK i_exidv TO i_exidv.
vbkok_wa-vbeln_vl = i_vbeln.
delivery = i_vbeln.
SELECT SINGLE vhilm exidv INTO CORRESPONDING FIELDS OF wa_verko
FROM vekp
WHERE exidv EQ i_exidv.
wa_verko-object = '01'.
wa_verko-objkey = i_vbeln.
APPEND wa_verko TO verko_tab.
LOOP AT it_id_tab INTO wa_id_tab.
SELECT SINGLE vbeln
posnr
lfimg
meins
FROM lips
INTO (wa_verpo-vbeln,
wa_verpo-posnr,
wa_verpo-tmeng,
wa_verpo-vrkme)
WHERE vbeln EQ i_vbeln
AND matnr EQ wa_id_tab-matnr
AND charg EQ wa_id_tab-charg.
wa_verpo-exidv_ob = i_exidv.
APPEND wa_verpo TO verpo_tab.
ENDLOOP.
CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
vbkok_wa = vbkok_wa
SYNCHRON = ' '
NO_MESSAGES_UPDATE = ' '
commit = 'X'
delivery = delivery
UPDATE_PICKING = ' '
NICHT_SPERREN = ' '
IF_CONFIRM_CENTRAL = ' '
IF_WMPP = ' '
IF_GET_DELIVERY_BUFFERED = ' '
IF_NO_GENERIC_SYSTEM_SERVICE = ' '
IF_DATABASE_UPDATE = '1'
IF_NO_INIT = ' '
IF_NO_READ = ' '
IF_ERROR_MESSAGES_SEND_0 = 'X'
IF_NO_BUFFER_REFRESH = ' '
IF_NO_MES_UPD_PACK = ' '
IMPORTING
ef_error_any_0 = e_any
ef_error_in_item_deletion_0 = e_item
ef_error_in_pod_update_0 = e_pod_update
ef_error_in_interface_0 = e_interface
ef_error_in_goods_issue_0 = e_goodsissue
ef_error_in_final_check_0 = e_fcheck
TABLES
VBPOK_TAB =
PROT =
verko_tab = verko_tab
verpo_tab = verpo_tab
VBSUPCON_TAB =
IT_VERPO_SERNR =
IT_PACKING =
IT_PACKING_SERNR =
IT_REPACK =
IT_HANDLING_UNITS =
ET_CREATED_HUS =
TVPOD_TAB =
.
04-23-2007 5:21 PM
when i try to pack with existing handling unit: it says:
Handling unit 1000000089 already in existence
Message no. HUSELECT004
Diagnosis
You have tried to create a handling unit with an identification that already exists with status 'existing'.
Procedure
Check if the already existing handling unit can be deleted or assign a new number to the currently created handling unit to guarantee that the handling units can be identified clearly.